SlideShare a Scribd company logo
Wordpress optimization
    { Speed up your wordpress
Who dafuq are you?
Wordpress optimization
Wordpress optimization
What are we going to talk
             about?
  How to improve your wordpress performance.


Speed up your website over than 700% faster!
What are we going to talk
            about?
1. Huh? Performance?

2. How do I analyze my wordpress performance?

3. How to optimize!
Hey.. Wait a second!
Why should I do it?
  1. Why not?
  2. It will save you money! $$$$
  3. Make your users happy   
  4. Stay up under heavy load..
  5. Improve your google results!
What does it mean
                  “Performance”?
Loading time is influenced by



       Hardware                   Services                Requests
       Better hosting           Configurations           Caching
       Better hardware          3rd party serviced       Right Development
                                  (varnish, cdn..,apc)
       Location
What does it mean
  “requests”?
Wordpress optimization
Wordpress optimization
Wordpress optimization
Wordpress optimization
What does it mean
               “Performance”?
There are two states:


     Deploy                     Production
     1 user = request at time   multiple users = multiple request
     low hardware               high hardware
Analyzing tools
There are few tools to analyze our website:

1. Feeling - the website went slow

2. Requests analyzing tools

3. By-subject analyzing tools

4. Wordpress analyzing
Requests analyzing
Firebug’s Net tab:
Requests analyzing
 webpagetest.org




Allowing test with different engines, and test within first view or repeated.. And much more
Requests analyzing
Pingdom.com tools
By-subject analyzing
YSlow:
By-subject analyzing
YSlow:
By-subject analyzing
Google pagespeed:
By-subject analyzing
Google pagespeed:
Wordpress analyzing
Wordpress plugin: P3


P3 is analyzing your
plugins and provide an
detailed analysis.
Cat time!
Wordpress optimization
How to optimize!
The obvious:
1. Keep your wordpress updated! (core & plugins)
2. Deactivate unused plugins
3. Check about the plugin before install it.


4. Analyze your website.. Duh?
Optimize server
Use linux!


• Configure the PHP as well - increase memory, timeout..

• Configure MySQL as well - some innodb issues may slow your website
Optimize server
• Use opcode accelerators - APC, Xcache, memcache

• Varnish

• Consider replacing apache2 with nginx
Development optimizations
Remember this?

Because our browser
   have many requests, the
      loading time much longer.

So, lets try to reduce the requests!
Development optimizations
Use sprites!
Sprites make the browser load all the images at once and reducing new
requests.
Development optimizations
Minify and aggregation
1.   Aggregate all the resources(js, css, image->sprites)
2. Aggregation is reducing the requests


3. Minifying all the resources(html, css, js)
4.   Minifying is speeding up your loading!
Development optimizations
Javascript

1.   Make your ajax scripts cacheable

2. Reduce document ready events.

3. Reduce jQuery queries! –
        every query is scanning the whole webpage!
        use canonical finding instead:
           var $section = $("#section");
           $section.find(".class").text("cool");
Development optimizations
Write semantic and valid code!


1.   Separate code from style: markup shouldn't contains style elements.

2.   Use CSS’s pseudo class “:before” and “:after”

3.   Use CSS3 features(gradient, shadow…)
Development optimizations
 Write semantic code by the html5 rules!
<header role="banner">
  <h1><a href="http://link.com/" title="Website" rel="home">Logo</a></h1>
  <nav role="navigation"><ul>
    <li class="current"><a href="http://link.com/" title="Home">Home</a></li>
    <li class="page_item"><a href="http://link.com/About">About</a></li>
  </ul></nav>
</header>

<section id="content">
  <article id="post-19" class="post-19 post type-post">
      …
  </article>
  <article id="post-21" class="post-21 post type-post">
      …
  </article>
</section>

<footer>
  …
</footer>
Development optimizations
Images

1.   DO NOT scale images with CSS!
2.   Save images for web

3.   You may use www.smush.it or WP-Smush.it plugin
Development optimizations
Set properly headers for browser-caching
Set expire headers, e-tags, etc..



GZip everything!
Compress your source files(css, js, html) with gzip.. It will accelerate your loading time.
What is cache?
                                                Database

                          Web

                                       Server



This is really long way..
And actually.. It’s the same result!
What is cache?
Cache is the way to access distant data faster by storing it locally.
Server-side cache
Every request for each page is making our website rebuild this page using the database
our theme, and much more..


                                                                Database




                              Request homepage
                                                 Server




          But, actually- our page hasn’t been changed.
Cache optimizations
So.. Why haven’t we cache this pages?!         Cached
                                                page




                                     is page
                                    cached?
                                                        Database
        Request homepage
                           Server
Cache optimizations



                      April 2010 results..
Cache optimizations



                      April 2010 results..
Cache optimizations
There are two leading plugins:

1.   W3 Total Cache –   complex, but cover much everything!
                                 Including CDN, minifying, aggregation, and much more..


2.   WP Super Cache –   much simpler! Almost automatic..
                        Handle only caching.
CDN
Server




            CDN
            1s



3s
                 1s




     3.5s




                               8s



                          7s




                                          15s
                                    18s
Server




                     CDN
                     1s



            1.5s
js                        1s




              1.5s
      CDN
img                                     CDN



                                              1.5s

css
                                   2s




                                                            CDN




                                                                  1s
                                                     1.2s
CDN
1.   Use Google’s CDN for jQuery by “use-google-libraries” plugin

2. If you have serious traffic you may use enterprise CDN
HARDCODE!
1.   Use separate server for database server

2.   Use HyperDB for multiple database servers

3.   Use Memcache on separate server

4.   Use nginx

5.   Develop you plugin using the wordpress cache api!
MOST IMPORTANT!

NEVER EVER hack the core.
Questions?
Thank you!

More Related Content

What's hot (20)

PPTX
Web-Development-ppt (1).pptx
RaihanUddin57
 
PPTX
SEO Tutorial
RyzeUp Internet Marketing
 
PPTX
Bao cao powerpoint
boileanhngheo
 
PDF
Single Page Applications
Massimo Iacolare
 
PPTX
Dynamic web pages in java
vishal choudhary
 
PPT
Cookies and sessions
Lena Petsenchuk
 
PDF
[123doc] do-an-nguyen-li-may-co-cau-dong-chu-v
hoàn nguyễn
 
PDF
Responsive web design
Russ Weakley
 
PPTX
SEO & Javascript en 2021 : Challenger les acquis - Alexandre Pinat - SEO CAMP...
SEO CAMP
 
PPTX
Personalized Web Search
Thilina Thanthriwatta
 
PDF
كتاب تعلم Html5 و css3
Marketing matic Seo Brand
 
PPSX
Wordpress Development Introduction
MD. Anisur Rahman Bhuyan
 
PPT
Toll Management Systems
Sandy Bar
 
PDF
Wordpress
lexinamer
 
PDF
Tong quan do_s- d_dos- drdos
MasterCode.vn
 
PPTX
E-learning platform
Bharat Sabne
 
PPTX
Introduction to java Jasper Report with Server & iReport
Arif Hosain
 
PDF
파이썬을 활용한 웹 크롤링
HWANGTAEYONG
 
PPTX
FRONT-END WEB DEVELOPMENT-Intro.pptx
RajeevKumar304148
 
DOC
Đồ Án Tốt Nghiệp Thiết Kế Hệ Thống Phanh Chính Xe Con.doc
Nhận Viết Đề Tài Trọn Gói ZALO 0932091562
 
Web-Development-ppt (1).pptx
RaihanUddin57
 
Bao cao powerpoint
boileanhngheo
 
Single Page Applications
Massimo Iacolare
 
Dynamic web pages in java
vishal choudhary
 
Cookies and sessions
Lena Petsenchuk
 
[123doc] do-an-nguyen-li-may-co-cau-dong-chu-v
hoàn nguyễn
 
Responsive web design
Russ Weakley
 
SEO & Javascript en 2021 : Challenger les acquis - Alexandre Pinat - SEO CAMP...
SEO CAMP
 
Personalized Web Search
Thilina Thanthriwatta
 
كتاب تعلم Html5 و css3
Marketing matic Seo Brand
 
Wordpress Development Introduction
MD. Anisur Rahman Bhuyan
 
Toll Management Systems
Sandy Bar
 
Wordpress
lexinamer
 
Tong quan do_s- d_dos- drdos
MasterCode.vn
 
E-learning platform
Bharat Sabne
 
Introduction to java Jasper Report with Server & iReport
Arif Hosain
 
파이썬을 활용한 웹 크롤링
HWANGTAEYONG
 
FRONT-END WEB DEVELOPMENT-Intro.pptx
RajeevKumar304148
 
Đồ Án Tốt Nghiệp Thiết Kế Hệ Thống Phanh Chính Xe Con.doc
Nhận Viết Đề Tài Trọn Gói ZALO 0932091562
 

Similar to Wordpress optimization (20)

PDF
WordCamp RVA
codearachnid_test
 
PDF
WordCamp RVA 2011 - Performance & Tuning.pdf
codearachnid_test
 
PDF
WordCamp RVA 2011 - Performance & Tuning.pdf
codearachnid_test
 
PDF
WordCamp RVA
codearachnid_test
 
PDF
23 Ways To Speed Up WordPress
Zero Point Development
 
PPTX
I Can Haz More Performanz?
Andy Melichar
 
PDF
WordCamp RVA 2011 - Performance & Tuning
Timothy Wood
 
PPTX
Show Me The Cache!
Andy Melichar
 
PPTX
Optimizing Client-Side Performance
andrew4web
 
PDF
Let's speed it up a bit (AmsterdamPHP)
pascaldevink
 
PDF
Scaling Drupal: Not IF... HOW
Treehouse Agency
 
PPTX
Caching 101
Andy Melichar
 
PDF
WordPress Optimization Tips for Performance & Speed
Mike Hale
 
PDF
Optimizing Your Frontend Performance
Thomas Weinert
 
PDF
Optimizing WordPress for Performance - WordCamp Houston
Chris Olbekson
 
PDF
Optimizing wp
Mark Kelnar
 
PDF
Speed!
Rafael Corral
 
PDF
WordPress at Peak Performance (Radio Edit)
jaredwsmith
 
PPTX
Joomla! Performance on Steroids
SiteGround.com
 
PDF
Building faster websites: web performance with WordPress
Johannes Siipola
 
WordCamp RVA
codearachnid_test
 
WordCamp RVA 2011 - Performance & Tuning.pdf
codearachnid_test
 
WordCamp RVA 2011 - Performance & Tuning.pdf
codearachnid_test
 
WordCamp RVA
codearachnid_test
 
23 Ways To Speed Up WordPress
Zero Point Development
 
I Can Haz More Performanz?
Andy Melichar
 
WordCamp RVA 2011 - Performance & Tuning
Timothy Wood
 
Show Me The Cache!
Andy Melichar
 
Optimizing Client-Side Performance
andrew4web
 
Let's speed it up a bit (AmsterdamPHP)
pascaldevink
 
Scaling Drupal: Not IF... HOW
Treehouse Agency
 
Caching 101
Andy Melichar
 
WordPress Optimization Tips for Performance & Speed
Mike Hale
 
Optimizing Your Frontend Performance
Thomas Weinert
 
Optimizing WordPress for Performance - WordCamp Houston
Chris Olbekson
 
Optimizing wp
Mark Kelnar
 
WordPress at Peak Performance (Radio Edit)
jaredwsmith
 
Joomla! Performance on Steroids
SiteGround.com
 
Building faster websites: web performance with WordPress
Johannes Siipola
 
Ad

More from Almog Baku (7)

PDF
gRPC in Go
Almog Baku
 
PDF
Android is going to Go! Android and Golang
Almog Baku
 
PDF
Symfony2 form type
Almog Baku
 
PDF
Build REST APIs like a Jedi with Symfony2
Almog Baku
 
PDF
Build REST API clients for AngularJS
Almog Baku
 
PDF
Turbo theming: Introduction to Sass & Compass
Almog Baku
 
PDF
Drupal & javascript
Almog Baku
 
gRPC in Go
Almog Baku
 
Android is going to Go! Android and Golang
Almog Baku
 
Symfony2 form type
Almog Baku
 
Build REST APIs like a Jedi with Symfony2
Almog Baku
 
Build REST API clients for AngularJS
Almog Baku
 
Turbo theming: Introduction to Sass & Compass
Almog Baku
 
Drupal & javascript
Almog Baku
 
Ad

Recently uploaded (20)

PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
July Patch Tuesday
Ivanti
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 

Wordpress optimization

  • 1. Wordpress optimization { Speed up your wordpress
  • 5. What are we going to talk about? How to improve your wordpress performance. Speed up your website over than 700% faster!
  • 6. What are we going to talk about? 1. Huh? Performance? 2. How do I analyze my wordpress performance? 3. How to optimize!
  • 7. Hey.. Wait a second! Why should I do it? 1. Why not? 2. It will save you money! $$$$ 3. Make your users happy    4. Stay up under heavy load.. 5. Improve your google results!
  • 8. What does it mean “Performance”? Loading time is influenced by Hardware Services Requests Better hosting Configurations Caching Better hardware 3rd party serviced Right Development (varnish, cdn..,apc) Location
  • 9. What does it mean “requests”?
  • 14. What does it mean “Performance”? There are two states: Deploy Production 1 user = request at time multiple users = multiple request low hardware high hardware
  • 15. Analyzing tools There are few tools to analyze our website: 1. Feeling - the website went slow 2. Requests analyzing tools 3. By-subject analyzing tools 4. Wordpress analyzing
  • 17. Requests analyzing webpagetest.org Allowing test with different engines, and test within first view or repeated.. And much more
  • 23. Wordpress analyzing Wordpress plugin: P3 P3 is analyzing your plugins and provide an detailed analysis.
  • 26. How to optimize! The obvious: 1. Keep your wordpress updated! (core & plugins) 2. Deactivate unused plugins 3. Check about the plugin before install it. 4. Analyze your website.. Duh?
  • 27. Optimize server Use linux! • Configure the PHP as well - increase memory, timeout.. • Configure MySQL as well - some innodb issues may slow your website
  • 28. Optimize server • Use opcode accelerators - APC, Xcache, memcache • Varnish • Consider replacing apache2 with nginx
  • 29. Development optimizations Remember this? Because our browser have many requests, the loading time much longer. So, lets try to reduce the requests!
  • 30. Development optimizations Use sprites! Sprites make the browser load all the images at once and reducing new requests.
  • 31. Development optimizations Minify and aggregation 1. Aggregate all the resources(js, css, image->sprites) 2. Aggregation is reducing the requests 3. Minifying all the resources(html, css, js) 4. Minifying is speeding up your loading!
  • 32. Development optimizations Javascript 1. Make your ajax scripts cacheable 2. Reduce document ready events. 3. Reduce jQuery queries! – every query is scanning the whole webpage! use canonical finding instead: var $section = $("#section"); $section.find(".class").text("cool");
  • 33. Development optimizations Write semantic and valid code! 1. Separate code from style: markup shouldn't contains style elements. 2. Use CSS’s pseudo class “:before” and “:after” 3. Use CSS3 features(gradient, shadow…)
  • 34. Development optimizations Write semantic code by the html5 rules! <header role="banner"> <h1><a href="http://link.com/" title="Website" rel="home">Logo</a></h1> <nav role="navigation"><ul> <li class="current"><a href="http://link.com/" title="Home">Home</a></li> <li class="page_item"><a href="http://link.com/About">About</a></li> </ul></nav> </header> <section id="content"> <article id="post-19" class="post-19 post type-post"> … </article> <article id="post-21" class="post-21 post type-post"> … </article> </section> <footer> … </footer>
  • 35. Development optimizations Images 1. DO NOT scale images with CSS! 2. Save images for web 3. You may use www.smush.it or WP-Smush.it plugin
  • 36. Development optimizations Set properly headers for browser-caching Set expire headers, e-tags, etc.. GZip everything! Compress your source files(css, js, html) with gzip.. It will accelerate your loading time.
  • 37. What is cache? Database Web Server This is really long way.. And actually.. It’s the same result!
  • 38. What is cache? Cache is the way to access distant data faster by storing it locally.
  • 39. Server-side cache Every request for each page is making our website rebuild this page using the database our theme, and much more.. Database Request homepage Server But, actually- our page hasn’t been changed.
  • 40. Cache optimizations So.. Why haven’t we cache this pages?! Cached page is page cached? Database Request homepage Server
  • 41. Cache optimizations April 2010 results..
  • 42. Cache optimizations April 2010 results..
  • 43. Cache optimizations There are two leading plugins: 1. W3 Total Cache – complex, but cover much everything! Including CDN, minifying, aggregation, and much more.. 2. WP Super Cache – much simpler! Almost automatic.. Handle only caching.
  • 44. CDN
  • 45. Server CDN 1s 3s 1s 3.5s 8s 7s 15s 18s
  • 46. Server CDN 1s 1.5s js 1s 1.5s CDN img CDN 1.5s css 2s CDN 1s 1.2s
  • 47. CDN 1. Use Google’s CDN for jQuery by “use-google-libraries” plugin 2. If you have serious traffic you may use enterprise CDN
  • 48. HARDCODE! 1. Use separate server for database server 2. Use HyperDB for multiple database servers 3. Use Memcache on separate server 4. Use nginx 5. Develop you plugin using the wordpress cache api!
  • 49. MOST IMPORTANT! NEVER EVER hack the core.