The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Free Gutenberg Performance

Zero Blocks Given

Zero Blocks Given banner
Active installs
20+
Last updated
3 months ago
Version
1.3.3
Tested up to
WP 7.1.5

About this plugin

Most WooCommerce stores ship 80-150 KB of block CSS and JS that the store never actually renders. The WC BlockPatterns scanner is the one that bugs me most – it hits the filesystem on every request to scan a directory of pattern templates you don’t use. Then add core WP global-styles, wp-block-library and font-faces on top, and you’re loading a Gutenberg frontend you probably switched off a long time ago.

Zero Blocks Given turns it off at the source, through WooCommerce’s own dependency injection container. No CSS dequeue band-aid, no UI checkboxes, no PRO upsell. One constant in wp-config.php, pick a tier, done.

How it works

Here’s the thing – WC registers its block hooks as closures wrapping instance methods on container-managed objects. So you can’t remove_action() them by string. You have to fetch the same instance back from the DI container and pass it in as the callable. That’s what this does:

$bp = AutomatticWooCommerceBlocksPackage::container()->get( BlockPatterns::class );
remove_action( 'init', [ $bp, 'register_block_patterns' ] );

The DI-container path is the one that survives WC upgrades cleanly. String-callback matching and dequeue tricks tend to drift every release, so I went with the container.

Four modes. Three ways to set them.

Mode
What it turns off
When to use it

patterns
WC BlockPatterns directory scanner only
Block-based Cart/Checkout – keeps all blocks rendering, just skips the file-I/O scan

blocks
patterns + BlockTypesController + Notices styles + wc-blocks-style handle
Classic-shortcode WC stores

all
blocks + WP global-styles pipeline + theme.json + font-faces + head <style> strip
Sites with no Gutenberg frontend at all

nuclear
all + unregister_block_type() for every core block
Page-builder sites – strips the editor inserter clean

Default is all. Set the mode you want with any of these:

  1. The <dialog> settings – click the Settings link on the Plugins screen. Native HTML dialog, four radios, save. No menu items, nothing else added to your admin.
  2. A constant in wp-config.php – define( 'ZEROBLG_MODE', 'patterns' );. This wins over the dialog. Good devops escape hatch.
  3. A filter in a theme or mu-plugin – add_filter( 'zeroblg/mode', fn() => 'blocks' );. Used when neither the constant nor the dialog set a value.

Resolution order: constant, then settings, then filter, then all. An invalid value at any step just falls through to the next.

A few real cases

  • Service-form site on WC. You sell consultations, not products – no cart, no checkout. mode=all strips every block stylesheet across the site.
  • Classic-shortcode WC store. You use [woocommerce_cart] and [woocommerce_checkout], no block UI. mode=blocks turns off the block frontend without touching your classic flow.
  • Block-checkout store with bloated patterns. You run the new Cart/Checkout blocks but never the WC pattern library. mode=patterns skips just the directory scanner – saves the disk hit, leaves your checkout alone.
  • FrankenPHP / worker mode. All hooks are idempotent, no $GLOBALS writes, Throwable catches around the DI lookups. Safe in a worker.
  • Elementor / Divi WC stores. The page builder renders its own checkout, so mode=all clears the WC and WP block CSS your theme never uses anyway.

Why I built it this way

  • Activate it and it works – mode=all is the default, no setup needed.
  • No settings page to learn. One constant or one filter is the whole API.
  • Pure PHP. No database rows, no admin scripts, no frontend JS.
  • No external requests, no tracking, nothing phoning home. GDPR is a non-issue.
  • It uses the same Package::container() lookup as WC core, so it follows WC’s own object lifecycle instead of guessing.
  • Worker-safe – FrankenPHP, Roadrunner, Swoole. No die, no exit, no session writes.
  • mu-plugin friendly. Drop the folder into wp-content/mu-plugins/ and it loads itself.
  • GPL, no upsells. No PRO tier, no Freemius, no admin notice nagging you for a review.

From the maker of WP Multitool

This plugin handles the frontend block bloat. If you also want the backend cleaned up, that’s what WP Multitool does – slow queries, autoload bloat, the database bottlenecks that caching plugins just hide instead of fixing. Most optimization plugins guess at the problem. WP Multitool runs EXPLAIN and shows you. 14 tools in there – slow-query analyzer, autoload optimizer, index suggestions, fatal-error recovery – and a free site scanner if you want to see what’s slow before paying for anything. If Zero Blocks Given earned a spot in your stack, that one probably will too.

Screenshots

Analytics

Live from WordPress.org, refreshed daily. Last refresh Nov 27, 2026.

  • Passes every health check below.
3/3

Health checks

Everything a careful site owner looks at before installing.

  • Actively maintained Last release 3 months ago
  • Tested with current WordPress Tested up to 7.1.5
  • Support questions answered Nothing open in the last two months
  • Well rated No ratings yet
Active installs
20+ +100% from 10+ a month ago
This week
28 downloads 16 the week before
Last 30 days
95 downloads 3 a day, typically
All time
772 downloads On WordPress.org since 2026
Downloads per week Every update counts as a download on WordPress.org, so release weeks spike.
Latest week
28
Typical week
22
Peak
64 Week of Jul 17
View as table
WeekDownloads
Week of Nov 2028
Week of Nov 1316
Week of Nov 619
Week of Oct 3028
Week of Oct 2315
Week of Oct 1615
Week of Oct 914
Week of Oct 222
Week of Sep 2522
Week of Sep 1822
Week of Sep 1131
Week of Sep 426
Week of Aug 2831
Week of Aug 2140
Week of Aug 1438
Week of Aug 711
Week of Jul 3118
Week of Jul 2412
Week of Jul 1764
Week of Jul 1031
Week of Jul 341
Week of Jun 2643
Week of Jun 195
Week of Jun 1217
Week of Jun 59
Where it stands Rank among the plugins WPFolks tracks every day.

Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.

Active installs over time Recorded by WPFolks every day since Oct 14, 2026.

Reviews

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Proudly supported by