SlideShare una empresa de Scribd logo
1 de 38
WordPress
Optimization



  WordPress Optmization
          Ben Metcalfe | Co-founder, WP Engine
            @dotBen | ben@wpengine.com



     San Francisco WordPress Meetup – April 23rd 2012
WordPress
Optimization
WordPress
Optimization
WordPress
Optimization


      Before we begin…
WordPress
Optimization


                   Why?
 •   Um, why not?
 •   Keep readers/customers happy!
 •   Stay up under heavy load
 •   Save $$$
WordPress
Optimization


                 Level 1
       Let‟s get the basics out the way :)
WordPress
Optimization


     Keep WP up to date
               Why wouldn‟t you?
WordPress
Optimization


   Caching plugins FTW!!
               W3-Total-Cache

        also: WPSuperCache, BatCache
WordPress
Optimization
      Deactivate unused
           plugins
      + delete plugins you don‟t use at all
WordPress
Optimization


       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-alerts
WordPress
Optimization


       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()
WordPress
Optimization


       Is your host slow?
WordPress
Optimization


               Level 2
WordPress
Optimization


  Offloading (poor-mans CDN)
         Serve images via Flickr/etc
WordPress
Optimization
 Feedburn your RSS feed

   How many requests to your blog are /feed?
WordPress
Optimization


  Repair your MySQL DB
    Sometimes you need to tidy your room :)

     PHPMyAdmin, OptimizeDB, manually
WordPress
Optimization
      Load from multiple sub-
             domains
                    good:
  foo1.yourdomain.com, foo2.yourdomain.com

                    better:
  foo1.otherdomain.com, foo2.otheromain2.com
WordPress
Optimization


       Browser Caching
            HTTP Cache-Control
              Expires headers
                Entity Tags

      (W3-Total-Cache, WPSuperCache)
WordPress
Optimization


               Level 3
        Mostly assumes SSH access
WordPress
Optimization
       Log slow MySQL
           queries
  Good HOWTO: http://hackmysql.com/nontech
WordPress
Optimization


 Check site with Profile Tools
                  WP-Tuner
                WPDB Profiling
         http://speed.wpengine.com
                    YSlow
WordPress
Optimization


                      CDN
        MaxCDN (we use parent company @ WP Engine)
           Amazon CloudFront
              CloudFlare

     Use all the time or just „emergencies‟
WordPress
Optimization


    „Smush‟ your images
               WPSmush.it plugin
WordPress
Optimization


  Opcode cache, eg APC
         php-apc + W3-Total-Cache
WordPress
Optimization


    Apache optimizations
       Disable .htaccess, use httpd.conf
WordPress
Optimization
    Dedicated MySQLDB
            Box
WordPress
Optimization


                 Level 4
               Hitting the big time
WordPress
Optimization
     Reverse-proxy with
           nginx
           Run Apache on port 8080
                Cache statics
    (good HOWTO on wp-performance.com)
WordPress
Optimization


          Varnish cache
     Save/server static pages to/from disk
      Ideally don‟t run Varnish on port 80,
               Avoid cookie issues
WordPress
Optimization


            Memcache
       Cache WordPress Object Cache
    Memcached plugin + PECL memcache
                  extension
    Ideally run Memcache on separate box

    wp-memcached-manager – admin plugin
WordPress
Optimization


               HyperDB
            Replaces wpdb class
          Multiple database servers
     Replication + failover for redundancy
             Partitioning for scale
WordPress
Optimization


           Boss Level
WordPress
Optimization
   Static site on Amazon
              S3
           “Movable Type” Model
             100% Static site
WordPress
Optimization


               #Fails
WordPress
Optimization


    DON‟T edit core files!
 No matter what “performance” benefit you think
                  it will make!
WordPress
Optimization


         Amazon EC2
           … isn‟t a silver bullet
WordPress
Optimization
          Thank you!

          ben@wpengine.com
          http://wpengine.com
WordPress
Optimization
                  Q&A



           or email: ben@wpengine.com

Más contenido relacionado

La actualidad más candente

High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPress
vnsavage
 
Wordpress optimization
Wordpress optimizationWordpress optimization
Wordpress optimization
paudelvinay
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013
Think Media Inc.
 
Word press sites maintenanace
Word press sites maintenanaceWord press sites maintenanace
Word press sites maintenanace
Michelle Castillo
 

La actualidad más candente (20)

Speed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate PerformanceSpeed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate Performance
 
