- Opens a Zero-Reload Shadow DOM Slide-Down Drawer directly inside any live page from the WordPress Admin Bar (matching KadiCache Aurora Light/Dark UI with Left Rail source filtering and compact
36pxrows across every frontend page type). - Inspects and conditionally disables classic JavaScript (
$wp_scripts), CSS ($wp_styles), and modern WordPress 6.5+ ES Script Modules (WP_Script_Modules), dynamically classifying compiled/wp-content/uploads/builder/theme assets (Elementor, Divi, Bricks, Beaver Builder, Astra, Kadence) to their real owner. - Ships the universal Core Layout Guard (flags Theme CSS, stylesheets with
>= 2 KBinline CSS, and active dependents; blocks bulk disable on Theme/Core), Testing Mode + Signed 10-Minute Guest Preview URLs (?kadicache_sm_preview=...), WP Admin 1-click Reset, and instant?kadicache_sm_off=1recovery. - Works cleanly alongside Delay JS, Defer JS, Minify, Early Page Cache, Pro Cloud RUCSS, and Pro Local LCP, and exposes full sandboxed AI control via MCP
manage_script_manager(blocking critical layout removals and returning signedpreview_urllinks + 1-click rollback checkpoints).
Table of Contents (5 sections)
- Eliminate Site-Wide Plugin Asset Bloat Without Reloads or Accidental Layout Breaks
- Complete WordPress 6.5–6.9 Coverage + Smart /wp-content/uploads/ Ownership
- Universal Core Layout Guard & Signed Guest Preview URLs
- Every Page Type Supported & Zero-Conflict Pro/Cloud Sync
- Safe AI Control via OAuth 2.1 MCP (manage_script_manager)
Eliminate Site-Wide Plugin Asset Bloat Without Reloads or Accidental Layout Breaks#
Many WordPress plugins enqueue their JavaScript and CSS globally across every URL even when their form, slider, table, or block only appears on one page. KadiCache Script Manager (included 100% free in KadiCache Core v1.0.1+) adds a dedicated Script Manager button to the WordPress Admin Bar on every frontend page that slides down a Zero-Reload Shadow DOM Aurora Drawer right inside the page — zero ob_start() template wrapping, zero theme CSS leaks, and instant Left Rail source filtering across 90+ asset sites.
Complete WordPress 6.5–6.9 Coverage + Smart /wp-content/uploads/ Ownership#
Unlike older script managers that only inspect $wp_scripts and $wp_styles (and dump compiled page-builder CSS into a generic bucket), AssetInspector.php captures Head and Footer assets across all three WordPress asset registries and dynamically resolves /wp-content/uploads/ owners:
- Classic JavaScript (
$wp_scripts): Includes local file sizes in KB, inline/localized payload sizes (wp_localize_script/wp_add_inline_script), and reverse dependency graphs (dependents). - Stylesheets (
$wp_styles) +/uploads/Builder Detection: Automatically groups compiled upload CSS from Elementor, Divi (et-cache), Bricks, Beaver Builder (bb-plugin), Oxygen, Breakdance, Avada (fusion-styles), Spectra, Brizy, Astra, Kadence, GeneratePress, WoodMart, Flatsome, and active themes under their true owner. - WordPress 6.5+ ES Script Modules (
wp_script_modules()): Detects and conditionally dequeues Interactivity API and modern WooCommerce/Gutenberg block modules viawp_dequeue_script_module()andscript_module_loader_src.
Universal Core Layout Guard & Signed Guest Preview URLs#
- Core Layout Guard (
is_critical_layout): Automatically labels Theme CSS, any stylesheet carrying>= 2 KBof attached inline CSS (like Elementor's kit/page styles or WPglobal-styles), and handles with active dependents. Shows exact inline KB stripped before disabling, skips critical handles during bulkDisable Group, removesDisable Groupfrom Theme/Core/Other Local Assets, and requires confirmation whenTesting Modeis off. - Testing Mode + Signed 10-Minute Guest Preview (
?kadicache_sm_preview=...): Test rules privately without affecting visitors or Pro Cloud, and open the stateless HMAC-signedpreview_url(no-store,noindex) in an Incognito browser or AI browser tool to inspect the exact guest render without needing an admin login cookie. - WP Admin Transparency: The
CSS & JavaScript -> Per-Page Script Managercard surfaces any saved rules in the database with a 1-click Reset All Rules button.
Every Page Type Supported & Zero-Conflict Pro/Cloud Sync#
PageIdentity.php resolves the canonical route after WP_Query completes rather than relying on get_the_ID(), covering Front Pages, Blog Indexes, Singular Posts/Pages/Products/CPTs, WooCommerce Shop, Taxonomies, Author/Date, Search, 404, paginated /page/2/ views, virtual routes, and multilingual URLs. Because AssetEnforcer.php runs before output buffers, disabled assets never reach CssOptimizer, DelayJsOptimizer, or Pro Cloud RUCSS/LCP — and saving rules automatically invalidates FileCache, EarlyCache, Pro LearningRevision, Pro BrowserHintsStore, and ImageQueue.
Safe AI Control via OAuth 2.1 MCP (manage_script_manager)#
Connect Claude, Cursor, Antigravity, or ChatGPT to your WordPress site and run the built-in safe-script-audit guided prompt. The AI inspects assets via inspect_url, simulates rules in memory via simulate_rules (blocking HTTP failures, orphaned_dependents, and critical_layout_disabled removals), saves with an atomic McpCheckpoints snapshot + signed 10-minute preview_url when testing_mode: true, visually verifies the preview without needing admin cookies, and switches testing_mode: false only when verified.
Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.