VitalLens checks the pages you pick against Google PageSpeed Insights on a schedule, stores every result, and shows you what changed over time.
Real-user data where Google has it, a lab test where it doesn't — and it always says which.
Google publishes real-user measurements (CrUX) only for URLs with enough traffic, which most individual pages never have. For everything else the only figure available is a lab test: one simulated load, which is useful for finding causes but is not what any visitor experienced. VitalLens labels every number as
real visitors,
origin only or
lab only, so you always know which of the two you are reading.
What you get
- A two-dot column on your Posts and Pages lists — a filled disc for real visitors, a ring for the lab test. Hover either for the latest LCP, INP and CLS.
- A dashboard that states the situation in a sentence, including when the situation is "nothing has run".
- The cause, not just the symptom — which element moved, what moved it, and how much of the score it accounts for. "CLS 0.16" names the metric; "a 0.162 shift on div.np-maker-layout, caused by an image with no explicit size and two web fonts" is something you can go and fix.
- History for every tracked page, built from your own stored checks, with the failing threshold drawn on the chart and a readout on hover or arrow keys.
- Email alerts that fire before a page crosses a threshold, not only after.
- Check now on any page's report, so a page you have just fixed is re-measured immediately instead of waiting for the next scheduled run.
- A dashboard widget, switched on and off from Screen Options like any other.
- Export — a branded, printable report you can save as a PDF, and CSV of either every tracked page or one page's whole history.
- Backups written automatically to your uploads folder whenever the plugin is deactivated, with one-click restore.
Alerts that earn their send
A percentage change is a poor trigger for Core Web Vitals: CrUX reports CLS on a 0.01 grid, so the smallest move a healthy page can make is already a double-digit percentage. VitalLens judges a change by
how much of the remaining margin it consumed instead. A metric that spends a third of its headroom gets an email while it is still passing; a metric that ticks by one grid step does not.
Four alerts, each switched on or off separately:
- A page starts failing for real visitors
- A page is running out of headroom
- A page starts passing again (off by default — good news should be opt-in)
- Checks stop running
You need a free Google API key
VitalLens talks to Google directly using your own PageSpeed Insights API key. It is free, needs no billing account, and allows 25,000 calls a day — far more than any normal site will use. Nothing is sent to our servers; the key is stored in your database and used only to call Google.
1.0.1
- Fixed: the dashboard counted measurements and called them pages. The plugin stores one row per page per device, so a site tracking 38 pages on mobile and desktop was told "1 of 76 pages is failing" -- while the Tracked pages screen, which counts posts, said 38 at the same moment. The dashboard now counts pages, and a page that fails on one device is counted once rather than twice. The list of pages needing attention still shows the device, because a page failing on mobile and passing on desktop is a real difference worth seeing.
- Fixed: the settings screen showed the same measurement count as "Pages tracked", then multiplied it by the number of devices again to estimate the cost. On a two-device site that doubled both numbers: 76 pages and 152 calls where the truth was 38 and 76. The estimate now counts the rows that will actually be requested, so it also stays right when a device is switched on after some pages were already tracked.
- Fixed: three more notices had the same fault, found while checking the first two. "N tracked pages have not been checked yet" on the Tracked pages screen, "N pages have no real-user data" on the dashboard, and the count in the message after restoring a backup each counted one per page per device, so a site watching two devices saw all three doubled. Each now counts a page once. A page measured on two devices where only one returned real-user data is also no longer described as having none, because it has some.
- Changed: the batch setting is labelled "Checks per run" instead of "Pages per run", and the message after a manual run reports checks rather than pages. The limit was always on checks, and correctly so -- what protects a slow host is how many requests one run makes, not how many pages they cover -- but on a two-device site "5 pages" meant five checks spread across three pages. The figure was right and the word was wrong. The help text under that setting was wrong in the same way and is rewritten: it quoted the old label, and its worked example counted four sweeps of five as twenty pages when on two devices it is twenty checks across ten pages. It now works the figures out from your own settings instead of stating them.
- Changed: the cost figure on the Settings and Tracked pages screens is labelled "Calls per full pass" instead of "Calls per run". It counts a complete pass over everything tracked, while the setting a few centimetres above it counts one fifteen-minute sweep, and both were called "per run".
- Fixed: the message after restoring a backup read "Restored 5 tracked page", because the sentence had no plural form.
1.0.0
First public release. The versions below were development builds and were never
published; they are kept here because they record what changed and why.
- Fixed: a site updated in place could lose every diagnosis until someone opened wp-admin. The schema migration ran on admin_init, which cron never fires, so a sweep that ran first wrote its checks against the old table: the score was stored and the run looked successful, but each finding and diagnosis was dropped without an error. The migration now also runs at the start of the sweep.
- Fixed: a page Google could not load was reported as a rejected API key. PageSpeed answers 400 both for a bad key and for a page Lighthouse failed to render -- a page behind a login, in coming-soon mode, redirecting, or too slow to paint -- and the key check was tested first, so the honest "Google could not load this URL" message could never be reached. The cause is now read before the status code.
- Changed: the screens use the full width of the admin area, like WordPress's own list tables, instead of stopping at 1100px and leaving a dead strip down the right of every page. Explanatory text keeps its own reading measure.
0.6.0
- Every class and file carries the full VitalLens_ prefix, so the plugin passes Plugin Check's prefix rule. The two-letter VL_ prefix was too short and too likely to collide with another plugin.
- Added the External services section the directory requires: what is sent to Google, when, and what is not sent anywhere.
- Fixed: the admin class was loaded only when is_admin() was true, but the alert mail runs from cron and a deactivation snapshot can be written from WP-CLI. Both read a constant from that class, so both could fatal with "class not found".
- Fixed: the schema gained columns in 0.5.0 without its version being bumped, so an existing site would never have run the migration and diagnoses would have failed to store, silently. Caught before release; sites upgrading from 0.5.0 migrate on the next admin page load.
- Removed the load_plugin_textdomain() call: translations have loaded themselves since WordPress 4.6, and calling it is a _doing_it_wrong notice from 6.7.
- readme: shorter plugin name, tested against WordPress 7.1.
0.5.0
- Added: Check now on a page's report, so a page you have just fixed is re-measured immediately instead of waiting for its interval to elapse. Failures report Google's own wording rather than a generic message.
- Added: "What is causing this" on every page report. Each failing metric now names the element involved, the cause Lighthouse attributed it to, and how much of the metric it accounts for — the shifted element and the image or font that pushed it, not just the score.
- Fixed: the report found almost nothing to report. It read only audits of type "opportunity", and Lighthouse 13 moved nearly all of its diagnostics into "insight" audits — so a page with a 0.16 layout shift and a named culprit showed one line about unused JavaScript. Seventeen diagnostic audits are now read.
- Added: the history chart responds to the pointer and to arrow keys, showing the reading and the date for the point under the cursor.
- Changed: findings are stored with the metric, element, selector and contribution they describe, so history keeps the diagnosis and not only the headline. Existing installs migrate on the next admin page load.
0.4.0
- Added: automatic backups. A snapshot of every tracked page, check and setting is written to your uploads folder each time the plugin is deactivated — the step before every delete — and restored in one click from the Settings screen. It lives outside the plugin folder, so deleting the plugin cannot take it.
- Added: the printable report now carries a proper header and credit footer — product and version, the site it describes, when it was generated, where the numbers come from and the thresholds applied — plus a running footer on every printed sheet.
- Fixed: the Lighthouse score ring was escaped with wp_kses_post(), which allows no SVG at all. 549 characters of ring came out as the two digits of the score, on every page report since the first release.
- Fixed: on a phone the Export menu opened past the left edge of the screen, and the tables on Tracked pages and the report were cut off rather than scrolled — the last columns could not be reached at all. Tables now scroll, drop the two least useful columns on small screens, and the menu opens in the flow.
- Fixed: the status line under the dashboard header sat flush against the panel below it.
0.3.1
- Fixed: deleting the plugin dropped its tables and settings. Since people delete a plugin as a step in updating it — usually because uploading over an existing folder fails with "Destination folder already exists" — that silently cost them their history. Data is now kept unless you tick a new box on the Settings screen, and re-installing picks it straight back up.
0.3.0
- Added: a Core Web Vitals dashboard widget, listed in Screen Options alongside At a Glance and Activity.
- Added: export. CSV of every tracked page, CSV of one page's full history, and a printable report that saves as a PDF from the browser's own print dialog.
- Fixed: while a run was in progress the screen printed the button's own label as a loose line of grey text. It is now a status box with a spinner, and it says how long the wait is likely to be instead of repeating the button.
- Fixed: a count of zero passing pages was printed in the colour that means good news.
0.2.0
- Fixed: the select-all box on Tracked pages did nothing. It now ticks every row on screen, shows a partial state when only some are ticked, and supports shift-click to fill a range.
- Fixed: the schedule was never registered on activation, so a fresh install had nothing on the cron calendar until the first time a settings form was saved. Existing installs are repaired on the next admin page load.
- Fixed: form controls were rendered by WordPress rather than the plugin -- square 40px fields beside rounded 44px buttons on every screen with a form. Controls, cards and panels now share one size and one corner radius.
- Fixed: page headings fell back to the stock WordPress heading style.
- Fixed: a PHP deprecation notice printed above the page report on PHP 8.1 and up, and the report had no browser tab title.
- Fixed: a check that failed was shown as "checked N minutes ago" beside an empty score. Failures now say so.
- Added: "Pages per run" in Settings, and a line on Tracked pages saying how many pages are still waiting for a first check -- a bounded sweep looked like a plugin that only tracks five pages.
- Added: the cost figures on Tracked pages now follow the selection as you tick, instead of only after a save.
- Changed: admin notices are drawn in the plugin's own style rather than WordPress's.
0.1.0