The Mirage of Fast Websites: How Lighthouse Scores Get Hacked

Martin MichálekMartin Michálek8/26/202612 minutes reading

The web performance community is caught in a cycle of illusion. People confuse Lighthouse scores with actual web speed. This misconception is exploited by plugin developers who aim to improve this metric without enhancing real web speed.

Many plugins promise one-click speed improvements. However, their impact often boils down to merely enhancing the Lighthouse score.

What does this article cover?

  1. Reasons why Lighthouse scores are more of a headache than a measure of speed.
  2. The unsavory behavior of the Website Speedy plugin. Another piece in the puzzle of previously proven dubious practices by plugins like WP-Optimize and the borderline behavior of WP Rocket.
  3. Our arguments for why we believe that deferring all JavaScript loading is more of a Lighthouse score trick than genuine optimization.

Let’s dive into the problem as a whole. We must begin with the main culprit, the Lighthouse score, and its perception by the lay community.

Lighthouse score is not web speed Web speed? It’s not the Lighthouse score. Period.

Lighthouse Score: A Poor Metric That Everyone Cares About

During client onboarding at PageSpeed.ONE, I often talk to someone who wants to “improve their PageSpeed Insights score.” You know, that colorful circle at the bottom. Yes, the Lighthouse score.

We understand. It's a single, colorful number, easily shared with colleagues over Slack. Yet, the Lighthouse score is the result of a synthetic test of a single page, in one environment, with one setting. The composition and weights can change between Lighthouse versions. Similarly, Lighthouse on your computer might show a different number than Lighthouse in PageSpeed Insights.

Let’s repeat this once more:

Lighthouse score is not a measure of web speed. It’s a technical diagnostic indicator.

Web speed is born in your visitors’ phones, on pub Wi-Fi, on an old Chinese smartphone with three bars of signal, with ten tabs open, and while clicking on a cookie banner.

Lighthouse doesn’t see any of this. It’s not a user. It doesn’t scroll, click, log in, open product filters, or go to checkout.

True speed is measured by Core Web Vitals metrics from the Chrome UX Report. (Differences between lab data and user data are summarized in synth vs. CrUX vs. RUM.)

An Economist Would Say: “Of Course, Goodhart's Law”

Economist Charles Goodhart once wrote a sentence now taught in universities:

“When a measure becomes a target, it ceases to be a good measure.”

This fits perfectly here. That’s exactly what has happened to the Lighthouse score.

People want a simple number. Google (mistakenly, in my opinion) shows it big and colorful in PageSpeed Insights.

Clients ask agencies about the Lighthouse score. Some agencies then promise to improve it. Then come the plugins that promise the same, only faster and without effort.

When a diagnostic number becomes a business argument, a market for its improvement emerges. And once the calculation is predictable, someone starts hacking the metric instead of optimizing the website.

Deferring JavaScript Isn’t Optimization, But Problem Shifting

Many of today’s “speed-up” plugins have a checkbox that can boost the Lighthouse score by dozens of points with just five seconds of work. It defers the execution of all JavaScript until the first user interaction like a scroll, click, or screen touch.

Why does this reliably hack the Lighthouse score? Lighthouse loads and measures the page. It doesn’t scroll, click, or touch the screen. Deferred JavaScript never runs in the test. Metrics like Total Blocking Time (TBT), which has the greatest weight in the Lighthouse score, disappear from the measurement. Load speed (LCP) also improves.

The Lighthouse score shoots up, yet nothing has sped up on the site. For the real user, nothing changed. It was just postponed to a later time. And often to the worst possible moment.

Comparison of standard JavaScript loading and Delay JS execution Illustration of deferred JavaScript. Scripts load only after user interaction. It’s evil.

At PageSpeed.ONE, we’ve optimized hundreds of websites, but we’ve never recommended this technique to clients. What are the risks of deferring all JavaScript?

  1. Negative impact on interactions (INP). A user arrives on a page, reads the headline, and clicks. At that moment, all deferred JavaScript, which has been accumulating, kicks in. The browser’s main thread gets blocked, and the user’s first click waits. This can worsen the metric INP, which Google includes in Core Web Vitals.
  2. Negative impact on layout shifts (CLS). Scripts that render content, like carousels, personalization, and more, run late when JavaScript is deferred. In a Lighthouse test, no shifts are measured because the code never executed. You don’t see the real value of CLS.
  3. Measurement functionality. Analytics, cookie consent, chat, A/B tests, and conversion tracking are deferred with everything else. Your data might not add up, and no one knows why.
  4. Devaluation of the Lighthouse score. As we’ve said, while the Lighthouse score isn’t a web speed metric, it is useful for diagnosing changes or optimizations. By excluding all JavaScript from the Lighthouse score, you’re measuring something entirely different from your website.

