Opens in a new tab

Measuring plugin costs

How MyStaticWP times a page, what its figures mean, and what they cannot tell you.

Figures you can check, with their limits

Every claim about speed deserves a measurement, and every measurement deserves its limits. MyStaticWP measures three things on your own server: what a static copy saves compared with a page built dynamically by WordPress, what a set of blocked plugins saves on a page, and what each plugin costs on its own.

This page explains how each measurement is made, how the plugin decides that a difference is real and not noise, how small a cost it can see, and what the figures do not include. Read it once before you act on a number.

Three ideas run through it:

  • A measurement is not a promise. It describes this server, at this moment.
  • Uncertain figures are shown as uncertain. They are never presented as gains.
  • Only server time is measured. What a plugin sends to the browser is not in these figures.
On this page

Three measurements, three questions

Tool Where Question it answers
Speed card Overview How much faster is my home page as a static file than built dynamically by WordPress?
Measure Plugins, on a page row How much does this page gain with the plugins I unticked blocked?
Cost per plugin Plugins, on a page row Which plugins cost the most on this page, each taken alone?

They are independent. The Speed card compares static with dynamic. The other two compare two dynamic builds of the same page: one with every plugin active, one with some plugins blocked.

What exactly is timed

Each measurement asks your own server for the page, from the server itself, as an anonymous visitor would, and records how long the answer takes. Three consequences follow:

  • It is the server’s response time. It does not include the network between the visitor and your server, nor the browser downloading and drawing the page.
  • It is a full dynamic build. The request is marked so that a static copy is never returned in place of the real page. For plugin tests, WordPress really builds the page, with or without the plugins.
  • It is one page at one moment. The same test an hour later, on a busier server, gives other numbers.

Measure: a set against everything active

You untick the plugins you are considering on a page row, then click Measure. The page is requested with every plugin active, then with your unticked plugins blocked, alternating between the two. The first request of each variant is thrown away, since a first request is often slower. Five requests of each are kept.

Column Meaning
Median The middle time of the five requests. It is less sensitive to a single slow request than an average.
Range The fastest and the slowest of the five. A wide range means a noisy server.
Plugins loaded How many plugins really ran in each variant. It confirms that the blocking took effect.
Times Each of the five requests.

The verdict is one of three. Faster by N ms (P%) when the difference is clearly larger than the noise; a warning that the difference cannot be told apart from measurement noise; or No saving. The last two mean: do not count on a gain.

Cost per plugin: how the ranking works

The ranking tests every active plugin against a reference, one plugin blocked at a time. It ignores the boxes of the row.

  1. One warm-up request with every plugin active. It is thrown away.
  2. Then rounds. In each round, the reference is requested first, then each plugin blocked alone, one after the other.
  3. Each plugin’s variant is compared with the reference of the same round. A slow moment on the server hits both and cancels out of the difference.
Setting Value
Rounds 4 by default. 10 with Repeat with more trials.
Extra variant A control run that blocks nothing, measured like the others.
Limit Up to 40 plugins per ranking, and 7 minutes. After 7 minutes, the ranking stops and uses only the rounds completed by every plugin, and says so.
Progress A progress bar counts the requests. Closing the page cancels the ranking.
Broken page A plugin without which the page does not load is marked as such and is not tested again.

How the ranking decides what is a saving

For each plugin, the plugin takes the difference between the reference and the variant in every round, and keeps the middle value of those differences as its estimate. It then estimates how much that estimate could move by chance, from the spread of the differences, with a floor of 2% of the page’s render time. That gives a margin.

A plugin is shown as a reliable saving only when three conditions hold together:

  • the estimated saving is positive;
  • at least three rounds were completed;
  • the saving is clearly larger than the margin (more than two and a half times the estimated standard error).

Anything else is shown as an uncertain estimate with its margin (for example ≈ −12 ms (± 15) — uncertain), or as not measurable when the estimate is zero or negative. Negative gains, where blocking a plugin seems to make the page slower, are noise and are never shown as reliable.

The control run gives you the method’s own drift. It blocks nothing, so its true saving is zero. If it shows, say, 10 ms ± 36, that is what noise looks like on this server at this moment, and a plugin only counts when it clearly beats that.

