Optimising WordPress

Posted by July 9, 2014 No Comments

Ten top tips to optimising WordPress.

1. Use a Content Delivery Network

See: CloudFlare

2. Enable Gzip on your server

Tool to test if your WordPress server is Gzip enabled: checkgzipcompression.com

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png

3. Identify slow plugins

Plugin Performance Profiler

4. Compress images

WP Smush.it

5. Expiry date & caching

Google’s PageSpeed Insights reveal some interesting facts how WordPress performance can be improved, one of which is to use Compress (see #2) and to set the expiry date of static files.

# associate .js with “text/javascript” type (if not present in mime.conf)
AddType text/javascript .js
# configure mod_expires
# URL: http://httpd.apache.org/docs/2.2/mod/mod_expires.html
ExpiresActive On
ExpiresDefault “access plus 1 seconds”
ExpiresByType image/x-icon “access plus 2692000 seconds”
ExpiresByType image/jpeg “access plus 2692000 seconds”
ExpiresByType image/png “access plus 2692000 seconds”
ExpiresByType image/gif “access plus 2692000 seconds”
ExpiresByType application/x-shockwave-flash “access plus 2692000 seconds”
ExpiresByType text/css “access plus 2692000 seconds”
ExpiresByType text/javascript “access plus 2692000 seconds”
ExpiresByType application/x-javascript “access plus 2692000 seconds”
ExpiresByType text/html “access plus 600 seconds”
ExpiresByType application/xhtml+xml “access plus 600 seconds”
# configure mod_headers
# URL: http://httpd.apache.org/docs/2.2/mod/mod_headers.html
Header set Cache-Control “max-age=2692000, public”
Header set Cache-Control “max-age=600, private, must-revalidate”
Header unset ETag
Header unset Last-Modified

6. Clean out the database

Plugin: WP Optimise

http://www.smashingmagazine.com/2014/06/25/how-to-speed-up-your-wordpress-website/

7. Pingdom Report

http://tools.pingdom.com/fpt/#!/SVMQw/traceofwind.com

 

About Gary Hicks

Gary Hicks is a professional website and graphics designer with more than 14 years experience. Having worked in London, Mexico City and Tokyo, Japan Gary is now based in Bournemouth and Windsor where he concentrates on work and staying fit.

Leave a Reply

Your email address will not be published.