Deferring all JavaScripts is a bad technique. Deciding what should load when and in what order is engineering work that requires knowledge of the specific website. One checkbox that defers all JavaScript doesn’t do this job.

And the most problematic part is that providers of these features typically don’t state anywhere what it will do to the Lighthouse score and how it might impact real user speed. If they did, the customer would understand that they’re often not buying a faster website, just a better test score.

WP-Optimize: Caught Optimizing the Lighthouse Score

In 2022, developer Gijo Varghese shared a screenshot of the plugin WP-Optimize, showing that JavaScript only loads on a page if the browser isn’t Lighthouse, GTmetrix, headless Chrome, or Pingdom.

Tweet by Gijo Varghese about test tool detection in WP-Optimize The WP-Optimize example shows code trying to detect Lighthouse, Pingdom, or GTmetrix.

The maker of this WordPress optimization plugin publicly denied the allegations. They claimed it was about a specific “Defer using JavaScript” setting.

Fine, but why is that setting there in the first place? We’re back to the point that no real speed optimizer would do this. General tips for WordPress speed are in WordPress optimization.

WP Rocket: The Boundary Where Optimization Ends

A similar issue arises with the well-known optimization plugin WP Rocket. It also has a feature with the innocent name Delay JavaScript Execution. You tick the box, and all scripts wait until the user scrolls, clicks, or touches the screen.

Details were written by Alexander Goller in 2021 in an article, rightly comparing this issue to the Dieselgate emissions scandal, where Volkswagen cars altered engine settings during emissions tests to meet required values.

What’s the state today? This setting still exists in WP Rocket. WP Rocket’s page for the delayed JavaScript setting only mentions it as one of the most powerful optimizations.

An innocent plugin setting? I don’t think so. Nowhere on the feature page does WP Rocket mention what this will do to Lighthouse scores. And that’s a problem.

WP Rocket documentation on Delay JavaScript execution WP Rocket only talks about the benefits of “Delay JS execution” setting, without mentioning the risks.

So both WP-Optimize and WP Rocket still market this feature without warning that it can artificially inflate the Lighthouse score and the other risks I’ve discussed above.

Website Speedy: Speed Improvement or Lighthouse Score?

Website Speedy is a tool for various platforms that claims to be an “Automatic Website Speed Optimizer.” One of our clients believed this and used the add-on for months under the impression it was helping their site’s speed.

Our colleague Michal Matuška discovered that this add-on could also artificially inflate the Lighthouse score. Judge for yourself.

Website Speedy homepage Website Speedy promises impacts on bounce rate and SEO rankings on its homepage.

Our Investigation Around Website Speedy

It starts right on the website, where “impact on business metrics” and “Lighthouse score” are lumped together. Speed indeed has an impact on business, but you can’t link this to a synthetic metric.

The marketing of these extensions relies on users believing that the Lighthouse score is web speed. And there are many of them.

Website Speedy’s authors admitted this in communication with us:

“Our dashboards and documentation currently lead with lab scores, and we do not spell out that lab results can differ from what real users experience.”

In the Source Code of Website Speedy, We Found Test Tool Detection

Our colleague Michal couldn’t let Website Speedy’s behavior go and wanted to examine the source code. It’s heavily obfuscated, intentionally made unreadable.

After decoding it through several AI agents, we found a condition that decides whether JavaScript on the site should even run. And what do you think? Yes, it doesn’t run if it detects speed testing.

Before publication, we asked Website Speedy for their stance. Founder Ishan Makkar responded quickly:

“Our script does not detect or branch on Lighthouse, PageSpeed Insights, GTmetrix, headless browsers, or any synthetic testing environment.”

He added that he personally reviewed the code on several live customer sites and could not reproduce our findings. He offered us a clean demo with his current production version to verify for ourselves.

