High Performance
websites on
Shared Hosting
- Andy Roberts
Slide 2
Slide 2 text
Andy Roberts
@andylroberts
props to
The Jon Brown!
@jb510
Slide 3
Slide 3 text
Three Steps to WP Performance
1.Inside WordPress
2.On your Shared Server
3.Off your Shared Server
Slide 4
Slide 4 text
0
Step Zero
Prelims
Slide 5
Slide 5 text
Behold, The Patient
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
Will he?
Free, Free, Free! Performance Tweaks
you can make on or with most shared
hosting (these could help any hosting
setup). And they are all no cost, as in
free.
Slide 8
Slide 8 text
or won’t he?
Geeky tweaks that are only suitable on
VPS/Dedicated servers
(i.e. Memcached, Hyper DB, NginX, etc.)
Slide 9
Slide 9 text
Where to find the advanced?
http://wordpress.tv
Joseph Scott, Barry Abrahamson
Ilya Grigorik, Iliya Polihronov
& others...
Slide 10
Slide 10 text
Measuring Shared Server
Performance
• Guess what the experts say?
• http://www.webpagetest.org
Slide 11
Slide 11 text
But I thought...
•FireBug
•YSlow
•PageSpeed
•WebKit DevTools
Slide 12
Slide 12 text
webpagetest.org
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
Sharing,
despite what mom tought...
•not optimized any site
•generalized solution
•can’t touch many server settings
•Ha Eva, there are things we can do
Slide 15
Slide 15 text
Goal!
This is Performance Optimization
•Minimize HTTP requests
•Lower Total data transfer
•Limit CPU load
•Eliminate Bottlenecks
Slide 16
Slide 16 text
1
Step One
Inside
WordPress
Slide 17
Slide 17 text
Inside WordPress
1.Images
2.404s
3.DB control
4.WordPress based Caching
Slide 18
Slide 18 text
Images
•Upload the max size needed
•Compress to 60-70% (aka 7 out of 12
in Photoshop)
•WP Smush.it
Slide 19
Slide 19 text
No content
Slide 20
Slide 20 text
Bulk Smush.it
Slide 21
Slide 21 text
24.94s
4.60s
Slide 22
Slide 22 text
6.67s
1.66s
Slide 23
Slide 23 text
404s
•WebPageTest.org
•FireBug / Webkit Dev Tools
Slide 24
Slide 24 text
Control you WP DB
•Optimize DB
Plugin - WP DB Manager
•Tame Revisions
Plugin - Revision Control
Slide 25
Slide 25 text
6.49s
1.66s
Slide 26
Slide 26 text
Caching WordPress
•W3 Total Cache
•WP Super Cache
•WP Minify
Slide 27
Slide 27 text
Caching WordPress
•W3 Total Cache
•WP Super Cache - Easy
•WP Minify
Slide 28
Slide 28 text
Do’s & Dont’s
•Test, test, test
•Turn it up to 11!
•Maximize the minify
•Prime your cache
Slide 29
Slide 29 text
6.2s
1.2s
Slide 30
Slide 30 text
WP Super Cache Advanced
•mod_rewrite
•Compress Pages
Slide 31
Slide 31 text
6.04s
1.2s
Slide 32
Slide 32 text
2
Step Two
On your Server
Slide 33
Slide 33 text
On your Server
•PHP Version
•Apache Compress
•Cloudflare (if you’re lucky)
Slide 34
Slide 34 text
PHP
•PHP Version 5.2.17
•5.3 15% faster - Dmitry Stogov http://
news.php.net/php.internals/36484
•PHP 5.4 is even faster
Slide 35
Slide 35 text
How?
•Call
•cPanel
•.htaccess via AddHandler
Slide 36
Slide 36 text
Apache Level File Compression
Direct your Web Server (Apache) to
compress the files on the way out the
door