Black Friday 40% off yearly and lifetime plans · 18d left Ends in 18d09h23m Claim 40% off
Security38 docs

How to Allow Performance Testing Tools in WordPress

Whitelist performance testing tools (GTmetrix, Pingdom, Lighthouse, etc.) in Classic Monks. Allows them to bypass staging protection for performance audits.

By Founder & Lead Developer

Last updated

2 minutes

Key takeaways

  • Single toggle, no nested options
  • Whitelists major performance testing tools
  • Allows audits on staging sites without disabling protection
  • Configurable user agent list via filter
  • Pairs with Staging Protection and HTTP Authentication

What Is the Allow Performance Testing Tools feature?

When Staging Protection is enabled, the staging site is locked down: HTTP authentication, search engine blocking, etc. This is great for security, but it also blocks legitimate use cases like performance testing.

The Allow Performance Testing Tools feature whitelists the user agents of major performance testing services, so they can access the staging site without authentication.

Why You Need It

Performance audits are essential, even for staging sites:

  • Pre-launch audits: Catch performance issues before the site goes live
  • Comparison testing: Compare staging vs production performance
  • Continuous monitoring: Set up automated performance monitoring on staging
  • Client demos: Show clients the performance metrics before launch

Without this feature, you’d need to disable staging protection to run performance tests, which is risky.

How to Allow Performance Testing Tools in WordPress

  1. Step 1

    Navigate to Settings

    Click into the Classic Monks plugin settings in your WordPress dashboard.

  2. Step 2

    Go to the Security Tab

    Click on the Security menu, then click the Staging Protection subtab.

  3. Step 3

    Enable Allow Performance Testing Tools

    Scroll to Allow Performance Testing Tools and toggle on.

    Staging Protection settings page

  4. Step 4

    Save Changes

    Click Save Changes.

  5. Step 5

    Test

    Run a performance test on the staging site using a major tool (e.g., GTmetrix). The tool should be able to access the site without authentication.

Configuration Options

Option Description Default
Allow Performance Testing Tools Master toggle. Off

The whitelisted user agents are maintained by Classic Monks and updated as new tools emerge. To add custom user agents, add them to your server configuration.

What Gets Affected

  • The staging protection: allows the whitelisted tools to bypass
  • The performance testing: works on staging sites
  • The user experience: performance tools can access the site

What Does NOT Get Affected

  • The HTTP authentication: still applies to non-whitelisted users
  • The search engine blocking: still applies
  • The staging indicator: still shows
  • The regular visitors: still need authentication

Troubleshooting

4 problems and how to fix each one.

The performance tool is still blocked

Cause: The tool’s user agent is not in the whitelist.
Fix: Check the tool’s user agent (in the browser’s developer tools or in the tool’s documentation). Add it to your server configuration.

The tool passes but the test fails

Cause: The tool is bypassing the HTTP auth but not the search engine block (or vice versa).
Fix: Use the cm_staging_protection_bypass_behavior filter to customize which protections are bypassed.

The user agent is being spoofed

Cause: Some performance tools allow user agent spoofing, which can be used maliciously.
Fix: Verify the user agent with a reverse DNS lookup. Use IP-based whitelisting in your server configuration (more secure than user agent matching).

A new tool is not in the whitelist

Cause: The whitelist is maintained by Classic Monks.
Fix: Add the new tool’s user agent to your server configuration. The plugin will be updated in a future release to include it.

Was this doc helpful?

Your answer tells us which docs to fix first.

Still stuck? Ask on the forum or email help@classicmonks.com.
Joy Chetry
Written by the person who built it

Joy Chetry

Founder & Lead Developer, Classic Monks

Joy is the founder of Classic Monks and GoodMonks Solutions, a web development agency that builds WordPress and WooCommerce sites for clients. Classic Monks grew out of the agency's own need to consolidate 20 to 30 separate plugins into one core stack.

Follow this doc on a real site.

Open a private WordPress site with Classic Monks, WooCommerce and Bricks Builder installed, and follow this doc step by step. Free for 24 hours, no card.

280 docs, written by Joy Chetry 15 day refund window