Changeset 3802030
- Timestamp:
- 11/14/2026 01:58:28 PM (4 days ago)
- Location:
- imzura-site-check
- Files:
-
- 10 edited
- 1 copied
-
tags/1.6.1 (copied) (copied from imzura-site-check/trunk )
-
tags/1.6.1/assets/probe.js (modified) (4 diffs)
-
tags/1.6.1/imzura-site-check.php (modified) (2 diffs)
-
tags/1.6.1/includes/checks/class-delivery.php (modified) (1 diff)
-
tags/1.6.1/includes/class-options.php (modified) (2 diffs)
-
tags/1.6.1/readme.txt (modified) (6 diffs)
-
trunk/assets/probe.js (modified) (4 diffs)
-
trunk/imzura-site-check.php (modified) (2 diffs)
-
trunk/includes/checks/class-delivery.php (modified) (1 diff)
-
trunk/includes/class-options.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imzura-site-check/tags/1.6.1/assets/probe.js
r3801444 r3802030 220 220 const at = performance.now(); 221 221 222 if ( 'loading' === document.readyState ) { 223 return; 224 } 225 222 226 while ( added.length && added[ 0 ][ 0 ] < at - 3000 ) { 223 227 added.shift(); … … 583 587 } 584 588 589 if ( 3 === node.nodeType ) { 590 const words = String( node.textContent || '' ).replace( /\s+/g, ' ' ).trim(); 591 592 return words ? 'text "' + ( words.length > 40 ? words.slice( 0, 40 ) + '…' : words ) + '"' : describe( node.parentElement ); 593 } 594 585 595 let text = node.nodeName.toLowerCase(); 586 596 … … 592 602 593 603 return text.slice( 0, 80 ); 604 } 605 606 function named( node ) { 607 const what = describe( node ); 608 609 if ( ! what || /[#.]/.test( what ) ) { 610 return what; 611 } 612 613 const words = String( node.textContent || '' ).replace( /\s+/g, ' ' ).trim(); 614 615 if ( words ) { 616 return what + ' "' + ( words.length > 40 ? words.slice( 0, 40 ) + '…' : words ) + '"'; 617 } 618 619 const picture = node.querySelector ? node.querySelector( 'img[src]' ) : null; 620 621 return picture ? what + ' (' + plain( picture.currentSrc || picture.src ).split( '/' ).pop().slice( 0, 50 ) + ')' : what; 594 622 } 595 623 … … 877 905 shift: Math.round( painted.shift * 1000 ) / 1000, 878 906 shifters: painted.shifters.sort( ( a, b ) => b[ 0 ] - a[ 0 ] ).map( ( item ) => describe( item[ 1 ] ) ).filter( ( what, i, all ) => what && all.indexOf( what ) === i ).slice( 0, 3 ), 879 pushers: painted.pushers.sort( ( a, b ) => b[ 0 ] - a[ 0 ] ).map( ( item ) => describe( item[ 1 ] ) ).filter( ( what, i, all ) => what && all.indexOf( what ) === i ).slice( 0, 2 ),907 pushers: painted.pushers.sort( ( a, b ) => b[ 0 ] - a[ 0 ] ).map( ( item ) => named( item[ 1 ] ) ).filter( ( what, i, all ) => what && all.indexOf( what ) === i ).slice( 0, 2 ), 880 908 lazyTop: lazyTop, 881 909 sizeless: sizeless, -
imzura-site-check/tags/1.6.1/imzura-site-check.php
r3801444 r3802030 1 1 <?php 2 2 /** 3 * Plugin Name: imzura Site Check – Speed & SiteOptimization3 * Plugin Name: imzura Site Check – Page Speed & Core Web Vitals Optimization 4 4 * Plugin URI: https://imzura.com/products/site-check 5 5 * Description: Finds what slows your site down, on the front end, in the admin and in WooCommerce, and proves every fix with a measurement. 6 * Version: 1.6. 06 * Version: 1.6.1 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 define( 'SPEED_DOCTOR_VERSION', '1.6. 0' );20 define( 'SPEED_DOCTOR_VERSION', '1.6.1' ); 21 21 define( 'SPEED_DOCTOR_FILE', __FILE__ ); 22 22 define( 'SPEED_DOCTOR_DIR', plugin_dir_path( __FILE__ ) ); -
imzura-site-check/tags/1.6.1/includes/checks/class-delivery.php
r3797325 r3802030 83 83 } 84 84 85 $status = isset( $this->seen[ $kind ]['status'] ) ? (int) $this->seen[ $kind ]['status'] : 0; 86 87 if ( $status < 200 || $status > 299 ) { 88 return array(); 89 } 90 85 91 $headers = array(); 86 92 -
imzura-site-check/tags/1.6.1/includes/class-options.php
r3801444 r3802030 60 60 const SHARED = array( 'fs_', 'action_scheduler', 'speed_doctor_', '_transient_', '_site_transient_' ); 61 61 62 const CORE = array( 'rewrite_rules', 'cron', 'active_plugins', 'sidebars_widgets', 'recently_activated', 'uninstall_plugins', 'recovery_keys', 'wp_force_deactivated_plugins', ' auto_update_plugins', 'auto_update_themes', 'site_icon', 'theme_switched', 'can_compress_scripts', 'db_upgraded', 'user_count', 'finished_updating_comment_type' );62 const CORE = array( 'rewrite_rules', 'cron', 'active_plugins', 'sidebars_widgets', 'recently_activated', 'uninstall_plugins', 'recovery_keys', 'wp_force_deactivated_plugins', 'site_icon', 'theme_switched', 'can_compress_scripts', 'db_upgraded', 'user_count', 'finished_updating_comment_type' ); 63 63 64 64 private static $plugins = null; … … 88 88 $lower = strtolower( $name ); 89 89 90 if ( in_array( $lower, self::CORE, true ) || 0 === strpos( $lower, 'widget_' ) || $GLOBALS['wpdb']->prefix . 'user_roles' === $name ) {90 if ( in_array( $lower, self::CORE, true ) || 0 === strpos( $lower, 'widget_' ) || 0 === strpos( $lower, 'auto_update_' ) || $GLOBALS['wpdb']->prefix . 'user_roles' === $name ) { 91 91 return array( 92 92 'kind' => 'core', -
imzura-site-check/tags/1.6.1/readme.txt
r3801444 r3802030 1 === imzura Site Check – Speed & SiteOptimization ===1 === imzura Site Check – Page Speed & Core Web Vitals Optimization === 2 2 Contributors: imzura 3 Tags: performance, speed, woocommerce, optimization, core web vitals3 Tags: performance, pagespeed, core web vitals, speed, woocommerce 4 4 Requires at least: 6.2 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.6. 07 Stable tag: 1.6.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 27 27 The check opens your pages in a hidden frame of its own screen, at phone width and as a first-time visitor, so it sees what a visitor's browser sees, not only what the server sends. 28 28 29 * Front-end pages: time the server takes, the weight of each page and whose files make it up, plugins that load on pages that do not use them, heavy pictures and videos 30 * A table of what each plugin and the theme cost your pages: how long its code keeps the server busy and how many database queries it makes, its scripts and stylesheets and their weight, on how many pages 31 * Plugins that keep the server busy: a plugin (or the theme) whose code takes 100 ms or more of a page (or 50 ms that are a quarter of the page's time), or makes 100 or more database queries there, is named, with the numbers for each page 32 * The same for the admin: the check also opens the dashboard and the posts list (and, with WooCommerce, the products and orders lists) as you, and names the plugins whose code, dashboard widgets included, keeps those screens waiting 33 * Plugins that load their files on pages where nothing of them is shown: the browser checks every rule of each plugin's stylesheets against the page, and a plugin none of whose rules apply there is named, with the weight it adds 34 * The largest stylesheets (50 KB or more) and scripts (100 KB or more), with the plugin or theme that adds each one 35 * Errors on your pages, each put down to the plugin or theme it comes from: PHP errors raised while the page is built (fatal ones included), script errors in the browser, and files the page asks for that do not load 36 * Pictures: the largest picture on the first screen waiting for lazy loading or not marked as urgent, other lazy pictures on the first screen, pictures without a width and height, how far the page jumps while it loads (layout shift), with what moved it, animations on the first screen that never stop, how much more phones with 3× screens download than 2× screens (from each picture's srcset and the files on your server), and how many copies of each upload WordPress keeps and the disk space they take, with the theme or plugin behind each picture size 37 * Fonts: fonts loaded from Google's servers, how many font files a page loads, text that waits for its font, Font Awesome loaded more than once, the same font loaded twice (from two Google Fonts stylesheets, or the same font file from two places) with the theme or plugin behind each, font preloads that cannot be used, and a font loaded for less than 3% of the text next to the font the rest of the page uses 38 * Scripts: files from other websites, the same library loaded twice, and which plugin's scripts keep the browser busy while the page loads (in Chrome, Edge and other Chromium-based browsers) 39 * Speed settings of well-known plugins that are off: Elementor (Inline Font Icons, CSS Print Method, optimized image loading, lazy background images, local Google Fonts and their font-display), Formidable Forms styles on every page, Wordfence logging every visit, and the local Google Fonts setting of Astra, Kadence, OceanWP and Spectra (or GeneratePress font-display) when their fonts come from Google. This plugin only reads these settings and names them as each plugin's screen does 40 * Housekeeping: the PHP error log (whether strangers can download it, its size, the plugins that fill it), backup and archive files left in wp-content, the largest database tables, plugins that are installed but switched off, and two SEO plugins active at once 41 * Slow taps (Interaction to Next Paint): after the page has loaded, the check taps menus, buttons and tabs (never a link or a form, and with the network held back) and names the plugin or theme whose code made the visitor wait, and scripts that keep the browser busy after the page has loaded 42 * Pages built from too many elements (more than 1,400), how many of them are hidden at phone width, and the largest parts of each page 29 * Front-end pages: the time the server takes, the weight of each page and whose files make it up, heavy pictures and videos, and plugins whose files load on pages where nothing of them is shown (every rule of their stylesheets is checked against the page) 30 * What each plugin and the theme cost your pages: server time, database queries, scripts and stylesheets and their weight, on how many pages. A plugin that takes 100 ms or more of a page (or a quarter of its time), or makes 100 or more queries there, is named with the numbers 31 * The admin too: the dashboard and the posts list (with WooCommerce, the products and orders lists), and the plugins and dashboard widgets that keep them waiting 32 * The largest stylesheets (50 KB or more) and scripts (100 KB or more), with the plugin or theme behind each 33 * Errors put down to the plugin or theme they come from: PHP errors while the page is built (fatal ones included), script errors in the browser, and files that do not load 34 * Pictures: the main picture of the first screen waiting for lazy loading or not marked as urgent, other lazy pictures on the first screen, pictures without a width and height, layout shift with what moved and what was added late, animations that never stop, how much more 3× phone screens download than 2×, and how many copies of each upload WordPress keeps, with the theme or plugin behind each size 35 * Fonts: fonts from Google's servers, how many font files a page loads, text waiting for its font, Font Awesome or the same font loaded more than once (with who loads each copy), font preloads that cannot be used, and a font used for less than 3% of the text 36 * Scripts: files from other websites, the same library loaded twice, scripts that keep the browser busy while the page loads, and slow taps (Interaction to Next Paint): the check taps menus, buttons and tabs (never a link or a form, with the network held back) and names the plugin or theme whose code made the visitor wait 37 * Pages built from more than 1,400 elements, how many of them are hidden at phone width, and the largest parts 43 38 * Pages that no server or CDN cache can keep: the plugin or theme that gives every first-time visitor a cookie or a PHP session, or sends a no-store, no-cache or private header (the cart and the checkout are left out) 44 * Settings WordPress loads on every request (autoloaded options): the largest of them with the plugin or theme each belongs to, active, switched off or removed, and a button that stops loading the ones left behind by plugins and themes that are not active (they stay in the database, and it can be undone) 45 * Scheduled jobs that have fallen behind, including the Action Scheduler queue 46 * WooCommerce: order storage, sessions that pile up, the cart script running outside the shop 47 * The environment: PHP version, object cache, the page cache in use, and a cache plugin that is active with its page caching switched off (WP Super Cache, W3 Total Cache, WP Fastest Cache, WP-Optimize, Breeze, Hummingbird), named with the setting 48 * How the server delivers pages and files: compressed (gzip, Brotli) or not, and whether browsers may keep stylesheets and scripts 49 * The hosting: PHP running without OPcache, or with OPcache full, and slow pages whose time passes mostly outside the code of every plugin and the theme, which points at the server rather than at a plugin 50 * Links: same-site links on the checked pages that lead to a missing page, and links that go through one or more redirects, each with the page it is on (up to 30 links per check, asked from your own server the way a visitor's browser would) 39 * Settings loaded on every request (autoloaded options): the largest, with the plugin or theme each belongs to (active, switched off or removed), and a button that stops loading the ones left behind by plugins and themes that are not active (they stay in the database, and it can be undone) 40 * Speed settings of well-known plugins that are off: Elementor (Inline Font Icons, CSS Print Method, optimized image loading, lazy background images, local Google Fonts and their font-display), Formidable Forms styles on every page, Wordfence logging every visit, and local Google Fonts in Astra, Kadence, OceanWP and Spectra (or GeneratePress font-display). This plugin only reads these settings 41 * Housekeeping: the PHP error log (whether strangers can download it, its size, who fills it), backup files left in wp-content, the largest database tables, plugins installed but switched off, two SEO plugins at once, scheduled jobs that have fallen behind (Action Scheduler included), and with WooCommerce the order storage, sessions that pile up and the cart script running outside the shop 42 * Server and hosting: PHP version, object cache, the page cache in use (and a cache plugin active with page caching off: WP Super Cache, W3 Total Cache, WP Fastest Cache, WP-Optimize, Breeze, Hummingbird), compression and browser caching of files, PHP without OPcache or with OPcache full, and slow pages whose time passes outside every plugin and the theme, which points at the server 43 * Links on the checked pages that lead to a missing page or go through redirects, each with the page it is on (up to 30 links per check) 51 44 52 45 = The fixes = … … 71 64 = Works with other optimizers = 72 65 73 Two plugins minifying the same files is a common cause of broken pages. If Autoptimize, LiteSpeed Cache, WP Fastest Cache, W3 Total Cache, Speed Optimizer, WP-Optimize, Breeze, Jetpack Boost, Asset CleanUp or Fast Velocity Minify already minifies your stylesheets or scripts, this plugin does not try its own fix: it names the plugin and the exact setting, and links to that plugin's settings. This plugin only reads their settings and never changes them. For WP Rocket, Perfmatters, FlyingPress, NitroPack and Hummingbird, whose settings it cannot read, it reminds you to keep only one of the two. 74 75 The same goes for loading scripts with defer: while Autoptimize, LiteSpeed Cache, WP Fastest Cache, Speed Optimizer, WP-Optimize or Jetpack Boost already defers your scripts, this plugin's defer fix cannot be tried. 76 77 When a fix has nothing to do on your site, for example because your theme does not load that file in the first place, this plugin says "Nothing to gain" and leaves it off. 66 When Autoptimize, LiteSpeed Cache, WP Fastest Cache, WP-Optimize or another optimizer already minifies or defers your files, this plugin does not do it a second time: it names the plugin and the exact setting (more in the FAQ). When a fix has nothing to do on your site, it says "Nothing to gain" and stays off. 78 67 79 68 = Safety = … … 88 77 * Removing the plugin removes its settings, the picture copies and the minified copies it made. 89 78 90 = What we tested it with =91 92 Themes: Astra, Kadence, GeneratePress, OceanWP, Twenty Twenty-Five, Hello Elementor with Elementor, Storefront.93 94 Page caches, switching a fix on and off with the cache running: Cache Enabler, WP Super Cache, WP-Optimize, W3 Total Cache, Breeze, WP Fastest Cache.95 96 This plugin also asks WP Rocket, LiteSpeed Cache, Speed Optimizer, Hummingbird and Autoptimize to clear their cache, but we have not yet tested those ourselves. Other caches can listen to the `speed_doctor_clear_cache` action.97 98 79 = Privacy = 99 80 … … 111 92 112 93 == Frequently Asked Questions == 94 95 = Does it work next to WP Rocket, LiteSpeed Cache, Autoptimize and other optimizers? = 96 97 Two plugins minifying the same files is a common cause of broken pages. If Autoptimize, LiteSpeed Cache, WP Fastest Cache, W3 Total Cache, Speed Optimizer, WP-Optimize, Breeze, Jetpack Boost, Asset CleanUp or Fast Velocity Minify already minifies your stylesheets or scripts, this plugin does not try its own fix: it names the plugin and the exact setting, and links to that plugin's settings. This plugin only reads their settings and never changes them. For WP Rocket, Perfmatters, FlyingPress, NitroPack and Hummingbird, whose settings it cannot read, it reminds you to keep only one of the two. 98 99 The same goes for loading scripts with defer: while Autoptimize, LiteSpeed Cache, WP Fastest Cache, Speed Optimizer, WP-Optimize or Jetpack Boost already defers your scripts, this plugin's defer fix cannot be tried. 100 101 When a fix has nothing to do on your site, for example because your theme does not load that file in the first place, this plugin says "Nothing to gain" and leaves it off. 102 103 = Which themes and page caches is it tested with? = 104 105 Themes: Astra, Kadence, GeneratePress, OceanWP, Twenty Twenty-Five, Hello Elementor with Elementor, Storefront. 106 107 Page caches, switching a fix on and off with the cache running: Cache Enabler, WP Super Cache, WP-Optimize, W3 Total Cache, Breeze, WP Fastest Cache. 108 109 This plugin also asks WP Rocket, LiteSpeed Cache, Speed Optimizer, Hummingbird and Autoptimize to clear their cache, but we have not yet tested those ourselves. Other caches can listen to the `speed_doctor_clear_cache` action. 113 110 114 111 = Will it raise my PageSpeed Insights score? = … … 191 188 192 189 == Changelog == 190 191 = 1.6.1 = 192 * A layout shift now names a late element that has no id or class by its text (or its picture), and moved text by its words. Elements that are in the page from the start are no longer named as added late. 193 * The check no longer says the server sends files without compression, or that browsers are not told to keep them, when it could not read the answer as a visitor: a site behind a password (a staging copy), a maintenance page or a security challenge. 193 194 194 195 = 1.6.0 = -
imzura-site-check/trunk/assets/probe.js
r3801444 r3802030 220 220 const at = performance.now(); 221 221 222 if ( 'loading' === document.readyState ) { 223 return; 224 } 225 222 226 while ( added.length && added[ 0 ][ 0 ] < at - 3000 ) { 223 227 added.shift(); … … 583 587 } 584 588 589 if ( 3 === node.nodeType ) { 590 const words = String( node.textContent || '' ).replace( /\s+/g, ' ' ).trim(); 591 592 return words ? 'text "' + ( words.length > 40 ? words.slice( 0, 40 ) + '…' : words ) + '"' : describe( node.parentElement ); 593 } 594 585 595 let text = node.nodeName.toLowerCase(); 586 596 … … 592 602 593 603 return text.slice( 0, 80 ); 604 } 605 606 function named( node ) { 607 const what = describe( node ); 608 609 if ( ! what || /[#.]/.test( what ) ) { 610 return what; 611 } 612 613 const words = String( node.textContent || '' ).replace( /\s+/g, ' ' ).trim(); 614 615 if ( words ) { 616 return what + ' "' + ( words.length > 40 ? words.slice( 0, 40 ) + '…' : words ) + '"'; 617 } 618 619 const picture = node.querySelector ? node.querySelector( 'img[src]' ) : null; 620 621 return picture ? what + ' (' + plain( picture.currentSrc || picture.src ).split( '/' ).pop().slice( 0, 50 ) + ')' : what; 594 622 } 595 623 … … 877 905 shift: Math.round( painted.shift * 1000 ) / 1000, 878 906 shifters: painted.shifters.sort( ( a, b ) => b[ 0 ] - a[ 0 ] ).map( ( item ) => describe( item[ 1 ] ) ).filter( ( what, i, all ) => what && all.indexOf( what ) === i ).slice( 0, 3 ), 879 pushers: painted.pushers.sort( ( a, b ) => b[ 0 ] - a[ 0 ] ).map( ( item ) => describe( item[ 1 ] ) ).filter( ( what, i, all ) => what && all.indexOf( what ) === i ).slice( 0, 2 ),907 pushers: painted.pushers.sort( ( a, b ) => b[ 0 ] - a[ 0 ] ).map( ( item ) => named( item[ 1 ] ) ).filter( ( what, i, all ) => what && all.indexOf( what ) === i ).slice( 0, 2 ), 880 908 lazyTop: lazyTop, 881 909 sizeless: sizeless, -
imzura-site-check/trunk/imzura-site-check.php
r3801444 r3802030 1 1 <?php 2 2 /** 3 * Plugin Name: imzura Site Check – Speed & SiteOptimization3 * Plugin Name: imzura Site Check – Page Speed & Core Web Vitals Optimization 4 4 * Plugin URI: https://imzura.com/products/site-check 5 5 * Description: Finds what slows your site down, on the front end, in the admin and in WooCommerce, and proves every fix with a measurement. 6 * Version: 1.6. 06 * Version: 1.6.1 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 define( 'SPEED_DOCTOR_VERSION', '1.6. 0' );20 define( 'SPEED_DOCTOR_VERSION', '1.6.1' ); 21 21 define( 'SPEED_DOCTOR_FILE', __FILE__ ); 22 22 define( 'SPEED_DOCTOR_DIR', plugin_dir_path( __FILE__ ) ); -
imzura-site-check/trunk/includes/checks/class-delivery.php
r3797325 r3802030 83 83 } 84 84 85 $status = isset( $this->seen[ $kind ]['status'] ) ? (int) $this->seen[ $kind ]['status'] : 0; 86 87 if ( $status < 200 || $status > 299 ) { 88 return array(); 89 } 90 85 91 $headers = array(); 86 92 -
imzura-site-check/trunk/includes/class-options.php
r3801444 r3802030 60 60 const SHARED = array( 'fs_', 'action_scheduler', 'speed_doctor_', '_transient_', '_site_transient_' ); 61 61 62 const CORE = array( 'rewrite_rules', 'cron', 'active_plugins', 'sidebars_widgets', 'recently_activated', 'uninstall_plugins', 'recovery_keys', 'wp_force_deactivated_plugins', ' auto_update_plugins', 'auto_update_themes', 'site_icon', 'theme_switched', 'can_compress_scripts', 'db_upgraded', 'user_count', 'finished_updating_comment_type' );62 const CORE = array( 'rewrite_rules', 'cron', 'active_plugins', 'sidebars_widgets', 'recently_activated', 'uninstall_plugins', 'recovery_keys', 'wp_force_deactivated_plugins', 'site_icon', 'theme_switched', 'can_compress_scripts', 'db_upgraded', 'user_count', 'finished_updating_comment_type' ); 63 63 64 64 private static $plugins = null; … … 88 88 $lower = strtolower( $name ); 89 89 90 if ( in_array( $lower, self::CORE, true ) || 0 === strpos( $lower, 'widget_' ) || $GLOBALS['wpdb']->prefix . 'user_roles' === $name ) {90 if ( in_array( $lower, self::CORE, true ) || 0 === strpos( $lower, 'widget_' ) || 0 === strpos( $lower, 'auto_update_' ) || $GLOBALS['wpdb']->prefix . 'user_roles' === $name ) { 91 91 return array( 92 92 'kind' => 'core', -
imzura-site-check/trunk/readme.txt
r3801444 r3802030 1 === imzura Site Check – Speed & SiteOptimization ===1 === imzura Site Check – Page Speed & Core Web Vitals Optimization === 2 2 Contributors: imzura 3 Tags: performance, speed, woocommerce, optimization, core web vitals3 Tags: performance, pagespeed, core web vitals, speed, woocommerce 4 4 Requires at least: 6.2 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.6. 07 Stable tag: 1.6.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 27 27 The check opens your pages in a hidden frame of its own screen, at phone width and as a first-time visitor, so it sees what a visitor's browser sees, not only what the server sends. 28 28 29 * Front-end pages: time the server takes, the weight of each page and whose files make it up, plugins that load on pages that do not use them, heavy pictures and videos 30 * A table of what each plugin and the theme cost your pages: how long its code keeps the server busy and how many database queries it makes, its scripts and stylesheets and their weight, on how many pages 31 * Plugins that keep the server busy: a plugin (or the theme) whose code takes 100 ms or more of a page (or 50 ms that are a quarter of the page's time), or makes 100 or more database queries there, is named, with the numbers for each page 32 * The same for the admin: the check also opens the dashboard and the posts list (and, with WooCommerce, the products and orders lists) as you, and names the plugins whose code, dashboard widgets included, keeps those screens waiting 33 * Plugins that load their files on pages where nothing of them is shown: the browser checks every rule of each plugin's stylesheets against the page, and a plugin none of whose rules apply there is named, with the weight it adds 34 * The largest stylesheets (50 KB or more) and scripts (100 KB or more), with the plugin or theme that adds each one 35 * Errors on your pages, each put down to the plugin or theme it comes from: PHP errors raised while the page is built (fatal ones included), script errors in the browser, and files the page asks for that do not load 36 * Pictures: the largest picture on the first screen waiting for lazy loading or not marked as urgent, other lazy pictures on the first screen, pictures without a width and height, how far the page jumps while it loads (layout shift), with what moved it, animations on the first screen that never stop, how much more phones with 3× screens download than 2× screens (from each picture's srcset and the files on your server), and how many copies of each upload WordPress keeps and the disk space they take, with the theme or plugin behind each picture size 37 * Fonts: fonts loaded from Google's servers, how many font files a page loads, text that waits for its font, Font Awesome loaded more than once, the same font loaded twice (from two Google Fonts stylesheets, or the same font file from two places) with the theme or plugin behind each, font preloads that cannot be used, and a font loaded for less than 3% of the text next to the font the rest of the page uses 38 * Scripts: files from other websites, the same library loaded twice, and which plugin's scripts keep the browser busy while the page loads (in Chrome, Edge and other Chromium-based browsers) 39 * Speed settings of well-known plugins that are off: Elementor (Inline Font Icons, CSS Print Method, optimized image loading, lazy background images, local Google Fonts and their font-display), Formidable Forms styles on every page, Wordfence logging every visit, and the local Google Fonts setting of Astra, Kadence, OceanWP and Spectra (or GeneratePress font-display) when their fonts come from Google. This plugin only reads these settings and names them as each plugin's screen does 40 * Housekeeping: the PHP error log (whether strangers can download it, its size, the plugins that fill it), backup and archive files left in wp-content, the largest database tables, plugins that are installed but switched off, and two SEO plugins active at once 41 * Slow taps (Interaction to Next Paint): after the page has loaded, the check taps menus, buttons and tabs (never a link or a form, and with the network held back) and names the plugin or theme whose code made the visitor wait, and scripts that keep the browser busy after the page has loaded 42 * Pages built from too many elements (more than 1,400), how many of them are hidden at phone width, and the largest parts of each page 29 * Front-end pages: the time the server takes, the weight of each page and whose files make it up, heavy pictures and videos, and plugins whose files load on pages where nothing of them is shown (every rule of their stylesheets is checked against the page) 30 * What each plugin and the theme cost your pages: server time, database queries, scripts and stylesheets and their weight, on how many pages. A plugin that takes 100 ms or more of a page (or a quarter of its time), or makes 100 or more queries there, is named with the numbers 31 * The admin too: the dashboard and the posts list (with WooCommerce, the products and orders lists), and the plugins and dashboard widgets that keep them waiting 32 * The largest stylesheets (50 KB or more) and scripts (100 KB or more), with the plugin or theme behind each 33 * Errors put down to the plugin or theme they come from: PHP errors while the page is built (fatal ones included), script errors in the browser, and files that do not load 34 * Pictures: the main picture of the first screen waiting for lazy loading or not marked as urgent, other lazy pictures on the first screen, pictures without a width and height, layout shift with what moved and what was added late, animations that never stop, how much more 3× phone screens download than 2×, and how many copies of each upload WordPress keeps, with the theme or plugin behind each size 35 * Fonts: fonts from Google's servers, how many font files a page loads, text waiting for its font, Font Awesome or the same font loaded more than once (with who loads each copy), font preloads that cannot be used, and a font used for less than 3% of the text 36 * Scripts: files from other websites, the same library loaded twice, scripts that keep the browser busy while the page loads, and slow taps (Interaction to Next Paint): the check taps menus, buttons and tabs (never a link or a form, with the network held back) and names the plugin or theme whose code made the visitor wait 37 * Pages built from more than 1,400 elements, how many of them are hidden at phone width, and the largest parts 43 38 * Pages that no server or CDN cache can keep: the plugin or theme that gives every first-time visitor a cookie or a PHP session, or sends a no-store, no-cache or private header (the cart and the checkout are left out) 44 * Settings WordPress loads on every request (autoloaded options): the largest of them with the plugin or theme each belongs to, active, switched off or removed, and a button that stops loading the ones left behind by plugins and themes that are not active (they stay in the database, and it can be undone) 45 * Scheduled jobs that have fallen behind, including the Action Scheduler queue 46 * WooCommerce: order storage, sessions that pile up, the cart script running outside the shop 47 * The environment: PHP version, object cache, the page cache in use, and a cache plugin that is active with its page caching switched off (WP Super Cache, W3 Total Cache, WP Fastest Cache, WP-Optimize, Breeze, Hummingbird), named with the setting 48 * How the server delivers pages and files: compressed (gzip, Brotli) or not, and whether browsers may keep stylesheets and scripts 49 * The hosting: PHP running without OPcache, or with OPcache full, and slow pages whose time passes mostly outside the code of every plugin and the theme, which points at the server rather than at a plugin 50 * Links: same-site links on the checked pages that lead to a missing page, and links that go through one or more redirects, each with the page it is on (up to 30 links per check, asked from your own server the way a visitor's browser would) 39 * Settings loaded on every request (autoloaded options): the largest, with the plugin or theme each belongs to (active, switched off or removed), and a button that stops loading the ones left behind by plugins and themes that are not active (they stay in the database, and it can be undone) 40 * Speed settings of well-known plugins that are off: Elementor (Inline Font Icons, CSS Print Method, optimized image loading, lazy background images, local Google Fonts and their font-display), Formidable Forms styles on every page, Wordfence logging every visit, and local Google Fonts in Astra, Kadence, OceanWP and Spectra (or GeneratePress font-display). This plugin only reads these settings 41 * Housekeeping: the PHP error log (whether strangers can download it, its size, who fills it), backup files left in wp-content, the largest database tables, plugins installed but switched off, two SEO plugins at once, scheduled jobs that have fallen behind (Action Scheduler included), and with WooCommerce the order storage, sessions that pile up and the cart script running outside the shop 42 * Server and hosting: PHP version, object cache, the page cache in use (and a cache plugin active with page caching off: WP Super Cache, W3 Total Cache, WP Fastest Cache, WP-Optimize, Breeze, Hummingbird), compression and browser caching of files, PHP without OPcache or with OPcache full, and slow pages whose time passes outside every plugin and the theme, which points at the server 43 * Links on the checked pages that lead to a missing page or go through redirects, each with the page it is on (up to 30 links per check) 51 44 52 45 = The fixes = … … 71 64 = Works with other optimizers = 72 65 73 Two plugins minifying the same files is a common cause of broken pages. If Autoptimize, LiteSpeed Cache, WP Fastest Cache, W3 Total Cache, Speed Optimizer, WP-Optimize, Breeze, Jetpack Boost, Asset CleanUp or Fast Velocity Minify already minifies your stylesheets or scripts, this plugin does not try its own fix: it names the plugin and the exact setting, and links to that plugin's settings. This plugin only reads their settings and never changes them. For WP Rocket, Perfmatters, FlyingPress, NitroPack and Hummingbird, whose settings it cannot read, it reminds you to keep only one of the two. 74 75 The same goes for loading scripts with defer: while Autoptimize, LiteSpeed Cache, WP Fastest Cache, Speed Optimizer, WP-Optimize or Jetpack Boost already defers your scripts, this plugin's defer fix cannot be tried. 76 77 When a fix has nothing to do on your site, for example because your theme does not load that file in the first place, this plugin says "Nothing to gain" and leaves it off. 66 When Autoptimize, LiteSpeed Cache, WP Fastest Cache, WP-Optimize or another optimizer already minifies or defers your files, this plugin does not do it a second time: it names the plugin and the exact setting (more in the FAQ). When a fix has nothing to do on your site, it says "Nothing to gain" and stays off. 78 67 79 68 = Safety = … … 88 77 * Removing the plugin removes its settings, the picture copies and the minified copies it made. 89 78 90 = What we tested it with =91 92 Themes: Astra, Kadence, GeneratePress, OceanWP, Twenty Twenty-Five, Hello Elementor with Elementor, Storefront.93 94 Page caches, switching a fix on and off with the cache running: Cache Enabler, WP Super Cache, WP-Optimize, W3 Total Cache, Breeze, WP Fastest Cache.95 96 This plugin also asks WP Rocket, LiteSpeed Cache, Speed Optimizer, Hummingbird and Autoptimize to clear their cache, but we have not yet tested those ourselves. Other caches can listen to the `speed_doctor_clear_cache` action.97 98 79 = Privacy = 99 80 … … 111 92 112 93 == Frequently Asked Questions == 94 95 = Does it work next to WP Rocket, LiteSpeed Cache, Autoptimize and other optimizers? = 96 97 Two plugins minifying the same files is a common cause of broken pages. If Autoptimize, LiteSpeed Cache, WP Fastest Cache, W3 Total Cache, Speed Optimizer, WP-Optimize, Breeze, Jetpack Boost, Asset CleanUp or Fast Velocity Minify already minifies your stylesheets or scripts, this plugin does not try its own fix: it names the plugin and the exact setting, and links to that plugin's settings. This plugin only reads their settings and never changes them. For WP Rocket, Perfmatters, FlyingPress, NitroPack and Hummingbird, whose settings it cannot read, it reminds you to keep only one of the two. 98 99 The same goes for loading scripts with defer: while Autoptimize, LiteSpeed Cache, WP Fastest Cache, Speed Optimizer, WP-Optimize or Jetpack Boost already defers your scripts, this plugin's defer fix cannot be tried. 100 101 When a fix has nothing to do on your site, for example because your theme does not load that file in the first place, this plugin says "Nothing to gain" and leaves it off. 102 103 = Which themes and page caches is it tested with? = 104 105 Themes: Astra, Kadence, GeneratePress, OceanWP, Twenty Twenty-Five, Hello Elementor with Elementor, Storefront. 106 107 Page caches, switching a fix on and off with the cache running: Cache Enabler, WP Super Cache, WP-Optimize, W3 Total Cache, Breeze, WP Fastest Cache. 108 109 This plugin also asks WP Rocket, LiteSpeed Cache, Speed Optimizer, Hummingbird and Autoptimize to clear their cache, but we have not yet tested those ourselves. Other caches can listen to the `speed_doctor_clear_cache` action. 113 110 114 111 = Will it raise my PageSpeed Insights score? = … … 191 188 192 189 == Changelog == 190 191 = 1.6.1 = 192 * A layout shift now names a late element that has no id or class by its text (or its picture), and moved text by its words. Elements that are in the page from the start are no longer named as added late. 193 * The check no longer says the server sends files without compression, or that browsers are not told to keep them, when it could not read the answer as a visitor: a site behind a password (a staging copy), a maintenance page or a security challenge. 193 194 194 195 = 1.6.0 =
Note:
See TracChangeset
for help on using the changeset viewer.