The Need For Speed (Part 1)

aka Sometimes your site isn’t fast enough.

Google hates slow sites. So do mobile users. If your site isn’t fast enough, visitors will visit someone else’s site.

Speed Of Light

So after doing some research I discover a few things about my site.

1) It was slow

2) My pictures are too big

3) My provider might be slow

So I went to work figuring out what I could do to speed up my WordPress site.

Compress Me

One of the first things I learned was I needed to enable compression. This was not something I could do inside of WordPress but instead inside of cPanel on my hosting providers control panel. The back-end web server your hosting provider is using is probably Apache or Nginx. Inside Cpanel, there should be a place that says “Optimize Website” go there and turn on compression. Basically your web browser supports compressed web pages. The web server can send the pages to you compressed and your browser will decompress them on the fly. Smaller files, faster content delivery.
Optimize Website


WARNING: Before trying any of this, please backup your site. Click here for tutorials on how to backup your site.

Sometimes Shrinkage Can be a Good Thing

I needed to do something about my pictures. The perfectionist side of me wants to display pictures in amazing detail and high pixel rates but if you are just looking at the pictures on a mobile phone, you won’t be able to see how beautiful they are fully rendered so I can afford to reduce the number of pixels in order to speed up my site. Most of the time we seem to post the largest pictures in the world into our page. Sure everyone has fast Internet (or actually they don’t.) According to a Pew Study in August 2013, only 70% of America has access to broadband Internet. So assume someone is still looking at your site using a 56k modem with your site.

Two plugins I have used are “WP Smush It” which uses Yahoo’s image shrinker but doesn’t work with images over 2 Meg and “EWWW Image Optimizer” Both are free and work great. Under the Media menu after you install “EWWW Image Optimizer” you will see “Bulk Optimize” and “Unoptimized Images” “Bulk Optimize” will optimize any un-optimized images.


Two options you will have to fight your perfectionism over are lossy images. These settings are found under Settings, EWWW Image Optimizer, Basic Settings. Will the reduction be such that people notice or will you speed up your site by making your images smaller.


Next I looked for Caching plugins for WordPress.

If I just had Enough Cache

Caching works two ways depending on the caching methodology. Caching is loading your web pages into the memory of the web server rather than reading the files from the hard drive your server is hosted on. Memory will almost always be faster than hard drives. Memory works in nanoseconds while hard drives work in milliseconds. Next some caching plugins optimize your site by turning your dynamic PHP pages into static HTML. Since WordPress runs with PHP as its primary programming language, PHP code is interpreted as opposed to compiled and executed. When you visit pages on your WordPress site they are dynamically interpreted and sent by the web server to your browser.  By rendering the pages into HTML and storing it in memory, the PHP engine that interprets the page doesn’t have to do much if any work. This makes pages load faster, this and your cPanel selection that says compress HTML means your site appears even faster to your visitors.

Plugins I am using:

Autoptimize – speeds up your site by minifying your CSS (Cascading Style Sheets) and JavaScript. Minifying is the process of basically removing the white space in CSS and JavaScript by concatenating and compressing your scripts.It works in tandem with other caching plugins. “Optimize HTML Code” and “Optimize CSS Code” will be on by default but you may want to consider and test other options.



WP Widget Cache – “Cache the output of your blog widgets. Usually it will significantly reduce the SQL queries to your database and speed up your site.” according to their info on Basically it pre-fetches and then caches things that require database queries in your Widgets so they don’t have to query the database every time someone visits a page.



And finally the last piece of my Cache scheme is a plugin called WordFence Security. Now you may know WordFence as a WordPress firewall (that could take an entire article all by itself) but did you know WordFence also has caching capability? Well, now you do. WordFence uses their Falcon Engine for caching.



WordFence is of course not the only Caching game in town.

WP Total Cache – is a very good caching plugin. It does things many of the individual plugins mention above do. Unfortunately working with plugins can be a trial and error process. So one week this plugin worked better than others, the next week it didn’t do as well. Why? It has to do with content, the mix of plugins your site has, and your hosting provider. If your provider doesn’t have some of the libraries needed by the plugin, it can’t do its best. So it is important you are aware of what is required.

Quick Cache Lite Edition – This plugin requires a higher version of PHP than my current provider offers (They are working on it) so I couldn’t fully test it. It has good reviews but it is a lite version so to get all the bells and whistles you have to buy their paid version. As I have already paid for the pro version of WordFence, I use it instead and it works with my current version of PHP.

Read my post (“The Need For Speed (Part 2)“) about testing site speed for more information.

Christian | Father | Tech Evangelist | Author | Public Speaker | Future TEDx speaker |WordPress Aficionado * I am the author of "WordPress: Setup to Website". I love all things tech and gadgets and I probably have an opinion about it which some people seek out. Follow @aroyrichardson