High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010
 
Child Themes and CSS in WordPress
Child Themes and CSS in WordPressChild Themes and CSS in WordPress
Child Themes and CSS in WordPress
 
High Performance WordPress II
High Performance WordPress IIHigh Performance WordPress II
High Performance WordPress II
 
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp...
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp..."Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp...
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp...
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPress
 
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
 
HyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQLHyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQL
 
WordPress Server Security
WordPress Server SecurityWordPress Server Security
WordPress Server Security
 
SEMCON 2013 - WordPress Optimization
SEMCON 2013 - WordPress OptimizationSEMCON 2013 - WordPress Optimization
SEMCON 2013 - WordPress Optimization
 
Wordpress optimization
Wordpress optimizationWordpress optimization
Wordpress optimization
 
The WordPress Way
The WordPress WayThe WordPress Way
The WordPress Way
 
WordPress Plugins and Security
WordPress Plugins and SecurityWordPress Plugins and Security
WordPress Plugins and Security
 
Creating Local WordPress Installs
Creating Local WordPress InstallsCreating Local WordPress Installs
Creating Local WordPress Installs
 
Wordpress For Begineer
Wordpress For BegineerWordpress For Begineer
Wordpress For Begineer
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013
 
WordPress in 90 minutes
WordPress in 90 minutesWordPress in 90 minutes
WordPress in 90 minutes
 
Word press sites maintenanace
Word press sites maintenanaceWord press sites maintenanace
Word press sites maintenanace
 
Set up dev environment
Set up dev environmentSet up dev environment
Set up dev environment
 
WordPress Resources Nov 2014
WordPress Resources Nov 2014WordPress Resources Nov 2014
WordPress Resources Nov 2014
 

Destacado

Medien Kalkulation
Medien KalkulationMedien Kalkulation
Medien Kalkulation
Qooo
 
Zuverlaessige führungsinformationen summary
Zuverlaessige führungsinformationen summaryZuverlaessige führungsinformationen summary
Zuverlaessige führungsinformationen summary
ICV_eV
 

Destacado (17)

Spatial Perception
Spatial PerceptionSpatial Perception
Spatial Perception
 
node.js - Fast event based web application development
node.js - Fast event based web application developmentnode.js - Fast event based web application development
node.js - Fast event based web application development
 
openExperts Talk - 12 Jahre agiles Manifest
openExperts Talk - 12 Jahre agiles ManifestopenExperts Talk - 12 Jahre agiles Manifest
openExperts Talk - 12 Jahre agiles Manifest
 
jQuery & CouchDB - Die zukünftige Webentwicklung?
jQuery & CouchDB - Die zukünftige Webentwicklung?jQuery & CouchDB - Die zukünftige Webentwicklung?
jQuery & CouchDB - Die zukünftige Webentwicklung?
 
IT Beschaffungskonferenz, 28.8.2013 - Agile IT Beschaffung - Best Practices
IT Beschaffungskonferenz, 28.8.2013 - Agile IT Beschaffung - Best PracticesIT Beschaffungskonferenz, 28.8.2013 - Agile IT Beschaffung - Best Practices
IT Beschaffungskonferenz, 28.8.2013 - Agile IT Beschaffung - Best Practices
 
Deployment 2.0
Deployment 2.0Deployment 2.0
Deployment 2.0
 
Qualitymanagement mit Sitecore und Sonarqube
Qualitymanagement mit Sitecore und SonarqubeQualitymanagement mit Sitecore und Sonarqube
Qualitymanagement mit Sitecore und Sonarqube
 
openExperts Talk: die Cloud und ich
openExperts Talk: die Cloud und ichopenExperts Talk: die Cloud und ich
openExperts Talk: die Cloud und ich
 
CouchApp - Build scalable web applications and relax
CouchApp - Build scalable web applications and relaxCouchApp - Build scalable web applications and relax
CouchApp - Build scalable web applications and relax
 
Web Testen mit Selenium
Web Testen mit SeleniumWeb Testen mit Selenium
Web Testen mit Selenium
 
Seks råd for å lykkes i arbeidslivet
Seks råd for å lykkes i arbeidslivetSeks råd for å lykkes i arbeidslivet
Seks råd for å lykkes i arbeidslivet
 
