Debloat icon
Performance & Caching

Debloat

Remove Unused CSS, Optimize CSS, Optimize JS and speed up your site.

  • By asadkn
  • v1.4.0
  • Updated

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.

We haven't published a hands-on review of Debloat yet. Want one, or need help with it? Send us a request.

How to install Debloat

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Debloat” and pick the one by asadkn.
  3. 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 --activate

Requirements: 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.

debloat — top hooks
// 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 );

Browse all 21 hooks with examples →

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.

Alternatives in Performance & Caching

See all →

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

7+ million installs Reviewed 178 hooks

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faster Sites and Happy Visitors.

1+ million installs Reviewed 163 hooks

A very fast caching engine for WordPress that produces static html files.

1+ million installs Reviewed 42 hooks

The simplest and fastest WP Cache system

1+ million installs 22 hooks