Title: Insights from Google PageSpeed
Author: Matt Keys
Published: <strong>October 1, 2013</strong>
Last modified: July 7, 2024

---

Search plugins

![](https://ps.w.org/google-pagespeed-insights/assets/banner-772x250.jpg?rev=780690)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/google-pagespeed-insights/assets/icon-256x256.png?rev=1692787)

# Insights from Google PageSpeed

 By [Matt Keys](https://profiles.wordpress.org/mattkeys/)

[Download](https://downloads.wordpress.org/plugin/google-pagespeed-insights.4.0.8.zip)

 * [Details](https://twd.wordpress.org/plugins/google-pagespeed-insights/#description)
 * [Reviews](https://twd.wordpress.org/plugins/google-pagespeed-insights/#reviews)
 *  [Installation](https://twd.wordpress.org/plugins/google-pagespeed-insights/#installation)
 * [Development](https://twd.wordpress.org/plugins/google-pagespeed-insights/#developers)

 [Support](https://wordpress.org/support/plugin/google-pagespeed-insights/)

## Description

Google Pagespeed Insights is a tool that empowers you to make decisions that increase
the performance of your website. Recommendations from Google Pagespeed are based
upon current industry best practices for desktop and mobile web performance.

Through the addition of advanced data visualization, tagging, filtering, and snapshot
technology, Insights from Google PageSpeed provides a comprehensive solution for
any webmaster looking to increase their site performance, their search engine ranking,
and their visitors browsing experience.

#### Detailed Page Reporting

Sort your page reports by their Page Speed Score to prioritize the largest areas
of opportunity on your site. Page reports utilize easy to read visualizations that
allow you to quickly focus in on the most important data to improve your sites performance.

#### Report Summaries

Report Summaries are a powerful and exclusive feature of Insights from Google PageSpeed.
Summaries display your average Page Score, largest areas for improvement across 
ALL reports, as well as best and lowest performing pages. Report summaries can be
filtered to narrow results by: Pages, Posts, Categories, Custom URLs, and Custom
Post Types.

Using Report Summaries allows you to ‘zoom out’ from the page-level and better understand
the big picture of your sites performance.

#### Desktop and Mobile Page Reports

Best practices for site performance differ greatly between Desktop and Mobile device
usage. Configure Insights from Google PageSpeed to generate Desktop reports, Mobile
reports, or both!

Toggle back and forth between report types to see specific suggestions for improving
the performance and experience on each platform.

#### Report Snapshots

The Report Snapshot tool builds on the power of Report Summaries, to provide historical“
Point In Time” data about your website.

Take a snapshot of any Report Summary screen to store that data for future retrieval.
Add comments to your snapshots to provide additional meaning, such as “Before Installing
W3 Total Cache.” Additionally, filter a Report Summary before taking a Snapshot 
to save a summary of the filtered data.

#### Snapshot Comparison Tool

The Snapshot Comparison Tool is an amazing utility that lets you visualize side-
by-side results from any two similar Report Snapshots.

Take a Report Snapshot before installing new plugins, or before implementing performance
recommendations. Take another snapshot when you are finished and compare your results
to measure the effect of your changes.

#### Add/Import Custom URLs

Easily add additional URLs for inclusion in Pagespeed Reports. Even add URLs for
non-WordPress sites, even if they are not hosted on your server. URLs can be added
manually, or upload a properly formatted XML sitemap to add multiple pages at once.

Custom URLs can be tagged and filtered in Report Summaries. Take Report Snapshots
of your Custom URLs just like you would with any other report type.

#### Scheduled Report Checks

Configure Insights from Google PageSpeed to automatically recheck your site on a
Daily, Weekly, Bi-Monthly, or Monthly basis.

With each scan, any new pages or posts will be discovered, and existing reports 
will be updated to reflect any changes to your site, as well as any changes in the
Pagespeed recommendations.

#### Additional Languages

 * (v1.x translation) Russian Translation provided by: Ivanka from [coupofy.com](http://coupofy.com)
 * (v1.x translation) Spanish Translation provided by: Ogi Djuraskovic from [firstsiteguide.com](http://firstsiteguide.com)
 * (v1.x translation) Serbian Translation provided by: Ogi Djuraskovic from [firstsiteguide.com](http://firstsiteguide.com)

### Troubleshooting

**Please find the below list of potential issues that you may encounter, and the
recommended next steps.**

#### I entered my API Key and saved the Options, but no Reports are showing up in the Report List.

 * Google Pagespeed needs to be able to load each page to create its report. Make
   sure that your pages are publicly accessible over the internet.
 * Ensure that your API key is entered correctly, and that you have enabled the “
   PageSpeed Insights API” from the Google API Console.
 * In the Options page, under “Advanced Configuration” there is a checkbox called“
   Log API Exceptions”. Any API exception that is not caught and handled automatically
   will be stored for up to 7 days. This log information can be very helpful when
   diagnosing issues.

#### Page report checks never finish all of the way, I have to press “Start Reporting” again and again to get it to finish checking all of my pages.

 * If the reports seem to always run for a certain length of time before stopping
   unexpectedly, you may be exceeding your servers Max Execution time. Try increasing
   the value in Options->Advanced Configuration “Maximum Execution Time”.
 * Some web hosting providers do not allow the Maximum Execution Time to be overridden
   or increased. In that case you can try setting the Maximum Script Run Time. This
   will make the script run for the set period of time, then stop and spawn a new
   script, to get around timeout issues. Start with a low value, and test. Increase
   the value one step at a time until you find the largest value that allows your
   scans to finish successfully.

#### An error was reported while trying to check one of my pages, and it has been added to the Ignored Pages section.

 * Navigate to the Ignored Pages tab, find the page, and click “reactivate” to try
   it again.
 * If the page fails again, ensure that the page is publicly accessible from the
   internet. Non-public pages cannot be checked.
 * In some rare cases, pages are not able to be scanned by the Pagespeed API. Try
   checking your page manually here: https://developers.google.com/speed/pagespeed/
   insights/. If the page fails to be checked, report the issue to Google so that
   they can diagnose further.

#### I received a Javascript or PHP error.

 * If the error appeared while Google Pagespeed was checking pages, you may have
   loaded the page while it was storing data. Refresh the page in a couple seconds
   to see if the issue has gone away.
 * If issues persist please report the problem with as much information as you can
   gather, including: What page you were on, the exact text of the error, or a screenshot
   of the error.
 * In the Options page, under “Advanced Configuration” there is a checkbox called“
   Log API Exceptions”. Any API exception that is not caught and handled automatically
   will be logged for up to 7 days. This log information can be very helpful when
   diagnosing issues

#### My Page Scores seem really low. When I click “Recheck Results” when viewing Report Details, the score jumps up dramatically.

 * Your server may have been responding slowly when the first report was generated.
   A slow server response time can have a large impact on your Page Speed Score.
   If these problems happen frequently you may want to talk with your hosting provider
   about the problem, or look into alternative hosting providers.

#### I want to clear out all of the current page reports and start over.

 1. Navigate to the “Options” tab
 2. Expand the “Advanced Configuration” section.
 3. Find the “Delete Data” Dropdown
 4. Select “Delete Reports Only” to remove all Page Reports
 5. Or Select “Delete EVERYTHING” to remove all Page Reports, Custom URLs, Snapshots,
    and Ignored Pages

## Screenshots

 * [[
 * Filter reports by Pages, Posts, Category Indexes, or Custom Post Types. Sort 
   Report Lists by Page Score to see your highest and lowest performing pages.
 * [[
 * Separate reports for Desktop and Mobile page reports. Check each report to receive
   platform specific recommendations to increase your sites performance.
 * [[
 * Configure Google Report Language, Report Types, and choose which WordPress URLs
   to run reports on.
 * [[
 * View in-depth report details for recommendations on increasing your sites performance.

## Installation

 1. Login to your WordPress Admin page (usually http://yourdomain.com/wp-admin)
 2. Navigate to the Plugins screen and then click the “Add New” button
 3. Click on the “Upload” link near the top of the page and browse for the Insights
    from Google PageSpeed zip file
 4. Upload the file, and click “Activate Plugin” after the installation completes
 5. Congratulations, installation is complete; proceed to configuration.

#### Configuration

An extended version of the folliowing instructions as well as other documentation
are included in the “documentation” folder of this plugin.

Google Pagespeed Insights requires a Google API Key. Keys are free and can be obtained
from Google. In order to get a key, you will need a Google account such as a GMail
account. If you do not already have a Google account you can create one here: https://
accounts.google.com/SignUp.

 1. Navigate to https://console.developers.google.com/
 2. Login with your Google Account (Create a Google account if you do not have one)
 3. Create a new API Key and enable the Google Pagespeed Insights API* (see note about
    restrictions)
 4. Paste your API Key into the Options page of Insights from Google PageSpeed

 * Try first creating the API key without any ‘restrictions’. In my testing there
   seems to be a bug with using restricitons with the Pagespeed API.

#### Requirements

 * Google API Key [https://console.developers.google.com/](https://code.google.com/apis/console/)
 * WordPress 3.6 or Newer

## Reviews

![](https://secure.gravatar.com/avatar/13cdb239fc886609beef2257f301ae60d1e392639e2b783ca6d60afc254ce03b?
s=60&d=retro&r=g)

### 󠀁[Good Tools](https://wordpress.org/support/topic/good-tools-9/)󠁿

 [Nabil Sikder](https://profiles.wordpress.org/mdnabilsikder/) July 8, 2021

Thanks for creating excellent plugin. looking forward to see more improvements of
this plugin

![](https://secure.gravatar.com/avatar/4f59b149ed575589ef3f8b86fc98b5e8188cbca4ef92476b05b0fa7f41183c6b?
s=60&d=retro&r=g)

### 󠀁[Does What It Is Supposed To!](https://wordpress.org/support/topic/does-what-it-is-supposed-to-17/)󠁿

 [Ben](https://profiles.wordpress.org/browninaz/) December 2, 2020

Thanks Matt, your awesome!

![](https://secure.gravatar.com/avatar/95e10ea5cb9f39948a951c6e7d170d01b4258392eff6d9a6c3e735d1aa1d6b27?
s=60&d=retro&r=g)

### 󠀁[Awesome and VERY useful](https://wordpress.org/support/topic/awesome-and-very-useful-3/)󠁿

 [dirkliesenfeld](https://profiles.wordpress.org/dirkliesenfeld/) November 21, 2020
1 reply

Been using it now for years and it is one of the most useful plugins for SEO EVER.

![](https://secure.gravatar.com/avatar/fa8b088217a57182228a0b65a14060146c634786752fced8f415e2579cce2e09?
s=60&d=retro&r=g)

### 󠀁[Fantastic plugin](https://wordpress.org/support/topic/fantastic-plugin-1460/)󠁿

 [dilusionz](https://profiles.wordpress.org/dilusionz/) November 5, 2020

Extremely useful and easy to use. This plugin is perfect for an overview of your
Lighthouse scores throughout your website, and getting actionable tasks on where
to improve. With the upcoming google algorithm changes in 2021 to place weighting
on these scores – I’d put money on this plugin becoming far more popular in the 
near future.

![](https://secure.gravatar.com/avatar/b9262ab2014b8af0b3c9cef6794d0fb826071ae435c12a2e61b9c09f734590d0?
s=60&d=retro&r=g)

### 󠀁[useless](https://wordpress.org/support/topic/useless-175/)󠁿

 [xrdm](https://profiles.wordpress.org/xrdm/) June 13, 2018 1 reply

useless

![](https://secure.gravatar.com/avatar/d04936cea2c81e1607346ef887a2ab10439aeae0ba36e3be9d6bae1bb4f4bd7a?
s=60&d=retro&r=g)

### 󠀁[This guy cares](https://wordpress.org/support/topic/this-guy-cares/)󠁿

 [bhagawadkrishna](https://profiles.wordpress.org/bhagawadkrishna/) January 1, 2018

I’d not expected such quick replies. They came. I’d not expected such pointed hand-
holding. It was provided. I trust this plugin, therefore.

 [ Read all 28 reviews ](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/)

## Contributors & Developers

“Insights from Google PageSpeed” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Matt Keys ](https://profiles.wordpress.org/mattkeys/)

“Insights from Google PageSpeed” has been translated into 1 locale. Thank you to
[the translators](https://translate.wordpress.org/projects/wp-plugins/google-pagespeed-insights/contributors)
for their contributions.

[Translate “Insights from Google PageSpeed” into your language.](https://translate.wordpress.org/projects/wp-plugins/google-pagespeed-insights)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/google-pagespeed-insights/),
check out the [SVN repository](https://plugins.svn.wordpress.org/google-pagespeed-insights/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/google-pagespeed-insights/)
by [RSS](https://plugins.trac.wordpress.org/log/google-pagespeed-insights/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4.0.8

 * Fix PHP 8 warnings

#### 4.0.7

 * Add support for XML sitemaps of type text/xml
 * Bugfix some error messages not appearing when they should
 * Add additional nonce checks for Cross-Site Request Forgery (CSRF) protection

#### 4.0.6

 * Additional validating, sanitizing, and escaping the plugin codebase

#### 4.0.5

 * Bugfix some validation rule reports not showing properly (some results may need
   to be rechecked to see the fixes)
 * Better styling for readability in report details
 * Additional validating, sanitizing, and escaping the plugin codebase

#### 4.0.4

 * Bugfix improperly escaped data (xss security issue)
 * Rename plugin to “Insights from Google PageSpeed”

#### 4.0.3

 * Bugfix loading screenshots ‘filmstrip’ images broken

#### 4.0.2

 * Bugfix google has introduced a couple new report types that were not handled 
   by JS templating in this plugin. Added support for the new type and also tried
   to more gracefully handle this issue if/when this happens again in the future.

#### 4.0.1

 * Bugfix removed reference to ‘legend’ template file that was deleted in v4.0.0
   and was causing PHP warnings

#### 4.0.0

 * NOTICE: This upgrade will remove any existing reports or snapshots created by
   older versions of this plugin as they are not compatible with the newest version
   of the pagespeed API (v5)
 * Migrating to the latest version of the Google Pagespeed Insights API (v5). This
   comes with pretty big changes to reporting and is incompatible with reports generated
   from previous versions of the API (and this plugin)
 * Replaced the Google API PHP library previously used by this plugin in favor of
   a much smaller and simpler class
 * Bugfix SQL Mutex lock key not unique per installation causing issues when trying
   to run this plugin on multiple sites sharing the same SQL server

#### 3.0.5

 * Fixed PHP warning when saving settings

#### 3.0.4

 * Fixed bug where WordPress heartbeat API filter function failed to return properly
 * Added additional options for max runtime to support scenarios where even 60 seconds
   was over the server max run time

#### 3.0.3

 * Fixed bug where Maximum Script Run Time option could not be set to “No Limit”
   after previously being set to a higher value

#### 3.0.2

 * Fixed bug introduced in v3.0.1 effecting servers running PHP 5.4 where a PHP 
   error is produced while trying to perform actions in the plugin like saving options

#### 3.0.1

 * Added snapshot comments to the view snapshot / compare snapshot templates
 * Fixed bug with snapshot report type label reading ‘both’ when it should read 
   either desktop or mobile
 * Fixed bug with snapshot report description label not loading translatable string
 * Fixed bug preventing snapshot comments from being displayed in snapshots list
   table
 * Improved hardening against authenticated XSS attacks
 * Improved adherence to WordPress coding standards and best practices

#### 3.0.0

 * Includes all previously “premium” functionality for free. This includes report
   snapshots, snapshot comparison tool, custom URL reporting, and scheduled report
   checks.
 * Added in URL hotlinking in report details for paths to assets (images/scripts/
   etc)

#### 2.0.3

 * Updating to latest google api php library 2.2.0 to resolve issues with PHP 7.1

#### 2.0.2

 * Fixed bug which improperly returned WP Cron schedules on cron_schedules filter

#### 2.0.1

 * Removed phpseclib unit tests from Google PHP API library to avoid false-positive
   with WordFence

#### 2.0.0

 * Major rewrite for better compatibility and performance
 * Updated to the latest Google Pagespeed Insights API verison and library
 * Fixed issues with bulk installers not generating DB tables
 * Consolidated scan methods to a single more reliable method inspired by WP cron
 * Better identify, communicate, and resolve issues with environments that have 
   difficulties with scanning pages or API errors
 * Improved API error logging
 * Added ‘abort scan’ functionality to cancel an in-progress scan
 * Added ‘Maximum Script Run Time’ option to advanced configuration to allow scans
   to run in shorter intervals for web hosts which have script timeouts that cannot
   be overridden
 * Update the codebase to adhere better to WordPress coding standards and best practices

#### 1.0.6

 * Fixed error with WP_List_Table introduced with WordPress 4.3
 * Added Russian translation. Thank you Ivanka from [coupofy.com](http://coupofy.com)

#### 1.0.5

 * Fixed problem with temp directory used by Google API which was not writable on
   many shared hosting environments, and prevented the plugin from working properly.
   Replaced sys_get_temp_dir function with WordPress get_temp_dir function to resolve.
 * Added Spanish and Serbian translations. Thank you Ogi Djuraskovic from [firstsiteguide.com](http://firstsiteguide.com)
   for providing these.

#### 1.0.4

 * Added auto-update capability

#### 1.0.3

 * Tweaked interactions with WPDB so that it will properly get the table prefix 
   for WordPress multisite installations.

#### 1.0.2

 * Tweaked styles to look better in the new WordPress 3.8 admin theme.
 * Fixed accidental use of some php shorttags (<? instead of <?php) that was causing
   activation errors for some. (Thank you bekar09 for first finding this error)
 * Tweaked ajax.js for better performance (Thanks to Pippin for the suggestion)
 * Tweaked use of get_pages() for better performance (Thanks to Pippin for the suggestion)
 * Fixed a number of php notices

#### 1.0.1

 * Fixed a potential conflict with other plugins that also utilize the Google API
   PHP library. The API is now only included if the Google_Client class does not
   already exist.
 * Added additional checking during plugin activation to fail fast if the server
   does not meet the minimum plugin requirements.

#### 1.0.0

 * Initial Release

## Meta

 *  Version **4.0.8**
 *  Last updated **2 years ago**
 *  Active installations **20,000+**
 *  WordPress version ** 3.6 or higher **
 *  Tested up to **6.5.8**
 *  Languages
 * [English (US)](https://wordpress.org/plugins/google-pagespeed-insights/) and 
   [Spanish (Spain)](https://es.wordpress.org/plugins/google-pagespeed-insights/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/google-pagespeed-insights)
 * Tags
 * [Page Speed](https://twd.wordpress.org/plugins/tags/page-speed/)[pagespeed](https://twd.wordpress.org/plugins/tags/pagespeed/)
   [pagespeed insights](https://twd.wordpress.org/plugins/tags/pagespeed-insights/)
   [performance](https://twd.wordpress.org/plugins/tags/performance/)[seo](https://twd.wordpress.org/plugins/tags/seo/)
 *  [Advanced View](https://twd.wordpress.org/plugins/google-pagespeed-insights/advanced/)

## Ratings

 4.8 out of 5 stars.

 *  [  24 5-star reviews     ](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/)

## Contributors

 *   [ Matt Keys ](https://profiles.wordpress.org/mattkeys/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/google-pagespeed-insights/)