=== Core Web Vitals PageSpeed for WordPress ===
Contributors: sgplugins
Tags: core web vitals, pagespeed, performance, lazy load, speed
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.2
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Measure Core Web Vitals of real visitors, find what slows your pages down and turn on safe speed improvements with a preview and one-click rollback.

== Description ==

Google ranks pages by the Core Web Vitals of real Chrome users: Largest Contentful Paint (LCP), Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS). This plugin measures the same numbers on your own site, shows which pages and which elements are slow, and applies real improvements to the HTML your theme prints.

Nothing reaches your visitors until you publish it. Every change goes to a draft first; you check it in a preview (also with PageSpeed Insights), then publish. Any earlier version can be restored with one click, and one button turns everything off.

= Real visitor measurements =

* LCP, INP, CLS, FCP and TTFB of real page loads, 75th percentile, mobile and desktop, last 28 days.
* The element that is the LCP of a page, the elements that move, the clicks that are slow.
* Data stays on your site. No cookies, no IP addresses, no personal data, nothing is sent to other servers.

= Optimizations =

* Load the main (LCP) image first: preload and high priority.
* Native lazy-load for images and iframes below the first screen.
* YouTube and Vimeo players load on click.
* Width and height for images without them (no layout shifts).
* Text visible while web fonts load.
* Early connections to font and script servers.
* Defer scripts (with exclusions for jQuery, payment and captcha scripts).
* Remove the emoji and embed scripts, admin icons for visitors, jQuery Migrate; calm down the Heartbeat.
* Minify HTML. Browser caching and compression rules for Apache and LiteSpeed.

The same HTML goes to every visitor and to search engines. The plugin never changes what Google sees compared to what people see.

= PageSpeed Insights and diagnostics =

* Run PageSpeed Insights from the dashboard (free Google API key needed) and compare the draft with the published settings.
* Speed diagnostics: PHP version, OPcache, page cache, server response of real visitors, autoloaded options, image formats and more.

= Need more? =

Our engineers fix Core Web Vitals by hand and check the result on real visitor data. See https://www.siteguarding.com/en/google-core-web-vitals-fix

== Frequently Asked Questions ==

= Does it replace a cache plugin? =

No. It works with page caches. For a fast server response use a page cache, for example SiteGuarding SpeedUp.

= Will it break my site? =

Every change is a draft until you publish it, and you can preview it first. Switches that can affect scripts or the layout are marked "Check preview". Rollback is one click.

= What data does it collect? =

Speed numbers of page loads, the page path without query string, the page type and mobile or desktop. No cookies, no IP addresses. The data stays in your WordPress database for up to 28 days.

== Changelog ==

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