SEO Cheat Sheet #2: Page Speed & Image Optimization
Tags: webdev, webperf, wordpress, php
Published: 2020-01-22 21:28:32

**TL;DR**: Nobody likes being kept waiting, and that includes search engines. In this article we cover upsides and downsides of the Google PageSpeed Module and the W3 Total Cache Pro plugin (for WordPress-based websites) along with a brief explanation of some basic performance tests that were conducted using the WebPagetest.org website.

In the article entitled "[On Page SEO Checklist 2018 : A Comprehensive Guide on ‘How To Make Your Website SEO Friendly’](https://www.w3era.com/page-seo-checklist-2018-comprehensive-guide-make-website-seo-friendly.htm)" two of the nine numbered items pertain to making your website as fast as possible. Put in simple terms: neither people nor search engine bots like to wait around for your server to respond to a request. People won't wait and you'll end up with a high bounce rate and that means no visitors for you :-( ; search engines may assume your site has heavy traffic and adjust accordingly -- this may or may not make much difference if your site is small enough but even if Google, Bing, and any other search engine of interest can crawl your website, if it's slow enough it will frustrate visitors and they'll eventually spend their valuable time elsewhere.

There are a multitude of [content management systems](https://en.wikipedia.org/wiki/Content_management_system) (CMS) available however the focus for this series of articles is on WordPress, [which powers around ~ 27% of the Internet](https://www.whoishostingthis.com/compare/wordpress/stats/).

There are several factors which can slow down a website and we're going to assume here that the connection between the server and the Internet is fast enough and that the server itself doesn't have any issues. We are then left to focus on WordPress and either the NGINX or Apache web servers (others won't be covered). In WordPress the plugins, JavaScript, CSS, and images are going to impact the load time for a page; embedding videos can as well.

There isn't much that can be done with the plugins aside from simply making sure we only use what's required and that what is in use are high quality plugins-- if a plugin results in a slow website, so much so that this appears on the performance radar, then it likely needs to be removed or the performance issue needs to be resolved, possibly by modifying the code directly and that may not be possible if the plugin is proprietary or desired.

The following two tools used in tandem should improve WordPress performance considerably in most cases.

# [Google PageSpeed Module](https://developers.google.com/speed/pagespeed/module/) (Apache, NGINX)

## Upsides

* Can be used to optimize existing images on-the-fly and [supports the webp image format](https://developers.google.com/speed/webp/). This is a significant selling point for websites which have many existing images.
* Open-source software [which can be found on GitHub](https://github.com/pagespeed).
* Written by Google specifically for the purposes of speeding up websites.
* Works with both Apache and NGINX.
* Can be used to optimize CSS, JavaScript, etc.

## Downsides

* Requires direct access to the server or VM.
* Not exactly easy or straightforward to set up.
* Requires repeat testing (see [WebPagetest.org](http://webpagetest.org/), for example) to ensure settings are having the desired effect.

# [W3 Total Cache Pro](https://www.w3-edge.com/solutions/w3-total-cache-pro/) plugin for WordPress

## Upsides

* Powerful caching with a long list of options.
* [Start with the free plugin](https://wordpress.org/plugins/w3-total-cache/) and later graduate to the pro version when appropriate.
* Can be used to optimize CSS, JavaScript, etc.
* Works with various [content delivery networks](https://en.wikipedia.org/wiki/Content_delivery_network) (CDNs).
* Includes options such as [security header settings](https://searchengineland.com/why-websites-should-be-using-hsts-to-improve-security-and-seo-304380) which can be tested on [securityheaders.com](https://securityheaders.com/).

## Downsides

* [Requires a license](https://www.w3-edge.com/solutions/w3-total-cache-pro/).
* Not exactly easy or straightforward to set up.
* Requires repeat testing (see [WebPagetest.org](http://webpagetest.org/), for example) to ensure settings are having the desired effect.

## Testing

In this section we briefly demonstrate using [WebPagetest.org](http://webpagetest.org/) to test changes made to a WordPress website which is using both W3 Total Cache and Google PageSpeed.

The image below (SEO_CS_2_WPT_1.png) includes pointers to two concerns: the grade at the top right, in green, indicates some important performance considerations which, in this example, are enabled and working well. The blue arrow points to the page load time, which should be lower once performance improvements have been made.

![Web Page Performance Test For](https://media-exp1.licdn.com/dms/image/C4E12AQFnnTAR4erScw/article-inline_image-shrink_1500_2232/0?e=1585180800&v=beta&t=TdZjQXhr3JI-vAyo3vPkB_vY97QkKZEkwoThe5soJ-0 "Web Page Performance Test For")

In the image below (SEO_CS_2_WPT_2) we can see that images are being returned in webp format and that the images are being served via the CDN.

![Waterfall View](https://media-exp1.licdn.com/dms/image/C4E12AQEtdGTPdmuvGw/article-inline_image-shrink_1500_2232/0?e=1585180800&v=beta&t=ioRhW3otL0iV3blLCUW23FO2g7-JOY0YMyar3Z8o8r0 "Waterfall View")

See also: [Assess Your Website Performance in under Ten Minutes](https://www.linkedin.com/pulse/assess-your-website-performance-under-ten-minutes-thomas-fuller/?lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BzTuIX7K0TMSwb6CBMjqCtA%3D%3D)

# Conclusion

There are a multitude of methods available for improving site performance *so if you have other options and feel like sharing, please add them to the comments below and we can discuss them; include your performance metrics too*.

Finally, Amazon Web Services has a number of options for deploying a WordPress website which I'd like to try eventually -- if you've been down this path already, add a comment explaining what you used and what the performance metrics look like.

# See Also

1.) [Google explains what “crawl budget” means for webmasters](https://searchengineland.com/google-explains-crawl-budget-means-webmasters-267597)
2.) [Website Performance and the Crawl Budget](https://www.elephate.com/blog/website-performance-crawl-budget/)
3.) [Learn How To Speed Up WordPress Site Like A Pro](https://bloggyaani.com/speed-up-wordpress-site/) [COMPLETE GUIDE][2019 Edition]
4.) [Crawl budget explained](https://www.contentkingapp.com/academy/crawl-budget/)
5.) [SEMRush Audit your site!](https://www.semrush.com/lp/site-audit-2/)
6.) [WPMU DEV WP-Checkup](https://premium.wpmudev.org/wp-checkup/)
7.) [Average Page Load Times for 2018 – How does yours compare?](https://www.machmetrics.com/speed-blog/average-page-load-times-websites-2018/)
8.) [Image SEO](https://imageseo.io/) -- Search Engine Optimization Tool for and through images