Plugins, page by page

Choose which plugins run on which page, preview the result, and measure what each plugin really costs.

Run only the plugins a page needs

By default, WordPress runs every active plugin on every page. A backup plugin, an anti-spam tool that only matters on the contact page, an SEO plugin working on a legal notice, a forms plugin loading its code where there is no form: each one costs time whenever WordPress builds a page. In a dynamic page, that is at every visit. In a static page, it is once, when the static copy is built, and every rebuild is lighter when fewer plugins run.

The Plugins screen lets you decide, page by page, which active plugins are allowed to run. You untick a plugin on a page, a category of content, the blog index, the archives or the search results. Then you preview the result, measure what you gained, and save.

Three rules shape this whole feature:

  • Nothing is suggested. Every plugin is active everywhere until you untick it. MyStaticWP never tells you which plugin is safe to block.
  • Nothing is hidden. A preview shows the page exactly as it would be built, before anything is saved.
  • Everything can be undone. One button makes every plugin active everywhere again.

This feature is independent of static mode. It works whether static mode is on or off.

On this page

What this screen does, and what it does not

Topic It does It does not
Blocking Stops the plugins you unticked from loading on the pages you chose, before WordPress runs them. Deactivate a plugin. It stays active everywhere else, and in the administration.
Timing Applies when WordPress builds the page: for pages served dynamically, and when a static copy is generated. Change a page that visitors already receive as a static file, until that file is rebuilt.
Measuring Measures the server time each plugin adds to a page. Count what a plugin sends to the browser (styles, scripts). Only server time is measured.
Judgment Lets you preview and check a change before visitors see it. Know which plugins are safe to block. That judgment is yours.

Behind the screen, a small file called mystaticwp-plugin-presence.php is placed in wp-content/mu-plugins/. It removes the blocked plugins from the list of active plugins at the very start of a request, before WordPress loads them. MyStaticWP installs it, keeps it up to date, and removes it when you deactivate the plugin.

Before you start

The screen opens with a warning, and it is worth reading: it does not know which plugins are safe to block. A security, SEO, cache or forms plugin blocked on the wrong page can break that page, exactly as a misconfigured caching plugin can.

  • After any change, check that the pages you changed still load and work.
  • Keep the Reset — make every plugin active everywhere button in mind: it clears every choice at once.
  • MyStaticWP itself never appears in the list. It cannot be blocked.

If a red message says Not active on this server, the folder wp-content/mu-plugins/ is not writable. Your choices are still saved, but they have no effect until your host makes that folder writable.

Read the grid

Every table on the screen has the same layout: one row per page (or category, or screen), one column per active plugin.

Element Meaning
Ticked box The plugin runs on this row. This is the default everywhere.
Unticked box The plugin is blocked on this row.
Header box The box in a column header ticks or unticks that plugin for every row of the table.
Row links Check all and Uncheck all tick or untick every plugin on that row.
Row tools Preview, Measure and Cost per plugin are the three tools described below, available on each row.
Filters Filter plugins and Filter pages hide columns or rows to read the grid more easily. Filtering only hides: everything hidden is still saved as it is, and the check and uncheck links leave hidden boxes alone.

Block a plugin on a whole category

The Categories table sets a default for every page of a kind of content:

Category What it covers
Pages Every WordPress page.
Blog (posts) Every post.
WooCommerce (products) Every product. Shown only when WooCommerce is active.
Other content types Any other public content type.
  1. Untick a plugin on a category row.
  2. Leave Also regenerate the static files of the pages this change affects ticked if static mode is on.
  3. Click Save.

A page can still override its category, in the Individual pages tables below.

Block a plugin on a single page

The Individual pages section lists every page under its category, with the page title as a link that opens the page. Untick the plugin on the page’s row and click Save.

A page follows its category until you make its row different from it. MyStaticWP then remembers the difference for that page only. If you later change the category, pages that have no difference of their own follow it.

Blog index, archives and search

Some screens are not a single page. The table Blog index, archives and search has two rows, and each row covers every address of its kind:

Row What it covers
Blog index and archives The blog index, every category archive and tag archive with its pagination, and the front page when it shows your latest posts.
Search results Every search results page, whatever the search term.

Preview and Measure use one example address of each kind: the first archive address, or a search for one letter.

These rows do not cover the 404 page, date and author archives, or feeds. The 404 page cannot be targeted: WordPress only knows a page does not exist after the plugins have loaded, which is when the choice must already be made.

Preview before you save

Click Preview on a row. MyStaticWP builds that page as an anonymous visitor would receive it, with exactly the plugins currently unticked in the row blocked, even if you have not saved. A banner at the top says MyStaticWP plugin preview (blocked: …) — nothing is saved, no visitor sees this.

Look at the whole page, not only the part you expect to change: header, footer, forms, menus, anything that came from the plugin you blocked. A preview shows what the page looks like, not whether every script still works. Try the buttons and the forms.

Save, and let MyStaticWP check

Under each table, two options apply to your next save:

Option What it does
Regenerate “Also regenerate the static files of the pages this change affects” rebuilds the static copy of each page whose blocked plugins changed. Shown only when static mode is on. Without it, visitors keep receiving the previous static copy.
Check “Also check the changed pages for problems” loads each changed page twice, as a visitor: once with every plugin active, once with your choice. It then compares the two.