When the page’s own render time varies by more than half of its median during the reference requests, the report opens with a warning that the server was too erratic, and the figures below it mean little. Repeat the ranking at a quieter time.

How small a cost can it see

The method was tested by simulation: thousands of invented rankings with realistic noise (a page of about 400 ms, a slow drift shared by both variants, jitter on each request and occasional slow requests). The table shows how often a plugin with a real cost of a given size was reported as a reliable saving.

Real cost 4 rounds 10 rounds
Nothing About 1.5% About 1.5%
15 ms 42% 68%
30 ms 84% 98%
60 ms 95% 100%

Read it this way: a plugin that costs nothing is wrongly reported as a saving about once in seventy rankings. A plugin that costs 30 ms is found in most rankings, and in nearly all with ten rounds. A plugin that costs less than 10 ms stays hard to see, whatever you do. These are simulated figures, not measurements of your server.

A worked example

On a test site, the contact page took about 420 ms to build dynamically with 19 plugins active.

Step What it showed
Ranking Three reliable savings: WooCommerce −66 ms, Meta Box AIO −62 ms, Fluent Forms −39 ms. About a dozen other plugins showed uncertain estimates. The control run showed 10 ms, margin ± 36.
A warning sign The uncertain estimates, added up, came to about the whole render time of the page. That is impossible, and it is the proof that they were noise and not gains.
Measure With the three plugins blocked together: from 417 ms to 246 ms, a saving of 173 ms (42%). The ranges (395–444 ms against 236–259 ms) did not overlap.
Cross-check The three individual savings add up to 167 ms, close to the 173 ms measured together. The ranking was right about them.

The owner kept the forms plugin active on that page anyway, because the page contains a form. The measurement told them what it costs. It did not decide for them.

Server time and visitor time

The same gain does not look the same from the server and from a visitor.

View Static file Dynamic build
Server, no network 17 ms 700 ms
Visitor, from outside 208 ms 472 ms

Both rows are real measurements on a test site, on two different pages, and they are not meant to be compared line by line. The lesson is in the difference between the two shapes. The Speed card on the Overview measures from the server itself, so it isolates the work your server does: the saving is large. A visitor also waits for the network, the secure connection and the download, which cost the same for a static file and for a dynamic page. The gain a visitor feels is smaller, and it is still there: roughly a factor of two on this test.

The Speed card measures your home page only: one warm-up, then five interleaved requests of each kind, medians shown. The dynamic requests carry a unique query string so that nothing is served from a static copy; the static request uses the address a visitor uses. If the static copy is answered through PHP instead of directly by the web server, the card says so.

Get better measurements

  • Choose a quiet moment. A busy shared server makes every figure noisier.
  • Do one measurement at a time. Two measurements running together disturb each other.
  • Keep the tab open. A ranking runs from the page. Closing it cancels the ranking.
  • Repeat with more trials when the result is full of uncertain estimates.
  • Measure the set, not the sum. Use Measure on the plugins you plan to block together.
  • Test the page that matters. A plugin’s cost depends on the page.

What is not measured

Not in the figures Why it matters
Styles and scripts A plugin can add code that the browser must download and run. That weight does not appear in server time.
Network and browser What a visitor waits for after the server has answered.
Static-file visits A visitor served a static file does not pay the build cost at all. The build cost is paid by uncached requests, first visits, logged-in visits and every regeneration.
Other pages A measurement covers the page you tested.
Quality A faster page is not a better page. Whether a page still works without a plugin is for you to check with Preview.

Where the figures are kept

The latest Measure of each page is remembered. The Overview uses it to show, in the plugins card, the best measured saving so far. Only figures that were reliable are shown there. Rankings are not stored: run one again whenever you want a fresh view.

If the figures look wrong

  • Everything is “uncertain” or “not measurable”. The server is probably noisy, or the plugins are cheap. Repeat with more trials, at a quieter moment.
  • A warning says the server was too erratic. Ignore the figures below it, and repeat later.
  • A plugin shows a saving on one run and none on the next. That is what noise looks like. Only trust a plugin that keeps showing a saving, and confirm it with Measure.
  • The ranking stopped after some rounds. It hit the seven-minute limit. Try at a quieter time.
  • The measurement fails with an error. The server did not answer reliably. Try again in a moment.

The measurement screens are described in Plugins, page by page. For other problems, see Troubleshooting.