SlideShare a Scribd company logo
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
WordPress Performance
Key learnings from hosting 1000+
WordPress sites
Thomas Audunhus
Country Manager @ Servebolt
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Novice Expert
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
And why is speed important?
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Because the users of the internet says so!
… and Google
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Rendering and browser code
HTML, CSS & .js
Server-side code
PHP
Database
MySQL
What affects load time?
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Time to first byte (TTFB)
Time from the server receives a request,
until the first byte is delivered.
Recommended: <600ms
WordPress Performance by Thomas Audunhus
What do most developers do to speed up WordPress?
1. Minification of code (grunt, gulp etc)
2. Install a plugin with “performance” or “speed” in the title
3. Set up caching everywhere
4. Adjust the code again, and again, to achieve a Pagespeed insights score of 100/100
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Whaaaaat?
Not even Google?
WordPress Performance by Thomas Audunhus
Implementing the suggestions should improve the
relative performance of the page.
“
- Google
We use a variety of sources to determine the speed of a
site relative to other sites.
“
- Google
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
What makes WordPress slow?
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Bloated themes
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
“There is a plugin for that”
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
With Autoptimize Without Autoptimize
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Running more code != Better performance
Doing more never results in faster finish
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
0ms
1250ms
2500ms
3750ms
5000ms
Them
e:2017
Them
e:Jupiter
Dem
o
content
Plugin:VC
Plugin:Autoptim
ize
Added
100
postsPlugin:W
oocom
m
ercePlugin:W
ordfence
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
So, what to do?
…and what not to do
WordPress Performance by Thomas Audunhus
Be lean and mean with plugins
1. Plugins you don’t really need shouldn’t be installed.
2. Ensure that new plugins don’t mess with your time-to-first-byte (TTFB)
3. Kill page-builders like Visual Composer if you can
4. Kill security plugins (they are a security hazard anyway)
5. Kill slider plugins
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
I’m focused on performance, so I use caching on all sites“
Cool, the site is faster now! But.. it’s not Varnish fast.“
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Using page caching for
performance
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Caching
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Caching
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Caching
Load balancer
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Caching == A scaling tool
If you use caching for performance, you will not be able to use it for scaling.
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
PHP ERRORS
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Keep .htaccess clean
Don’t setup redirects in htaccess.
# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Hardcoding
Nooooo… hardcoding is bad! Or?
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
MyISAM -> InnoDB
Stop using MyISAM as DB engine, and switch to InnoDB or Aria
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Large _options table?
ALTER TABLE wp_options ADD INDEX autoload_idx (`autoload`);
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
Stay up to date on technology
WordPress Performance by Thomas Audunhus
New technology
1. Compiles PHP into byte code

2. Caches the compiled byte code
2-3x faster
OPcache
WordPress Performance by Thomas Audunhus
4 connections
HTTP2
New technology
WordPress Performance by Thomas Audunhus
HTTP2
1 connection
New technology
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
~40% faster
New technology
WordPress Performance by Thomas Audunhus
The takeaway
• Check if your changes to the site had an impact on ttfb

• Make the error log your todo list

• Don’t rely on caching for performance

• Move to PHP 7

• Remember that performance is a continuous task
Thank you!
WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup

More Related Content

What's hot (20)

PDF
Manage WordPress From the Command Line with WP-CLI
Shawn Hooper
 
PDF
WP-CLI Presentation from WordCamp NYC 2015
Shawn Hooper
 
PDF
Self hosted WordPress
Carel Bekker
 
PPTX
WordPress Migrations 101 - WordCamp Orlando
SiteGround.com
 
PDF
Cloud Automation with Opscode Chef
Sri Ram
 
PPT
Moving from WordPress.com to WordPress.org
Ruth Maude
 
PPTX
WordPress on Amazon ec2
belsien
 
PDF
Ship WordPress Projects Like a Boss
SiteGround.com
 
PPTX
Wordpress vs Google Blogger/ Wampserver
Kshitij Wagle
 
PDF
How to install wordpress
CBitss Technologies
 
PDF
3 tips to make your Wordpress site faster
Jonathan Alford
 
PDF
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
PPT
High Performance Website with LAMPP technology
Pierre Jean Duvivier
 
PDF
Gearman Add To Your Project
Mindfire Solutions
 
PDF
Using WordPress as a local Intranet Hub, Milwaukee WordCamp 2013 | Samer Sultan
samersultan1
 
DOCX
Weebly login
marvinmikkelson
 
PPTX
Migrating from WordPress.com
Andrew Epperson
 
PDF
NJ Videographers Association - Build an amazing website - WordPress
Gabriela Levit
 
PPTX
Wordpress installation
Webtech Learning
 