The check looks for signs that a page got worse:

  • the page now answers with an error;
  • a PHP error message now appears in the page;
  • the visible text is much shorter;
  • text that looks like an unprocessed shortcode is now showing;
  • the page has fewer forms than before.

A page where the check finds an error is not regenerated: visitors keep the previous version, so a broken page is never frozen into the static copy. The message says so.

The check has limits, and the screen says them too. It only looks at the page a visitor receives. It cannot see a script that stopped working, missing tracking, or an anti-spam field. It checks at most eight pages per save, and tells you how many were not checked. Use Preview on those.

Measure what a choice saves

Untick the plugins you are considering on a row, then click Measure. MyStaticWP compares that page built with every plugin active against the same page built with your unticked plugins blocked. It alternates between the two, discards the first request of each, and keeps five of each.

Column Meaning
Median The middle time of the five requests, in milliseconds.
Fastest – slowest The range of the five requests. A wide range means a noisy server.
Plugins loaded How many plugins really ran. It confirms the blocking took effect.
Individual times Each of the five requests.

The verdict on top is one of three:

  • Faster by N ms (P%) on every uncached render of this page. The difference is larger than the noise.
  • The difference cannot be told apart from measurement noise. It is not a reliable saving. Repeat the measurement, ideally at a quieter time.
  • No saving. Blocking these plugins did not make the page faster.

Find the plugins that cost the most

Click Cost per plugin on a row. MyStaticWP ranks every active plugin by what blocking it alone would save on that page. It ignores the row’s boxes: it always tests each plugin against “everything active”.

  • A progress bar shows the number of requests made. Depending on the number of plugins and on the server, it takes from about half a minute to a few minutes. Closing the page cancels it.
  • Each plugin is measured over four rounds. In each round, the reference and the variant are requested one right after the other, so a slow moment on the server hits both and cancels out.
  • At the end, Repeat with more trials runs ten rounds instead of four. It sees smaller costs, and takes longer.

The first line of the result says how long the page takes with every plugin active, and how much that time varies naturally between trials. If the server was too erratic during the measurement, a warning says so before any figure: the numbers below it then mean little.

Read the results

What you see What it means
−N ms (P%) Shown in green. A reliable saving: the difference is clearly larger than the measurement noise.
≈ −N ms (± M) Shown as “uncertain”. The best estimate, with its margin. It cannot be told apart from noise. Do not treat it as a gain.
≈ 0 ms Shown as “not measurable”. Blocking this plugin made no measurable difference on this page.
Page breaks “The page does not load without it”: blocking this plugin breaks the page. Keep it on.
Control run A variant that blocks nothing, measured like the others. It shows how far the method itself drifts from zero. A plugin only counts beyond that margin.

The ranking sorts reliable savings first, then uncertain estimates, then plugins that break the page.

What the numbers do not tell you

  • They are a ranking, not exact figures. Each plugin is measured a limited number of times, on this server, at this moment.
  • They are server time. The styles and scripts a plugin sends to the browser are not in these figures. A plugin with a small server cost can still weigh on the browser.
  • They are the cost of a full dynamic build. Visitors served a static file do not pay it. It is what uncached requests, first visits, logged-in visits and every regeneration cost.
  • They do not add up. Ranking each plugin alone does not give the total of blocking several. To know the gain of a set, tick that set and use Measure.
  • They vary with the server load. The same measurement can differ from one hour to the next.

A way to work

  1. On a page, click Cost per plugin and note the plugins with a reliable saving.
  2. Ask yourself whether the page really needs each of them. A form plugin on a page with a form does.
  3. Untick the ones it does not need and click Measure to see the gain of the whole set.
  4. Click Preview and try the page.
  5. Save, with the check option ticked.
  6. Open the page in a private window.

Where blocking never applies

Situation Behaviour
Administration The administration, WP-CLI and scheduled tasks: every plugin runs.
Other requests Form submissions and any request that is not a plain page view: every plugin runs.
Page builders Every plugin runs in Bricks, Elementor, Divi, Oxygen, Beaver Builder, Brizy and the Customizer, so your editor never loses a plugin it needs.
Unknown address Every plugin runs. Whenever the file cannot tell what to do, it does nothing.

Undo a choice

  • Tick the box again on that row, and save.
  • Click Reset — make every plugin active everywhere to clear every category choice and every page choice at once. Static files of the affected pages are rebuilt, because a reset is an undo.
  • Deactivate MyStaticWP: the file in mu-plugins is removed and every plugin runs everywhere.

If something looks wrong

  • A page is broken after a save. Tick back the plugin you blocked on that row, or click Reset.
  • Nothing changes after a save. Check for the red Not active on this server message. If static mode is on, also check that the pages were regenerated: a static file keeps the previous state until it is rebuilt.
  • A form stopped working. The plugin that handles it is probably blocked on that page. Tick it again.
  • The ranking shows nothing but “not measurable”. Repeat it with more trials, at a quieter time. On a busy server, small costs are hidden by noise.
  • The measurement stops with an error. The server did not answer reliably. Try again in a moment.

More help is on the Troubleshooting page.