SlideShare uma empresa Scribd logo
1 de 51
Baixar para ler offline
Wordpress optimization
    { Speed up your wordpress
Who dafuq are you?
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”?
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!
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!

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Website
WebsiteWebsite
Website
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
 
CSS
CSSCSS
CSS
 
Website performance optimization
Website performance optimizationWebsite performance optimization
Website performance optimization
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
1. introduction to html5
1. introduction to html51. introduction to html5
1. introduction to html5
 
Presentation on html, css
Presentation on html, cssPresentation on html, css
Presentation on html, css
 
ASP.NET MVC Performance
ASP.NET MVC PerformanceASP.NET MVC Performance
ASP.NET MVC Performance
 
Adobe Flash History and Basics
Adobe Flash History and BasicsAdobe Flash History and Basics
Adobe Flash History and Basics
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
Html ppt
Html pptHtml ppt
Html ppt
 
Introduction to HTML
Introduction to HTML Introduction to HTML
Introduction to HTML
 
Introduction to Basic Concepts in Web
Introduction to Basic Concepts in WebIntroduction to Basic Concepts in Web
Introduction to Basic Concepts in Web
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Etiquetas HTML
Etiquetas HTMLEtiquetas HTML
Etiquetas HTML
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 

Semelhante a Wordpress optimization

How do you speed up your (Wordpress) website?
How do you speed up your (Wordpress) website?How do you speed up your (Wordpress) website?
How do you speed up your (Wordpress) website?Aranere
 
Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Jess Coburn
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web CacheProdigyView
 
Optimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp HoustonOptimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp HoustonChris Olbekson
 
Analysis of Google Page Speed Insight
Analysis of Google Page Speed InsightAnalysis of Google Page Speed Insight
Analysis of Google Page Speed InsightSarvesh Sonawane
 
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdfGuide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdfpersuebusiness
 
Turbocharging php applications with zend server (workshop)
Turbocharging php applications with zend server (workshop)Turbocharging php applications with zend server (workshop)
Turbocharging php applications with zend server (workshop)Eric Ritchie
 
Optimizing Your Frontend Performance
Optimizing Your Frontend PerformanceOptimizing Your Frontend Performance
Optimizing Your Frontend PerformanceThomas Weinert
 
Speed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
Speed Up WordPress Websites - Part 1 - WordPress Cairo MeetupSpeed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
Speed Up WordPress Websites - Part 1 - WordPress Cairo MeetupAhmed Mohammed Nagdy
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingAshok Modi
 
Tips for a Faster Website
Tips for a Faster WebsiteTips for a Faster Website
Tips for a Faster WebsiteRayed Alrashed
 
Joomla! Performance on Steroids
Joomla! Performance on SteroidsJoomla! Performance on Steroids
Joomla! Performance on SteroidsSiteGround.com
 
My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013hernanibf
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax ApplicationsSiarhei Barysiuk
 
CTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should KnowCTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should KnowSpiffy
 
Optimizing the performance of WordPress
Optimizing the performance of WordPressOptimizing the performance of WordPress
Optimizing the performance of WordPressJosh Highland Giese
 

Semelhante a Wordpress optimization (20)

23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress
 
How do you speed up your (Wordpress) website?
How do you speed up your (Wordpress) website?How do you speed up your (Wordpress) website?
How do you speed up your (Wordpress) website?
 
Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Optimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp HoustonOptimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp Houston
 
Speed!
Speed!Speed!
Speed!
 
Analysis of Google Page Speed Insight
Analysis of Google Page Speed InsightAnalysis of Google Page Speed Insight
Analysis of Google Page Speed Insight
 
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdfGuide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
Guide 4 - How To Dramatically Speed Up Your Website Using A Caching Plugin.pdf
 
Turbocharging php applications with zend server (workshop)
Turbocharging php applications with zend server (workshop)Turbocharging php applications with zend server (workshop)
Turbocharging php applications with zend server (workshop)
 
Optimizing Your Frontend Performance
Optimizing Your Frontend PerformanceOptimizing Your Frontend Performance
Optimizing Your Frontend Performance
 
Speed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
Speed Up WordPress Websites - Part 1 - WordPress Cairo MeetupSpeed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
Speed Up WordPress Websites - Part 1 - WordPress Cairo Meetup
 
A faster web
A faster webA faster web
A faster web
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizing
 
Tips for a Faster Website
Tips for a Faster WebsiteTips for a Faster Website
Tips for a Faster Website
 
Joomla! Performance on Steroids
Joomla! Performance on SteroidsJoomla! Performance on Steroids
Joomla! Performance on Steroids
 
Caching 101
Caching 101Caching 101
Caching 101
 
My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax Applications
 
CTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should KnowCTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should Know
 
Optimizing the performance of WordPress
Optimizing the performance of WordPressOptimizing the performance of WordPress
Optimizing the performance of WordPress
 

Mais de Almog Baku

Android is going to Go! Android and Golang
Android is going to Go! Android and GolangAndroid is going to Go! Android and Golang
Android is going to Go! Android and GolangAlmog Baku
 
Symfony2 form type
Symfony2 form typeSymfony2 form type
Symfony2 form typeAlmog Baku
 
Build REST APIs like a Jedi with Symfony2
Build REST APIs like a Jedi with Symfony2Build REST APIs like a Jedi with Symfony2
Build REST APIs like a Jedi with Symfony2Almog Baku
 
Build REST API clients for AngularJS
Build REST API clients for AngularJSBuild REST API clients for AngularJS
Build REST API clients for AngularJSAlmog Baku
 
Turbo theming: Introduction to Sass & Compass
Turbo theming: Introduction to Sass & CompassTurbo theming: Introduction to Sass & Compass
Turbo theming: Introduction to Sass & CompassAlmog Baku
 
Drupal & javascript
Drupal & javascriptDrupal & javascript
Drupal & javascriptAlmog Baku
 

Mais de Almog Baku (7)

gRPC in Go
gRPC in GogRPC in Go
gRPC in Go
 
Android is going to Go! Android and Golang
Android is going to Go! Android and GolangAndroid is going to Go! Android and Golang
Android is going to Go! Android and Golang
 
Symfony2 form type
Symfony2 form typeSymfony2 form type
Symfony2 form type
 
Build REST APIs like a Jedi with Symfony2
Build REST APIs like a Jedi with Symfony2Build REST APIs like a Jedi with Symfony2
Build REST APIs like a Jedi with Symfony2
 
Build REST API clients for AngularJS
Build REST API clients for AngularJSBuild REST API clients for AngularJS
Build REST API clients for AngularJS
 
Turbo theming: Introduction to Sass & Compass
Turbo theming: Introduction to Sass & CompassTurbo theming: Introduction to Sass & Compass
Turbo theming: Introduction to Sass & Compass
 
Drupal & javascript
Drupal & javascriptDrupal & javascript
Drupal & javascript
 

Último

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 

Último (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

Wordpress optimization

  • 1. Wordpress optimization { Speed up your wordpress
  • 3.
  • 4.
  • 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”?
  • 10.
  • 11.
  • 12.
  • 13.
  • 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.
  • 25.
  • 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.