This WordPress plugin allows you to easily toggle speculationrules on or off for accurate Lighthouse audits.
When Audit Mode is enabled, speculationrules are hidden (clean audits).
When Audit Mode is disabled, speculationrules are visible for real user optimization.
- One-click toggle inside WordPress Admin (Settings > Reading)
- WP-CLI Commands:
wp speculationrules enable— Enable Audit Mode (hide speculationrules)wp speculationrules disable— Disable Audit Mode (show speculationrules)
- No edits to
functions.phpneeded - Fully compatible with WordPress 6.8+
- Works on any theme
- Upload the plugin to the
/wp-content/plugins/speculation/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- Navigate to Settings > Reading to toggle Audit Mode.
Or use WP-CLI:
wp speculationrules enable
wp speculationrules disable