The demo arrived on August 18. Our colleague Michal Matuška found this in the script:

Function isAuditBot in Website Speedy script A piece of code from the demo by Website Speedy. The hack was hidden from us.

The function is called isAuditBot, meaning “it’s an audit bot.” The first line returns false, so in the demo they provided, the detection never executes. In the script from our client’s site, it wasn’t disabled.

Incidentally, in the dead code, there are checks for strings that suspiciously resemble the names of the most common synthetic measurement tools, like GTmetrix, Lighthouse, PageSpeed, WebPageTest, and Headless Chrome.

As proof of innocence, we received an installation where the test tool detection was stripped out in the quickest way possible.

What Happened When We Turned Off Website Speedy on the Client’s Site?

We agreed with the client to temporarily disable Website Speedy. We could then see exactly what happened to the speed when the plugin stopped working. Almost nothing.

The Lighthouse score significantly worsened…

Graph of Lighthouse score after turning off Website Speedy Change in Lighthouse score on the homepage after turning off Website Speedy.

After disabling Website Speedy, the Lighthouse score on the homepage changed from 95 points to about 60. Did it worsen? No, it normalized.

However, disabling the plugin had no impact on Core Web Vitals:

Core Web Vitals graphs after turning off Website Speedy Core Web Vitals development after disabling the Website Speedy plugin.

We see no change apart from other influences occurring on the site:

  • A slight deterioration in site speed (LCP) correlates with fluctuations in TTFB (backend response).
  • CLS improves with adjustments to other site properties and isn’t temporally related.
  • It’s worth noting that CrUX data from Google shows a 28-day cumulative state, so changes take longer to manifest.

Disabling Website Speedy led to the normalization of the Lighthouse score on our client’s site. But the site’s speed remained unchanged.

Our Methodology and What We’re Not Claiming

To be fair, we should clarify our methodology regarding our investigation around Website Speedy:

  • Website Speedy doesn’t wish to disclose the plugin’s source code, so we’re only releasing the demo source code they provided, which differs from the plugin’s source.
  • We experimented on one of our client’s sites.
  • We don’t have quantitative data from multiple projects.
  • The plugin was disabled, and our code examination took place in July 2026.
  • Apart from disabling the plugin, we didn’t optimize anything else on the site.

At our client’s site, the Website Speedy plugin kept the Lighthouse score high without delivering a measurably faster web experience to real users.

One problem lies with the plugin authors. But the bigger issue is with the users who pay for these plugins.

Don’t Ditch Lighthouse. Just Don’t Make It Your Goal

Use the Lighthouse tool as a diagnostic. It can find a slow image, an unnecessarily large JavaScript bundle, or blocking CSS. For these purposes, Lighthouse is excellent.

As your main business metrics for web speed, track data from real users. Core Web Vitals from the Chrome UX Report or data from your own measurement (RUM). Monitor the entire domain and the most important templates in monitoring, not just one URL once in a while.

We know there’s a strong demand for a single score for everything, so at PageSpeed.ONE, we also use our own PageSpeed.ONE Score, built on user data from Core Web Vitals.

In our one-time web speed test, we downplay the Lighthouse score as much as possible. Instead, we highlight Core Web Vitals trends and provide a textual assessment of speed status.

If you want to verify a similar case yourself, the following steps can help.

How to Investigate a Suspicious Jump in Lighthouse Score

Checklist for uncovering suspicious Lighthouse score hacking:

  • Start by asking if the score suspiciously jumped quickly after installing a plugin or a single configuration change.
  • Compare network requests and JavaScript execution in Lighthouse with a normal browser load.
  • Verify the first scroll, click, cookie banner, filter opening, form, and checkout. Lighthouse doesn’t scroll or click, but users do.
  • Check user data (CrUX or RUM) before and after the change. A greener lab score without improvement in user data isn’t a win.
  • And importantly: stop buying plugins that promise miraculous speed improvements with one click.

Next time someone offers you a plugin that miraculously boosts the score in five minutes, ask them one thing:

What impact will it have on real user speed, such as Core Web Vitals? If they can’t answer this question, you already know the answer.

Keep your websites fast. And measure speed correctly.

Stay informed about your website's speed.

Subscribe to our newsletter. Each month, we share the latest in website speed for site owners, marketers, and developers.

Tags:Web PerformanceLighthouse