BACK TO DIRECTORY

Block Weight Inspector adds a sidebar panel in the block editor that maps blocks in the current post/page to the CSS and JS assets they register. It estimates local asset sizes, highlights top offenders, and exports a JSON report. It can also generate a suggested conditional-loading snippet to help you dequeue assets when a block is not present.
It also adds a Tools -> Block Weight Inspector screen for auditing existing posts without opening the editor.
Note: The inspector preserves block comment delimiters when analyzing content so parse_blocks() remains accurate after sanitization.
Key features:
- Block -> asset mapping using registered block metadata.
- Estimated size for local assets.
- Top offenders summary and full asset list.
- JSON export for sharing or auditing.
- Suggested conditional-loading rules (review before use).
Plugin Details
Active Installs
0Total Downloads
277Version
0.1.0Requires WP
6.0Requires PHP
7.4Tested Up To
6.9.7Added
2026-01-20Last Updated
2026-01-20 7:47pm GMTRatings
5
0
4
0
3
0
2
0
1
0