Slide 1

Slide 1 text

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

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

5.16s 0.995s

Slide 39

Slide 39 text

3 Step Three Off your Server

Slide 40

Slide 40 text

CloudFlare free awesomeness Content Delivery Network (CDN) + Site Optimizer + Security

Slide 41

Slide 41 text

Use Cloudflare Name Servers Your site is served from Cloudflare

Slide 42

Slide 42 text

Cloudflare Setup 1.Set up free Account 2.They Scan DNS and pull it 3.You Repoint Nameservers (wait)

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

Where does that get us?

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

Before Theme upgrade 90s

Slide 47

Slide 47 text

Theme!?! WebPageTest doesn’t recognize CloudFlare as a CDN

Slide 48

Slide 48 text

0 7.5 15.0 22.5 30.0 Baseline Smush.it Opt DB C. - Easy C. - Adv Apache Cloudflare 1st Load 2nd Load Home Page Load Times

Slide 49

Slide 49 text

0 7.5 15.0 22.5 30.0 Baseline Smush.it Opt DB C. - Easy C. - Adv Apache Cloudflare 1st Load 2nd Load Home Page Load Times 24.9s 4.9s

Slide 50

Slide 50 text

0 7.5 15.0 22.5 30.0 Baseline Smush.it Opt DB C. - Easy C. - Adv Apache Cloudflare 1st Load 2nd Load Home Page Load Times 24.9s 4.9s 4.7s 0.7s

Slide 51

Slide 51 text

0 7.5 15.0 22.5 30.0 Baseline Smush.it Opt DB C. - Easy C. - Adv Apache Cloudflare 1st Load 2nd Load Home Page Load Times 24.9s 4.9s 4.7s 0.7s

Slide 52

Slide 52 text

That’s it!

Slide 53

Slide 53 text

Andy Roberts @andylroberts http://booktrope.com http://robertsstragegies.com http://note15.com