Qualitätsmanagement 2.0 - Warum ein Wiki sich für das QM besonders gut eignet
Qualitätsmanagement 2.0 - Warum ein Wiki sich für das QM besonders gut eignetQualitätsmanagement 2.0 - Warum ein Wiki sich für das QM besonders gut eignet
Qualitätsmanagement 2.0 - Warum ein Wiki sich für das QM besonders gut eignet
 
Sonar - Software Qualitätsmanagement ohne Schmerzen
Sonar - Software Qualitätsmanagement ohne SchmerzenSonar - Software Qualitätsmanagement ohne Schmerzen
Sonar - Software Qualitätsmanagement ohne Schmerzen
 
Medien Kalkulation
Medien KalkulationMedien Kalkulation
Medien Kalkulation
 
Zuverlaessige führungsinformationen summary
Zuverlaessige führungsinformationen summaryZuverlaessige führungsinformationen summary
Zuverlaessige führungsinformationen summary
 
Erfolgs und Wirkungsmessung von Regionalentwicklungsprozesse
Erfolgs  und Wirkungsmessung von RegionalentwicklungsprozesseErfolgs  und Wirkungsmessung von Regionalentwicklungsprozesse
Erfolgs und Wirkungsmessung von Regionalentwicklungsprozesse
 
Plattformvergleich
PlattformvergleichPlattformvergleich
Plattformvergleich
 

Similar a Optimizing WordPress - WordPress SF Meetup April 2012

Vinay Paudel: Optimizing and Speeding up a WordPress site
Vinay Paudel: Optimizing and Speeding up a WordPress siteVinay Paudel: Optimizing and Speeding up a WordPress site
Vinay Paudel: Optimizing and Speeding up a WordPress site
wpnepal
 

Similar a Optimizing WordPress - WordPress SF Meetup April 2012 (20)

Optimize wordpress
Optimize wordpressOptimize wordpress
Optimize wordpress
 
Battling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support TaleBattling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support Tale
 
Vinay Paudel: Optimizing and Speeding up a WordPress site
Vinay Paudel: Optimizing and Speeding up a WordPress siteVinay Paudel: Optimizing and Speeding up a WordPress site
Vinay Paudel: Optimizing and Speeding up a WordPress site
 
Optimizing WordPress for Speed and Conversions by Ben Metcalfe
Optimizing WordPress for Speed and Conversions by Ben MetcalfeOptimizing WordPress for Speed and Conversions by Ben Metcalfe
Optimizing WordPress for Speed and Conversions by Ben Metcalfe
 
Optimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp HoustonOptimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp Houston
 
Caching 101
Caching 101Caching 101
Caching 101
 
WordPress Security & Backup
WordPress Security & Backup WordPress Security & Backup
WordPress Security & Backup
 
Speeding up your WordPress site - WordCamp Hamilton 2015
Speeding up your WordPress site - WordCamp Hamilton 2015Speeding up your WordPress site - WordCamp Hamilton 2015
Speeding up your WordPress site - WordCamp Hamilton 2015
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0
 
Improve WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of codeImprove WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of code
 
WordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security FundamentalsWordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security Fundamentals
 
WordPress Fav Plugins & Security
WordPress Fav Plugins & SecurityWordPress Fav Plugins & Security
WordPress Fav Plugins & Security
 
23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress
 
20 Tips to Improving WordPress Website - for Beginners-Aus-2017
20 Tips to Improving WordPress Website - for Beginners-Aus-201720 Tips to Improving WordPress Website - for Beginners-Aus-2017
20 Tips to Improving WordPress Website - for Beginners-Aus-2017
 
Optimizing the performance of WordPress
Optimizing the performance of WordPressOptimizing the performance of WordPress
Optimizing the performance of WordPress
 
Amazing WordPress & Productivity Tips
Amazing WordPress & Productivity TipsAmazing WordPress & Productivity Tips
Amazing WordPress & Productivity Tips
 
WordPress 2.5 Overview - Rich Media Institute
WordPress 2.5 Overview - Rich Media InstituteWordPress 2.5 Overview - Rich Media Institute
WordPress 2.5 Overview - Rich Media Institute
 
A crash course in scaling wordpress
A crash course inscaling wordpress A crash course inscaling wordpress
A crash course in scaling wordpress
 
Using Wordpress for Internet Publishing
Using Wordpress for Internet PublishingUsing Wordpress for Internet Publishing
Using Wordpress for Internet Publishing
 
WordPress
WordPressWordPress
WordPress
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

Optimizing WordPress - WordPress SF Meetup April 2012