WordPress Optimizations : CloudFlare + W3 Total Cache + GTmetrix

6

Hello Friends, Here is the most famous question across bloggers about WordPress Optimizations. Here we will do it with one plugin named “W3 Total Cache” which is already famous among bloggers and CloudFlare which is known for its optimisation and security and at last we will minify some unoptimised files manually. Here with the combination of these three tools we are going for WordPress Optimiztions.

Read : Best Tips To Boost Alexa Rank

Steps for WordPress Optimizations

For Best Optimisations Result I will recommend you all to use cloudflare along with W3 Total Cache with the settings that are specified below :-

  • Step 1 : Moving your DNS and Name Servers to Cloudflare

So friends this is the easiest and interesting step in this process. You can read the whole process for this here Boost blog speed.

  • Step 2 : Installing and Configuring W3 Total Cache

WordPress Optimizations

First you have to install W3 Total Cache from WordPress Repository. Now after this the mostly preferred settings are illustrated with its state i.e. Enabled or Disabled.

  • Go to General Settings from Performance tab in WordPress admin panel.

  1. Toggle all caching types on or off :- Disabled.
  2. Page Cache :- Enabled.
  3. Page Cache Method :- Choose according to your hosting specification. (Default :- Disk Enhanced)
  4. Minify :- Disabled. (Due to disabling no further setting change in sub-items of minify)
  5. Database Cache :- Enabled.
  6. Database Cache Method :-  Choose according to your hosting specification. (Default :- Disk)
  7. Object Cache :- Disabled.
  8. Browser Cache :- Enabled.
  9. CDN :- Enable if you use any external CDN Service.(Default :- Disabled)
  10. Enable Varnish Cache Purging :- Disabled.
  11. CloudFlare :- Enabled. Enter Email Address that is registered with CloudFlare, Enter API Key and Domain without www.
  12. Security Level :- Medium.
  13. Rocket Loader :- Automatic. (Load All JavaScript Resources Async. i.e. Large Performance Boost )
  14. Minification :- HTML Only.(Safe)
  15. Development Mode :- Off.
  16. New Relic :- Enable if use New Relic.(Default :- Disabled)
  17. Miscellaneous : Verify rewrite rules :- Enabled.
  • Go to Page Cache from Performance tab in WordPress admin panel.

  1. Cache front page :- Enabled.
  2. Cache feeds: site, categories, tags, comments :- Enabled.
  3. Cache SSL (https) requests :- Disabled.
  4. Cache URIs with query string variables :- Disabled.
  5. Cache 404 (not found) pages :- Disabled.
  6. Cache requests only for www.*.com site address :- Enabled.
  7. Don’t cache pages for logged in users :- Enabled.
  8. Automatically prime the page cache :- Enabled.
  9. Update Interval :- 900 Seconds.
  10. Pages per interval :- As your server limit.(Default :- 15)
  11. Pre-load the post cache upon publish events :- Enabled.
  12. Leave other settings to default.
  • Go to Database Cache from Performance tab in WordPress admin panel.

  1.  :- Enabled.
  2. Maximum lifetime of cache objects :- 180000000 seconds.
  3. Garbage collection interval :- 360000000 seconds.
  4. Leave other settings to default.
  • Go to Browser Cache from Performance tab in WordPress admin panel.

Read : How to Leverage Browser Caching in WordPress

General

  1.  :- Enabled.
  2.  :- Disabled.
  3.  :- Enabled.
  4.  :- Enabled.
  5.  :- Disabled.
  6.  :- Disabled.
  7.  :- Disabled.

CSS & JS

Read : How To Combine Images Using CSS Sprites To Boost Blog Speed

  1.  :- Enabled.
  2.  :- Enabled.
  3. Expires header lifetime :- 31536000 seconds.
  4.  :- Enabled.
  5. Cache Control policy :- Cache with max age.
  6.  :- Disabled.
  7.  :- Enabled.
  8. Enable HTTP (gzip) compression :- Enabled.
  9.  :- Disabled.
  10.  :- Enabled.

HTML & XML

  1.  :- Enabled.
  2.  :- Enabled.
  3. Expires header lifetime :- 3600 seconds.
  4.  :- Enabled.
  5. Cache Control policy :- Cache with max age.
  6.  :- Disabled.
  7.  :- Enabled.
  8.  :- Enabled.

Media & Other Files

  1.  :- Enabled.
  2.  :- Enabled.
  3. Expires header lifetime :- 31536000 seconds.
  4.  :- Enabled.
  5. Cache Control policy :- Cache with max age.
  6.  :- Disabled.
  7.  :- Enabled.
  8. Enable HTTP (gzip) compression :- Enabled.
  9.  :- Disabled.
  10.  :- Disabled.
  • Step 3 :- Identifying and Minifying JavaScript Manually

In this step we will manually minify the JavaScript which is not automatically optimised by W3 Total Cache And CloudFlare. You can also minify CSS using same steps as Below but many times it can also break your theme so do it at your own risk.

Read : Defer Parsing of JavaScript in WordPress

  1. Go to GTmetrix.
  2. Analyze your blog.
  3. In Pagespeed find Minify Javascript.
  4. Expand it. Now you have to see the location of that JavaScript file on your blog.
  5. Click Optimised version to see the Optimised JavaScript File.
  6. Go to the file manager to the location of JavaScript file. Click edit/code edit.
  7. Replace all the content with GTmetrix Optimised content.
  8. Click Save.
  9. Repeat this process for all other local JavaScript Files.
  • Step 4 :- Comparison Between Before and After Optimisations

WordPress Optimizations
Pingdom Report Before Optimisations
WordPress Optimizations
Pingdom Report After Optimisations
WordPress Optimizations
GTmetrix Report Before Optimisations
WordPress Optimizations
GTmetrix Report After Optimisations

Thank you for reading this post and keep connected to Tech Arrival to continue enjoying wonderful posts. Share your views about this post in comment section below. If you are still having any query throw it in comment section.

If you find this post helpful, don’t hesitate to share this post on your social network. It will only take a moment and also it is quite easy and helpful for others.

6 COMMENTS

  1. Many of the settings depend very much on server configuration. Though this is a way to go. Probably only Cloud flare can be a week point, sometimes Cloud flare instances would slow down loading instead of speeding it up.

    • You are right but this happens in very few case, but it is still a good option. You can also check out page speed of Tech Arrival.

Speak Your Mind