WordPressOptimization  WordPress Optmization             ben metcalfe | WP Engine           @dotBen | ben@wpengine.com    ...
WordPressOptimization                   Why? •   Um, why not? •   Keep readers/customers happy! •   Stay up under heavy lo...
WordPressOptimization                 Level 1       Let‟s get the basics out the way :)WP
WordPressOptimization     Keep WP up to date               Why wouldn‟t you?WP
WordPressOptimization   Caching plugins FTW!!               W3-Total-Cache        also: WPSuperCache, BatCacheWP
WordPressOptimization      Deactivate unused           plugins      + delete plugins you don‟t use at allWP
WordPressOptimization       Avoid bad plugins     Include (but not limited to)     • backupwordpress     • backwpup     • ...
WordPressOptimization       Review your theme HTML • does it validate? • CSS at the top, JS at the bottom (not inline) PHP...
WordPressOptimization       Is your host slow?WP
WordPressOptimization               Level 2WP
WordPressOptimization  Offloading (poor-mans CDN)         Serve images via Flickr/etcWP
WordPressOptimization Feedburn your RSS feed   How many requests to your blog are /feed?WP
WordPressOptimization  Repair your MySQL DB     Sometimes you need to tidy your room :)      PHPMyAdmin, OptimizeDB, manua...
WordPressOptimization      Load from multiple sub-             domains                    good:  foo1.yourdomain.com, foo2...
WordPressOptimization       Browser Caching            HTTP Cache-Control              Expires headers                Enti...
WordPressOptimization               Level 3        Mostly assumes SSH accessWP
WordPressOptimization       Log slow MySQL           queries  Good HOWTO: http://hackmysql.com/nontechWP
WordPressOptimization Check site with Profile Tools                  WP-Tuner                WPDB Profiling         http:/...
WordPressOptimization                   CDN       MaxCDN (used @ WP Engine),           Amazon CloudFront               Clo...
WordPressOptimization     „Smush‟ your images               WPSmush.it pluginWP
WordPressOptimization     APC/ opcode cache         php-apc + W3-Total-CacheWP
WordPressOptimization     Apache optimizations       Disable .htaccess, use httpd.confWP
WordPressOptimization     Dedicated MySQLDB             BoxWP
WordPressOptimization                 Level 4               Hitting the big timeWP
WordPressOptimization      Reverse-proxy with            nginx            Run Apache on port 8080                 Cache st...
WordPressOptimization          Varnish cache      Ideally don‟t run Varnish on port 80,               Avoid cookie issuesWP
WordPressOptimization               Memcache      Ideally run Memcache on separate box     Use same datacenter, ideally sa...
WordPressOptimization               HyperDB         Multiple database serversWP
WordPressOptimization           Boss LevelWP
WordPressOptimization     Static site on Amazon                S3           “Movable Type” Model             100% Static s...
WordPressOptimization               #FailsWP
WordPressOptimization     DON‟T edit core files! No matter what “performance” benefit you think                  it will m...
WordPressOptimization         Amazon EC2           … isn‟t a silver bulletWP
WordPressOptimization               Q&AWP
Upcoming SlideShare
Loading in …5
×

Optimizing WordPress (WordCamp Philly 2011)

2,829 views
2,747 views

Published on

Deck I gave on Optimizing WordPress at WordCamp Philly. These are a combination of my own personal experience and things we automatically do for client accounts at WP Engine.

Given the wide range in technical ability of the audience, these slides should provide an overview of subjects for optimization but you'll need to investigate the subjects individually.

Published in: Technology, Business

Optimizing WordPress (WordCamp Philly 2011)

  1. 1. WordPressOptimization WordPress Optmization ben metcalfe | WP Engine @dotBen | ben@wpengine.com WordCampPhilly 20011WP
  2. 2. WordPressOptimization Why? • Um, why not? • Keep readers/customers happy! • Stay up under heavy load • Save $$$WP
  3. 3. WordPressOptimization Level 1 Let‟s get the basics out the way :)WP
  4. 4. WordPressOptimization Keep WP up to date Why wouldn‟t you?WP
  5. 5. WordPressOptimization Caching plugins FTW!! W3-Total-Cache also: WPSuperCache, BatCacheWP
  6. 6. WordPressOptimization Deactivate unused plugins + delete plugins you don‟t use at allWP
  7. 7. WordPressOptimization Avoid bad plugins Include (but not limited to) • backupwordpress • backwpup • broken-link-checker • dynamic-related-posts • file-commander • google-sitemap-generator • LinkMan (MyReviewPlugin Link Man) • MyRP (MyReviewPlugin) • wp-symposium-alertsWP
  8. 8. WordPressOptimization Review your theme HTML • does it validate? • CSS at the top, JS at the bottom (not inline) PHP • Any weird code (if it looks bad, it probably is) • file_get_contents() / fgets()WP
  9. 9. WordPressOptimization Is your host slow?WP
  10. 10. WordPressOptimization Level 2WP
  11. 11. WordPressOptimization Offloading (poor-mans CDN) Serve images via Flickr/etcWP
  12. 12. WordPressOptimization Feedburn your RSS feed How many requests to your blog are /feed?WP
  13. 13. WordPressOptimization Repair your MySQL DB Sometimes you need to tidy your room :) PHPMyAdmin, OptimizeDB, manuallyWP
  14. 14. WordPressOptimization Load from multiple sub- domains good: foo1.yourdomain.com, foo2.yourdomain.com better: foo1.otherdomain.com, foo2.otheromain2.comWP
  15. 15. WordPressOptimization Browser Caching HTTP Cache-Control Expires headers Entity Tags (W3-Total-Cache, WPSuperCache)WP
  16. 16. WordPressOptimization Level 3 Mostly assumes SSH accessWP
  17. 17. WordPressOptimization Log slow MySQL queries Good HOWTO: http://hackmysql.com/nontechWP
  18. 18. WordPressOptimization Check site with Profile Tools WP-Tuner WPDB Profiling http://speed.wpengine.com YSlowWP
  19. 19. WordPressOptimization CDN MaxCDN (used @ WP Engine), Amazon CloudFront CloudFlare Use all the time or just „emergencies‟WP
  20. 20. WordPressOptimization „Smush‟ your images WPSmush.it pluginWP
  21. 21. WordPressOptimization APC/ opcode cache php-apc + W3-Total-CacheWP
  22. 22. WordPressOptimization Apache optimizations Disable .htaccess, use httpd.confWP
  23. 23. WordPressOptimization Dedicated MySQLDB BoxWP
  24. 24. WordPressOptimization Level 4 Hitting the big timeWP
  25. 25. WordPressOptimization Reverse-proxy with nginx Run Apache on port 8080 Cache statics (good HOWTO on wp-performance.com)WP
  26. 26. WordPressOptimization Varnish cache Ideally don‟t run Varnish on port 80, Avoid cookie issuesWP
  27. 27. WordPressOptimization Memcache Ideally run Memcache on separate box Use same datacenter, ideally same subnetWP
  28. 28. WordPressOptimization HyperDB Multiple database serversWP
  29. 29. WordPressOptimization Boss LevelWP
  30. 30. WordPressOptimization Static site on Amazon S3 “Movable Type” Model 100% Static siteWP
  31. 31. WordPressOptimization #FailsWP
  32. 32. WordPressOptimization DON‟T edit core files! No matter what “performance” benefit you think it will make!WP
  33. 33. WordPressOptimization Amazon EC2 … isn‟t a silver bulletWP
  34. 34. WordPressOptimization Q&AWP

×