WordPress performance





@stompweb
Steven Jones

Assets


Images
CSS/JS
Gzip
CDN
Concurrent requests - SPDY

http://wp.smashingmagazine.com/2014/03/21/wordpress-performance-improvements-that-can-go-wrong/

Caching


Page caching
This is not a bandaid - do this last.


Object caching
Use WP_Query - non persistant caching by default.

JS/CSS


Concatination
Only load where you need it (JS at bottom)
Minification - Grunt/Codekit

GZIP 

.htaccess

Leverage browser caching

Fastest request is the one that isn't made.




Images


Compress
Sprites
Lazy Load
Do you need this many images?
Only load sizes you need
CDN

Sliders - really?

Server


Speed to first byte

Minimize http requests: SPDY
Location of server
PHP preprocesser - APC

Optimise DB

Plugins/Themes


Lean them, only load what you need / Optimise for mobile

Load comments later? external service requests

Keep WP and plugins up to date - usually fixes and speed boosts.

P3 Plugin profiler

Turn off plugins and see if they are the problem

New Relic

Test


Google Pagespeed
Pingdom

Try different combinations

Debug Bar Slow Actions

Search


Search is slow.

Use external service. 

Maybe not have a search?

Extras


Turn off revisions
Use taxonomies/post meta right
DB Optimisation
Increase memory?

Redirects

SSL - tell browser next time it's https:

WordPress Performance

By Steven Jones

WordPress Performance

Coming soon...

  • 1,878