{"id":321335,"date":"2026-06-03T05:53:14","date_gmt":"2026-06-03T05:53:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/script-surgery\/"},"modified":"2026-06-03T08:51:10","modified_gmt":"2026-06-03T08:51:10","slug":"script-surgery","status":"publish","type":"plugin","link":"https:\/\/nl.wordpress.org\/plugins\/script-surgery\/","author":23509955,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.0","stable_tag":"trunk","tested":"7.0","requires":"6.0","requires_php":"8.1","requires_plugins":null,"header_name":"Script Surgery","header_author":"Wojciech Paluch","header_description":"Visual per-page-type script & style manager. See what loads where, attribute to plugins, disable with one click. Identify render-blocking assets and their real impact.","assets_banners_color":"","last_updated":"2026-06-03 08:51:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/mits.pl","header_author_uri":"https:\/\/profiles.wordpress.org\/vexr\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":45,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[187460,187,5896,247,2864],"plugin_category":[52,54],"plugin_contributors":[265552],"plugin_business_model":[],"class_list":["post-321335","plugin","type-plugin","status-publish","hentry","plugin_tags-core-web-vitals","plugin_tags-optimization","plugin_tags-page-speed","plugin_tags-performance","plugin_tags-scripts","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-vexr","plugin_committers-vexr"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/script-surgery.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Script Surgery<\/strong> gives you a visual, actionable view of every script and style loaded on your WordPress site \u2014 broken down by page type (homepage, single post, product, cart, etc.).<\/p>\n\n<h4>What it does<\/h4>\n\n<p><strong>Visual asset inventory<\/strong>\nSee every enqueued script and style on each page type: the handle, which plugin or theme added it, file size, whether it loads in <code>&lt;head&gt;<\/code> (render-blocking) or footer, and async\/defer status.<\/p>\n\n<p><strong>Source attribution<\/strong>\nEach asset is attributed to: WordPress Core, a plugin (by name), your theme, or an external CDN. No guesswork.<\/p>\n\n<p><strong>Per-page-type disable rules<\/strong>\nDisable any script or style on specific page types with one click. Elementor scripts loading on your checkout page? Slider scripts loading on cart? Disable them \u2014 no code required.<\/p>\n\n<p><strong>Render-blocking detection<\/strong>\nScripts loading in <code>&lt;head&gt;<\/code> without async or defer are flagged as render-blocking. Styles are flagged similarly. Fix the highest-impact issues first.<\/p>\n\n<p><strong>Bulk actions<\/strong>\n\"Only on this page\" \u2014 disable a script everywhere except the current page type in one click. Reset individual or all rules at once.<\/p>\n\n<h4>How data is collected<\/h4>\n\n<p>Data is captured automatically when a logged-in administrator visits any frontend page. No cron jobs, no external requests. The WordPress admin bar shows a \u2697 indicator on each page type so you know what's been captured.<\/p>\n\n<h4>Privacy<\/h4>\n\n<p>Script Surgery only runs for logged-in administrators. No data is sent externally. All data is stored in your own database (transients + one options entry).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>script-surgery<\/code> folder to <code>\/wp-content\/plugins\/<\/code><\/li>\n<li>Activate through the 'Plugins' menu in WordPress<\/li>\n<li>Visit your site's frontend pages as a logged-in admin \u2014 data is captured automatically<\/li>\n<li>Go to <strong>Script Surgery<\/strong> in the WordPress admin menu<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release. Script\/style capture, source attribution, size detection, render-blocking flagging, per-page-type disable rules.<\/li>\n<\/ul>","raw_excerpt":"See exactly what scripts and styles load on each page type \u2014 which plugin added them, their size, whether they block rendering \u2014 and disable them per  &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/321335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=321335"}],"author":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/vexr"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=321335"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=321335"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=321335"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=321335"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=321335"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=321335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}