{"id":274011,"date":"2026-01-20T19:43:28","date_gmt":"2026-01-20T19:43:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/block-weight-inspector\/"},"modified":"2026-01-20T19:47:47","modified_gmt":"2026-01-20T19:47:47","slug":"block-weight-inspector","status":"publish","type":"plugin","link":"https:\/\/ast.wordpress.org\/plugins\/block-weight-inspector\/","author":23424972,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.0","stable_tag":"0.1.0","tested":"6.9.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Block Weight Inspector","header_author":"Block Weight Inspector","header_description":"See which blocks load which CSS\/JS assets on a page and estimate their weight.","assets_banners_color":"3b4b63","last_updated":"2026-01-20 19:47:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":134,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"devmarvs","date":"2026-01-20 19:47:47"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"Icon-128x128.png":{"filename":"Icon-128x128.png","revision":3443537,"resolution":"128x128","location":"assets","locale":""},"Icon-256x256.png":{"filename":"Icon-256x256.png","revision":3443537,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"Banner-1544x500.png":{"filename":"Banner-1544x500.png","revision":3443537,"resolution":"1544x500","location":"assets","locale":""},"Banner-772x250.png":{"filename":"Banner-772x250.png","revision":3443537,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Block Weight Inspector sidebar with summary and asset list."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[7626,4121,148076,247,23044],"plugin_category":[54],"plugin_contributors":[253264],"plugin_business_model":[],"class_list":["post-274011","plugin","type-plugin","status-publish","hentry","plugin_tags-assets","plugin_tags-blocks","plugin_tags-gutenberg","plugin_tags-performance","plugin_tags-profiling","plugin_category-security-and-spam-protection","plugin_contributors-devmarvs","plugin_committers-devmarvs"],"banners":{"banner":"https:\/\/ps.w.org\/block-weight-inspector\/assets\/Banner-772x250.png?rev=3443537","banner_2x":"https:\/\/ps.w.org\/block-weight-inspector\/assets\/Banner-1544x500.png?rev=3443537","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/block-weight-inspector\/assets\/Icon-128x128.png?rev=3443537","icon_2x":"https:\/\/ps.w.org\/block-weight-inspector\/assets\/Icon-256x256.png?rev=3443537","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.\nIt also adds a Tools -&gt; Block Weight Inspector screen for auditing existing posts without opening the editor.\nNote: The inspector preserves block comment delimiters when analyzing content so <code>parse_blocks()<\/code> remains accurate after sanitization.<\/p>\n\n<p>Key features:<\/p>\n\n<ul>\n<li>Block -&gt; asset mapping using registered block metadata.<\/li>\n<li>Estimated size for local assets.<\/li>\n<li>Top offenders summary and full asset list.<\/li>\n<li>JSON export for sharing or auditing.<\/li>\n<li>Suggested conditional-loading rules (review before use).<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress.<\/li>\n<li>Open the block editor and use the \"Block Weight Inspector\" sidebar.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20load%20assets%20on%20the%20front-end%3F\"><h3>Does this load assets on the front-end?<\/h3><\/dt>\n<dd><p>No. The inspector only runs in the block editor and does not enqueue anything on the front-end.<\/p><\/dd>\n<dt id=\"why%20is%20a%20size%20shown%20as%20%22remote%2Funknown%22%3F\"><h3>Why is a size shown as \"remote\/unknown\"?<\/h3><\/dt>\n<dd><p>Only local files are measured by default. You can optionally enable remote size lookup in the inspector panel or Tools page, and the preference is saved per user.<\/p><\/dd>\n<dt id=\"are%20the%20suggested%20dequeue%20rules%20safe%3F\"><h3>Are the suggested dequeue rules safe?<\/h3><\/dt>\n<dd><p>They are suggestions only. Some plugins enqueue assets for reasons outside of blocks. Always review before using.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"See which blocks load which CSS\/JS assets on a page and estimate their weight.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/274011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=274011"}],"author":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/devmarvs"}],"wp:attachment":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=274011"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=274011"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=274011"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=274011"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=274011"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=274011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}