Overview
Debloat describes itself as: “Remove Unused CSS, Optimize CSS, Optimize JS and speed up your site.”
It is active on 30,000+ WordPress sites and rated 4.8 out of 5 by 41 users on WordPress.org. Developers can extend it through 6 actions and 15 filters, listed below.
How to install Debloat
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “Debloat” and pick the one by asadkn.
- Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI
Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:
wp plugin install debloat --activateRequirements: WordPress 5.0+ · PHP 7.4.1+ · tested up to WordPress 7.1.4
Hooks & customisation
Debloat 1.4.0 fires 6 actions and 15 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.
// Hook after deleting cache.
do_action( 'debloat/after_delete_cache' );
// Process and replace stylesheets with CSS cleaned.
do_action( 'debloat/remove_css_begin', $this );
// Action in inc/admin/admin.php
do_action( 'debloat/admin/after_options', $options );
// Filter in inc/remove-css/remove-css.php
apply_filters( 'debloat/allow_css_selectors', … );
// Filter in inc/optimize-js/optimize-js.php
apply_filters( 'debloat/defer_js_excludes', $defer_excludes );
// Filter in inc/optimize-js/optimize-js.php
apply_filters( 'debloat/delay_js_excludes', $excludes );Need Debloat customised?
Tell us what you want changed, added or fixed and we'll reply with an estimate.
WP EXPERTS is independent and not affiliated with asadkn. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.