PDF
WordCamp Netherlands 2012: WordPress in 2012
andrewnacin
 
Manage WordPress From the Command Line with WP-CLI
Shawn Hooper
 
WP-CLI Presentation from WordCamp NYC 2015
Shawn Hooper
 
Self hosted WordPress
Carel Bekker
 
WordPress Migrations 101 - WordCamp Orlando
SiteGround.com
 
Cloud Automation with Opscode Chef
Sri Ram
 
Moving from WordPress.com to WordPress.org
Ruth Maude
 
WordPress on Amazon ec2
belsien
 
Ship WordPress Projects Like a Boss
SiteGround.com
 
Wordpress vs Google Blogger/ Wampserver
Kshitij Wagle
 
How to install wordpress
CBitss Technologies
 
3 tips to make your Wordpress site faster
Jonathan Alford
 
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
High Performance Website with LAMPP technology
Pierre Jean Duvivier
 
Gearman Add To Your Project
Mindfire Solutions
 
Using WordPress as a local Intranet Hub, Milwaukee WordCamp 2013 | Samer Sultan
samersultan1
 
Weebly login
marvinmikkelson
 
Migrating from WordPress.com
Andrew Epperson
 
NJ Videographers Association - Build an amazing website - WordPress
Gabriela Levit
 
Wordpress installation
Webtech Learning
 
WordCamp Netherlands 2012: WordPress in 2012
andrewnacin
 

Similar to Key learnings from hosting 1000+ WordPress sites (20)

PPTX
I Can Haz More Performanz?
Andy Melichar
 
PPTX
Caching 101
Andy Melichar
 
PDF
Optimizing the performance of WordPress
Josh Highland Giese
 
PPT
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
ResellerClub
 
PPTX
Optimizing your WordPress website
mwfordesigns
 
PPTX
WordPress Optimization - Pubcon Las Vegas 2014
Brian LaFrance
 
PDF
Building faster websites: web performance with WordPress
Johannes Siipola
 
PPTX
Improving WordPress Performance: Xdebug and PHP profiling
Seravo
 
PDF
Optimizing WordPress Performance
Douglas Yuen
 
PDF
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
Otto Kekäläinen
 
PPTX
Optimizing Wordpress Pubcon New Orleans 2014
Brian LaFrance
 
PDF
Improving WordPress performance (xdebug and profiling)
Otto Kekäläinen
 
PPTX
Optimizing WordPress for Speed and Conversions by Ben Metcalfe
Affiliate Summit
 
PDF
Enhancing performance in an open-source CMS ecosystem
Felix Arntz
 
PDF
Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final
M Asif Rahman
 
PDF
The 5 most common reasons for a slow WordPress site and how to fix them
Otto Kekäläinen
 
PPTX
Optimizing WordPress (WordCamp Philly 2011)
Ben Metcalfe
 
PDF
WordPress website optimization
Daniel Kanchev
 
PPTX
Optimizing WordPress - WordPress SF Meetup April 2012
Ben Metcalfe
 
PDF
Optimizing wp
Mark Kelnar
 
I Can Haz More Performanz?
Andy Melichar
 
Caching 101
Andy Melichar
 
Optimizing the performance of WordPress
Josh Highland Giese
 
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
ResellerClub
 
Optimizing your WordPress website
mwfordesigns
 
WordPress Optimization - Pubcon Las Vegas 2014
Brian LaFrance
 
Building faster websites: web performance with WordPress
Johannes Siipola
 
Improving WordPress Performance: Xdebug and PHP profiling
Seravo
 
Optimizing WordPress Performance
Douglas Yuen
 
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
Otto Kekäläinen
 
Optimizing Wordpress Pubcon New Orleans 2014
Brian LaFrance
 
Improving WordPress performance (xdebug and profiling)
Otto Kekäläinen
 
Optimizing WordPress for Speed and Conversions by Ben Metcalfe
Affiliate Summit
 
Enhancing performance in an open-source CMS ecosystem
Felix Arntz
 
Caching and Optimization By M Asif Rahman @ WordCamp Orlando 2012 Final
M Asif Rahman
 
The 5 most common reasons for a slow WordPress site and how to fix them
Otto Kekäläinen
 
Optimizing WordPress (WordCamp Philly 2011)
Ben Metcalfe
 
WordPress website optimization
Daniel Kanchev
 
Optimizing WordPress - WordPress SF Meetup April 2012
Ben Metcalfe
 
Optimizing wp
Mark Kelnar
 
Ad

Recently uploaded (20)

PPTX
unit 2_2 copy right fdrgfdgfai and sm.pptx
nepmithibai2024
 
PPTX
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
PPTX
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
PPT
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PDF
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
PDF
Build Fast, Scale Faster: Milvus vs. Zilliz Cloud for Production-Ready AI
Zilliz
 
