Magento Extension

Core Web Vitals PageSpeed for Magento 2

Real speed for real shoppers. Measure LCP, INP and CLS where Google measures them, fix what slows your store down, and check every change before your customers see it.

Last Update: 11 Nov 2026
Version: 2.0.0
Compatibility: Magento Open Source 2.4.7 to 2.4.9 (tested on 2.4.7 and 2.4.9), PHP 8.2 and 8.3 (tested), MySQL or MariaDB. Adobe Commerce, Magento 2.4.8 and PHP 8.4 or 8.5 are expected to work and have not been tested.

Why Core Web Vitals matter

Google ranks pages by the Core Web Vitals of real Chrome users: how fast the main content appears (LCP), how quickly the page reacts to clicks and taps (INP) and how stable the layout is (CLS). A good PageSpeed score in a lab test does not help if real shoppers still wait. This extension works with the numbers that count: the speed of your real visitors.

What it does

  • Measures real visitors. LCP, INP, CLS, FCP and server response time of real page loads, mobile and desktop, the last 28 days. You see the slowest pages and the exact element that is slow.
  • Applies safe improvements. Loads the main image first, lazy-loads images and frames below the first screen, loads YouTube and Vimeo players on click, reserves space for images, shows text while fonts load and connects early to font and script servers. Minifying HTML is a switch too; on the Luma and Blank themes the recommended set leaves it out, because with compressed pages the gain is small. Deferring scripts is there as well on themes where it works; it stays off until you turn it on and check it in the preview.
  • Tests with Google. Runs PageSpeed Insights from your admin panel and compares the draft with the published settings, so you see the effect before you publish.
  • Checks your server and store. PHP version, OPcache, the Magento mode, the full page cache, Varnish and Redis, cron and indexers, the server response of real visitors, file permissions and whether the store can send email.

Safe by design

  • Every change is a draft first. You check it in a preview on your own store and with PageSpeed Insights; your customers still get the published settings.
  • Publish when you are sure. Every published version is kept, and any of them is one click away. One button turns every optimization off.
  • Switches that can affect scripts or the layout are marked "Check preview".
  • The extension never changes what Google sees compared to what people see: crawlers and shoppers get the same page.
  • Cart, checkout and customer account pages are left exactly as Magento makes them: no optimization and no measurement script, always. This differs from our other extensions on purpose: payment pages are strict about scripts, and a faster cart is not worth the risk.
  • Pages of other modules the extension does not know are optimized only if Magento caches them, and only with the safest switches.
  • Works with the Luma, Blank and Hyva themes. With other themes check the preview first.

Private by design

Speed numbers stay on your own store. No cookies, no IP addresses, no personal data, nothing is sent to other servers. The page address is kept without its query string, for up to 28 days.

Free and Pro

Free Core Web Vitals PageSpeed
Core Web Vitals PageSpeed Pro
Real visitor measurements Whole store, 28 days
What to blame (LCP, CLS, INP elements) Top 5 for the store
PageSpeed Insights tests Manual, last 20 tests
Safe optimizations, preview and rollback YES
Delay third-party scripts until the first interaction -
Host Google Fonts locally -
Engineer tools: critical CSS per page type, scripts per page, HTML rules -
Journal of changes with notes Last 10 versions

Pro is an add-on to the free extension. Plans for 1, 5 and 25 sites.

After the purchase, download the Pro add-on in your SiteGuarding account, install it next to the free extension and enter your licence key on its Pro screen.

Need it done for you?

Some problems need a developer: a heavy theme, a slow module, a server that answers late. Our engineers review your store, fix the slow parts by hand and check the result on real visitor data. Order a performance audit or get a quote for a full fix.

FAQ

Does it replace a cache?

No. It works together with the Magento full page cache and with Varnish. For a fast server response keep the full page cache on (in production mode, with Varnish if you have it).

Will it break my store?

Every change is a draft until you publish it, and you can check it in a preview first. Rollback is one click. Cart, checkout and customer account pages are never touched.

Do I need a Google API key?

Only to run PageSpeed Insights tests from the admin panel. The key is free. Real visitor measurements and all optimizations work without it.

What data does it collect?

Speed numbers of page loads, the page address without its query string, the page type and whether the screen is mobile or desktop. No cookies, no IP addresses, no personal data.

Does it work with several stores or domains?

Yes, in a simple way: one installation keeps one set of settings and one set of numbers for all stores of the installation. Measurements are collected on every domain of the installation. The Pro licence works on the domain of the default store; stores on other domains work as with the free extension.

Which Magento versions are supported?

Magento Open Source 2.4.7 to 2.4.9, tested on 2.4.7 and 2.4.9 with PHP 8.2 and 8.3. Adobe Commerce and 2.4.8 are expected to work and have not been tested.

Which database does it need?

MySQL or MariaDB, as Magento uses.

Can I remove it?

Yes. The Settings screen has a "Delete all data now" button; then disable and remove the module as shown below. Nothing stays on your server except four empty tables, which the instructions below also remove.

Requirements

Magento Open Source 2.4.7 to 2.4.9 (tested on 2.4.7 and 2.4.9) with PHP 8.2 or 8.3 (tested; PHP 8.1 or newer is what Magento itself supports). MySQL or MariaDB. SSH access to the server, as the user that owns the Magento files.

Download

Free, no account needed. One file for Magento 2.4.7 to 2.4.9.

Installation

Installing changes the code of the store. In production mode do it in a maintenance window: until setup:di:compile has finished the store shows errors.

In the Magento folder, with the user that owns the Magento files:

bin/magento maintenance:enable
unzip magento-core-web-vitals-pagespeed.zip
bin/magento module:enable Siteguarding_CoreWebVitals
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f <your locales>
bin/magento cache:flush
bin/magento maintenance:disable

setup:di:compile and setup:static-content:deploy are needed in production mode only. Then open Core Web Vitals in the admin menu. Real visitor measurements start at once. To speed up the store, put the recommended safe set in a draft, check it in the preview and publish.

On Magento 2.4.9 with the file page cache, pages cached before a full deploy can keep showing the old settings until they expire (a day). After the deploy, clear the folder var/page_cache.

Pro: unpack the Pro add-on the same way (it works together with the free extension), run the same commands with Siteguarding_CoreWebVitalsPro and enter your licence key on the Pro screen.

Updates

The extension shows a notice on its Overview screen when a new version is out, with the download link, its SHA-256 and the commands. Nothing is downloaded or installed by itself.

1. Download the new file, unpack it over the extension in app/code/Siteguarding and run the same commands as for the installation.

2. Settings and measurements stay.

Pro shows a new version on its Pro screen with a Download version button and the same steps. Pro updates come with an active licence.

Changelog

2.0.0
New extension: real visitor Core Web Vitals, safe optimizations with draft, preview and rollback, PageSpeed Insights tests and speed diagnostics.

Live Chat Support
Our website uses cookies, which help us to improve our site and enables us to deliver the best possible service and customer experience. See our policy Accept