PPTX
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
PPTX
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
PPTX
internet básico presentacion es una red global
70965857
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPT
introductio to computers by arthur janry
RamananMuthukrishnan
 
PPTX
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
PPTX
ZARA-Case.pptx djdkkdjnddkdoodkdxjidjdnhdjjdjx
RonnelPineda2
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
PPTX
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PPTX
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
PDF
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
unit 2_2 copy right fdrgfdgfai and sm.pptx
nepmithibai2024
 
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
Build Fast, Scale Faster: Milvus vs. Zilliz Cloud for Production-Ready AI
Zilliz
 
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
internet básico presentacion es una red global
70965857
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
introductio to computers by arthur janry
RamananMuthukrishnan
 
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
ZARA-Case.pptx djdkkdjnddkdoodkdxjidjdnhdjjdjx
RonnelPineda2
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
Orchestrating things in Angular application
Peter Abraham
 
Ad

Key learnings from hosting 1000+ WordPress sites

  • 1. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup WordPress Performance Key learnings from hosting 1000+ WordPress sites Thomas Audunhus Country Manager @ Servebolt
  • 2. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Novice Expert
  • 3. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup And why is speed important?
  • 4. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Because the users of the internet says so! … and Google
  • 5. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
  • 6. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Rendering and browser code HTML, CSS & .js Server-side code PHP Database MySQL What affects load time?
  • 7. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Time to first byte (TTFB) Time from the server receives a request, until the first byte is delivered. Recommended: <600ms
  • 8. WordPress Performance by Thomas Audunhus What do most developers do to speed up WordPress? 1. Minification of code (grunt, gulp etc) 2. Install a plugin with “performance” or “speed” in the title 3. Set up caching everywhere 4. Adjust the code again, and again, to achieve a Pagespeed insights score of 100/100
  • 9. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Whaaaaat? Not even Google?
  • 10. WordPress Performance by Thomas Audunhus Implementing the suggestions should improve the relative performance of the page. “ - Google We use a variety of sources to determine the speed of a site relative to other sites. “ - Google
  • 11. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup What makes WordPress slow?
  • 12. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Bloated themes
  • 13. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup “There is a plugin for that”
  • 14. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup With Autoptimize Without Autoptimize
  • 15. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Running more code != Better performance Doing more never results in faster finish
  • 16. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup 0ms 1250ms 2500ms 3750ms 5000ms Them e:2017 Them e:Jupiter Dem o content Plugin:VC Plugin:Autoptim ize Added 100 postsPlugin:W oocom m ercePlugin:W ordfence
  • 17. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup So, what to do? …and what not to do
  • 18. WordPress Performance by Thomas Audunhus Be lean and mean with plugins 1. Plugins you don’t really need shouldn’t be installed. 2. Ensure that new plugins don’t mess with your time-to-first-byte (TTFB) 3. Kill page-builders like Visual Composer if you can 4. Kill security plugins (they are a security hazard anyway) 5. Kill slider plugins
  • 19. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup I’m focused on performance, so I use caching on all sites“ Cool, the site is faster now! But.. it’s not Varnish fast.“
  • 20. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Using page caching for performance
  • 21. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup
  • 22. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Caching
  • 23. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Caching
  • 24. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Caching Load balancer
  • 25. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Caching == A scaling tool If you use caching for performance, you will not be able to use it for scaling.
  • 26. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup PHP ERRORS
  • 27. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Keep .htaccess clean Don’t setup redirects in htaccess. # BEGIN WordPress
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteRule ^index.php$ – [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>
 # END WordPress
  • 28. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Hardcoding Nooooo… hardcoding is bad! Or?
  • 29. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup MyISAM -> InnoDB Stop using MyISAM as DB engine, and switch to InnoDB or Aria
  • 30. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Large _options table? ALTER TABLE wp_options ADD INDEX autoload_idx (`autoload`);
  • 31. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup Stay up to date on technology
  • 32. WordPress Performance by Thomas Audunhus New technology 1. Compiles PHP into byte code 2. Caches the compiled byte code 2-3x faster OPcache
  • 33. WordPress Performance by Thomas Audunhus 4 connections HTTP2 New technology
  • 34. WordPress Performance by Thomas Audunhus HTTP2 1 connection New technology
  • 35. WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup ~40% faster New technology
  • 36. WordPress Performance by Thomas Audunhus The takeaway • Check if your changes to the site had an impact on ttfb • Make the error log your todo list • Don’t rely on caching for performance • Move to PHP 7 • Remember that performance is a continuous task
  • 37. Thank you! WordPress Performance by Thomas Audunhus @ Oslo WordPress Meetup