SlideShare una empresa de Scribd logo
1 de 30
Optimizing &
Speeding Up a
WordPress Site
Vinay Paudel
  tweet @paudelvinay
Email: paudelvinay@gmail.com
Blog : http://vinayp.com.np
Wordpress Structure
Facts/Results

• 80-90% of the end-user response time is spent
  downloading all the components in the page:
  images, stylesheets, scripts, Flash, etc
• Site having loading time more than 5 minutes
  loose 50% visitors.
• Less Http Request, More fastest the site
Facts/Results
Facts/Results
Optimize theme

• well-coded theme.
• Find any unclose tag on theme
• Check malicious/unwanted code
  – Theme Authenticity Checker (TAC)
    (http://wordpress.org/extend/plugins/tac/)
  – Exploit Scanner
    (http://wordpress.org/extend/plugins/exploit-
    scanner/)
Optimize theme
• Images
  – Replace some of the images with text
  – Use GIF, PNG and JPEG format
  – Try WP-Smush
Optimize theme

• Use CSS Sprites
Optimize theme

• Combine minify and compress HTML, JS and
  CSS
  – Use compressor tools
  – Use Plugins
     • WP Minify (http://wordpress.org/extend/plugins/wp-
       minify/ )
     • Better WordPress Minify
       (http://wordpress.org/extend/plugins/bwp-minify/)


• Put CSS on header and JavaScript on footer
Optimize theme
• Non Persistent caching
Optimize theme
• Persistent caching
Optimize/Speed up Plugins

• Be selective on plugins choice.
Optimize/Speed up Plugins
Optimize/Speed up Plugins

• Deactivate and delete unnecessary plugins
Optimize/Speed up Plugins
Optimize/Speed up Plugins

• Check plugins performance
  – P3 (Plugin Performance Profiler)
    (http://wordpress.org/extend/plugins/p3-
    profiler/)
Optimize/Speed up Plugins
Cache Using Plugins
• Caching Plugins
  – W3 Total Cache
    (http://wordpress.org/extend/plugins/w3-total-
    cache/)
  – WP Super Cache
    (http://wordpress.org/extend/plugins/wp-super-
    cache/)
Apply CDN using Plugins

• CDN (content delivery Network).
  – W3 Total Cache
  – image files, js files, css files, uploaded files
Optimize using wp-config

• define('WP_CACHE', true);
• define('WP_POST_REVISIONS', false);
  OR define('WP_POST_REVISIONS', 10);
• define('EMPTY_TRASH_DAYS', 30);
• define(‘WP_HOME’,‘http://vinayp.com.np’);
• define(‘WP_SITEURL’,‘http://vinayp.com.np
  ’);
• define('WP_ALLOW_REPAIR', true);
Optimize using htaccess

• Gzip File Compression
<ifModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x
  ml application/xhtml+xml text/css text/javascript application/javascript applic
  ation/x-javascript

</ifModule>
• Disable Etags
  Header unset Etag

  FileETag None
Optimize using htaccess

• Use Browser Caching
 # BEGIN Expire headers
 <ifModule mod_expires.c>
 ExpiresActive On
 ExpiresDefault "access plus 5 seconds"
 ExpiresByType image/x-icon "access plus 2592000 seconds"
 ExpiresByType image/jpeg "access plus 2592000 seconds"
 ExpiresByType image/png "access plus 2592000 seconds"
 ExpiresByType image/gif "access plus 2592000 seconds"
 ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
 ExpiresByType text/css "access plus 604800 seconds"
 ExpiresByType text/javascript "access plus 216000 seconds"
 ExpiresByType application/javascript "access plus 216000 seconds"
 ExpiresByType application/x-javascript "access plus 216000 seconds"
 ExpiresByType text/html "access plus 600 seconds"
 ExpiresByType application/xhtml+xml "access plus 600 seconds"
 </ifModule>
 # END Expire headers
Optimize using Server
• Server Caching
  – opcode cache like Alternative PHP Cache
    (APC), XCache, Memcache, eAccelerator, etc
Optimize Database

• Try phpMyAdmin
Optimize Database
• Try plugin to optimize
  – WP-Optimize
   (http://wordpress.org/extend/plugins/wp-optimize)
  – Optimize DB
   (http://yoast.com/wordpress/optimize-db/)
• Automatic Database Repair
  – {$your_site}/wp-admin/maint/repair.php
• Don’t backup your database during
  high traffic time
• Use Following Queries on Footer
Optimize Database
• Cache Your Database
• Delete Spam Comments
References
• http://codex.wordpress.org/WordPress_Optimiza
  tion
• http://codex.wordpress.org/WordPress_Optimiza
  tion/Caching
• http://wp.tutsplus.com/tutorials/hosting/optimiz
  ing-wordpress-loading-speed-with-header-php-
  htaccess/
• http://wp.smashingmagazine.com/2012/06/26/d
  iy-caching-methods-wordpress/
• http://sixrevisions.com/css/css-sprites-site-
  speed/
Thank You
Questions?

Más contenido relacionado

La actualidad más candente

Optimizing WordPress - WordPress SF Meetup April 2012
Optimizing WordPress -  WordPress SF Meetup April 2012Optimizing WordPress -  WordPress SF Meetup April 2012
Optimizing WordPress - WordPress SF Meetup April 2012Ben Metcalfe
 
High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010Barry Abrahamson
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPressBarry Abrahamson
 
ServerBeach and WordPress BlogWorldExpo 2007
ServerBeach and WordPress BlogWorldExpo 2007ServerBeach and WordPress BlogWorldExpo 2007
ServerBeach and WordPress BlogWorldExpo 2007Barry Abrahamson
 
Speed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress HorsepowerSpeed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress HorsepowerRoss Johnson
 
Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)WordCamp Cape Town
 
WordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, Pakistan
WordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, PakistanWordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, Pakistan
WordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, PakistanFahad Mahmood
 
High Performance WordPress II
High Performance WordPress IIHigh Performance WordPress II
High Performance WordPress IIBarry Abrahamson
 
Minimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tipsMinimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tipsCgColors
 
Sofia WP User Group Presentation
Sofia WP User Group PresentationSofia WP User Group Presentation
Sofia WP User Group PresentationDaniel Kanchev
 
5 Ways to Optimize Your WordPress Site
5 Ways to Optimize Your WordPress Site5 Ways to Optimize Your WordPress Site
5 Ways to Optimize Your WordPress SiteMarkupBox
 
Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!WordCamp Cape Town
 
Speed up with hiphop php 2014 01-22
Speed up with hiphop php 2014 01-22Speed up with hiphop php 2014 01-22
Speed up with hiphop php 2014 01-22Võ Duy Tuấn
 
WordPress Speed Optimization
WordPress Speed OptimizationWordPress Speed Optimization
WordPress Speed OptimizationDinesh Jain
 
WordPress Performance 101
WordPress Performance 101WordPress Performance 101
WordPress Performance 101Bora Yalcin
 
Caching strategy and apc
Caching strategy and apcCaching strategy and apc
Caching strategy and apcVõ Duy Tuấn
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPressvnsavage
 

La actualidad más candente (20)

Ui perf
Ui perfUi perf
Ui perf
 
Optimizing WordPress - WordPress SF Meetup April 2012
Optimizing WordPress -  WordPress SF Meetup April 2012Optimizing WordPress -  WordPress SF Meetup April 2012
Optimizing WordPress - WordPress SF Meetup April 2012
 
High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010High Performance WordPress - WordCamp Jerusalem 2010
High Performance WordPress - WordCamp Jerusalem 2010
 
23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress23 Ways To Speed Up WordPress
23 Ways To Speed Up WordPress
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPress
 
ServerBeach and WordPress BlogWorldExpo 2007
ServerBeach and WordPress BlogWorldExpo 2007ServerBeach and WordPress BlogWorldExpo 2007
ServerBeach and WordPress BlogWorldExpo 2007
 
Ithemes presentation
Ithemes presentationIthemes presentation
Ithemes presentation
 
Speed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress HorsepowerSpeed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress Horsepower
 
Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)
 
WordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, Pakistan
WordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, PakistanWordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, Pakistan
WordPress Meetup 17th Oct, 2015 at TechHub (ASTP) Lahore, Pakistan
 
High Performance WordPress II
High Performance WordPress IIHigh Performance WordPress II
High Performance WordPress II
 
Minimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tipsMinimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tips
 
Sofia WP User Group Presentation
Sofia WP User Group PresentationSofia WP User Group Presentation
Sofia WP User Group Presentation
 
5 Ways to Optimize Your WordPress Site
5 Ways to Optimize Your WordPress Site5 Ways to Optimize Your WordPress Site
5 Ways to Optimize Your WordPress Site
 
Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!
 
Speed up with hiphop php 2014 01-22
Speed up with hiphop php 2014 01-22Speed up with hiphop php 2014 01-22
Speed up with hiphop php 2014 01-22
 
WordPress Speed Optimization
WordPress Speed OptimizationWordPress Speed Optimization
WordPress Speed Optimization
 
WordPress Performance 101
WordPress Performance 101WordPress Performance 101
WordPress Performance 101
 
Caching strategy and apc
Caching strategy and apcCaching strategy and apc
Caching strategy and apc
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPress
 

Similar a Wordpress optimization

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 sitewpnepal
 
Harder, Better, Faster, Stronger
Harder, Better, Faster, StrongerHarder, Better, Faster, Stronger
Harder, Better, Faster, StrongerDavid Engel
 
High performance website
High performance websiteHigh performance website
High performance websiteChamnap Chhorn
 
WordPress Theme and Plugin Optimization - WordPress Arvika March '14
WordPress Theme and Plugin Optimization - WordPress Arvika March '14WordPress Theme and Plugin Optimization - WordPress Arvika March '14
WordPress Theme and Plugin Optimization - WordPress Arvika March '14slobodanmanic
 
Going on an HTTP Diet: Front-End Web Performance
Going on an HTTP Diet: Front-End Web PerformanceGoing on an HTTP Diet: Front-End Web Performance
Going on an HTTP Diet: Front-End Web PerformanceAdam Norwood
 
The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013Bastian Grimm
 
Presentation on Instant page speed optimization
Presentation on Instant page speed optimizationPresentation on Instant page speed optimization
Presentation on Instant page speed optimizationSanjeev Kumar Jaiswal
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Think Media Inc.
 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereStephen Bell
 
WCBos13 intermediate workshop
WCBos13 intermediate workshopWCBos13 intermediate workshop
WCBos13 intermediate workshopBoston WordPress
 
Heavy Web Optimization: Frontend
Heavy Web Optimization: FrontendHeavy Web Optimization: Frontend
Heavy Web Optimization: FrontendVõ Duy Tuấn
 
WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019Anam Ahmed
 
Analysis of Google Page Speed Insight
Analysis of Google Page Speed InsightAnalysis of Google Page Speed Insight
Analysis of Google Page Speed InsightSarvesh Sonawane
 
WordPress Security
WordPress SecurityWordPress Security
WordPress SecurityIvan Storck
 
A11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeA11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeTomAuger
 

Similar a Wordpress optimization (20)

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
 
Harder, Better, Faster, Stronger
Harder, Better, Faster, StrongerHarder, Better, Faster, Stronger
Harder, Better, Faster, Stronger
 
High performance website
High performance websiteHigh performance website
High performance website
 
WordPress Theme and Plugin Optimization - WordPress Arvika March '14
WordPress Theme and Plugin Optimization - WordPress Arvika March '14WordPress Theme and Plugin Optimization - WordPress Arvika March '14
WordPress Theme and Plugin Optimization - WordPress Arvika March '14
 
Optimize wordpress
Optimize wordpressOptimize wordpress
Optimize wordpress
 
performance.ppt
performance.pptperformance.ppt
performance.ppt
 
Going on an HTTP Diet: Front-End Web Performance
Going on an HTTP Diet: Front-End Web PerformanceGoing on an HTTP Diet: Front-End Web Performance
Going on an HTTP Diet: Front-End Web Performance
 
The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013
 
Presentation on Instant page speed optimization
Presentation on Instant page speed optimizationPresentation on Instant page speed optimization
Presentation on Instant page speed optimization
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013
 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get there
 
WCBos13 intermediate workshop
WCBos13 intermediate workshopWCBos13 intermediate workshop
WCBos13 intermediate workshop
 
Heavy Web Optimization: Frontend
Heavy Web Optimization: FrontendHeavy Web Optimization: Frontend
Heavy Web Optimization: Frontend
 
WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019
 
Analysis of Google Page Speed Insight
Analysis of Google Page Speed InsightAnalysis of Google Page Speed Insight
Analysis of Google Page Speed Insight
 
WordPress Security
WordPress SecurityWordPress Security
WordPress Security
 
A11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeA11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress Theme
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
 

Wordpress optimization

  • 1.
  • 2. Optimizing & Speeding Up a WordPress Site
  • 3. Vinay Paudel tweet @paudelvinay Email: paudelvinay@gmail.com Blog : http://vinayp.com.np
  • 5. Facts/Results • 80-90% of the end-user response time is spent downloading all the components in the page: images, stylesheets, scripts, Flash, etc • Site having loading time more than 5 minutes loose 50% visitors. • Less Http Request, More fastest the site
  • 8. Optimize theme • well-coded theme. • Find any unclose tag on theme • Check malicious/unwanted code – Theme Authenticity Checker (TAC) (http://wordpress.org/extend/plugins/tac/) – Exploit Scanner (http://wordpress.org/extend/plugins/exploit- scanner/)
  • 9. Optimize theme • Images – Replace some of the images with text – Use GIF, PNG and JPEG format – Try WP-Smush
  • 10. Optimize theme • Use CSS Sprites
  • 11. Optimize theme • Combine minify and compress HTML, JS and CSS – Use compressor tools – Use Plugins • WP Minify (http://wordpress.org/extend/plugins/wp- minify/ ) • Better WordPress Minify (http://wordpress.org/extend/plugins/bwp-minify/) • Put CSS on header and JavaScript on footer
  • 12. Optimize theme • Non Persistent caching
  • 14. Optimize/Speed up Plugins • Be selective on plugins choice.
  • 16. Optimize/Speed up Plugins • Deactivate and delete unnecessary plugins
  • 18. Optimize/Speed up Plugins • Check plugins performance – P3 (Plugin Performance Profiler) (http://wordpress.org/extend/plugins/p3- profiler/)
  • 20. Cache Using Plugins • Caching Plugins – W3 Total Cache (http://wordpress.org/extend/plugins/w3-total- cache/) – WP Super Cache (http://wordpress.org/extend/plugins/wp-super- cache/)
  • 21. Apply CDN using Plugins • CDN (content delivery Network). – W3 Total Cache – image files, js files, css files, uploaded files
  • 22. Optimize using wp-config • define('WP_CACHE', true); • define('WP_POST_REVISIONS', false); OR define('WP_POST_REVISIONS', 10); • define('EMPTY_TRASH_DAYS', 30); • define(‘WP_HOME’,‘http://vinayp.com.np’); • define(‘WP_SITEURL’,‘http://vinayp.com.np ’); • define('WP_ALLOW_REPAIR', true);
  • 23. Optimize using htaccess • Gzip File Compression <ifModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x ml application/xhtml+xml text/css text/javascript application/javascript applic ation/x-javascript </ifModule> • Disable Etags Header unset Etag FileETag None
  • 24. Optimize using htaccess • Use Browser Caching # BEGIN Expire headers <ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 5 seconds" ExpiresByType image/x-icon "access plus 2592000 seconds" ExpiresByType image/jpeg "access plus 2592000 seconds" ExpiresByType image/png "access plus 2592000 seconds" ExpiresByType image/gif "access plus 2592000 seconds" ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" ExpiresByType text/css "access plus 604800 seconds" ExpiresByType text/javascript "access plus 216000 seconds" ExpiresByType application/javascript "access plus 216000 seconds" ExpiresByType application/x-javascript "access plus 216000 seconds" ExpiresByType text/html "access plus 600 seconds" ExpiresByType application/xhtml+xml "access plus 600 seconds" </ifModule> # END Expire headers
  • 25. Optimize using Server • Server Caching – opcode cache like Alternative PHP Cache (APC), XCache, Memcache, eAccelerator, etc
  • 27. Optimize Database • Try plugin to optimize – WP-Optimize (http://wordpress.org/extend/plugins/wp-optimize) – Optimize DB (http://yoast.com/wordpress/optimize-db/) • Automatic Database Repair – {$your_site}/wp-admin/maint/repair.php • Don’t backup your database during high traffic time • Use Following Queries on Footer
  • 28. Optimize Database • Cache Your Database • Delete Spam Comments
  • 29. References • http://codex.wordpress.org/WordPress_Optimiza tion • http://codex.wordpress.org/WordPress_Optimiza tion/Caching • http://wp.tutsplus.com/tutorials/hosting/optimiz ing-wordpress-loading-speed-with-header-php- htaccess/ • http://wp.smashingmagazine.com/2012/06/26/d iy-caching-methods-wordpress/ • http://sixrevisions.com/css/css-sprites-site- speed/

Notas del editor

  1. wp_cache_add( $key, $data, $group, $expire )wp_cache_set( $key, $data, $group, $expire )wp_cache_get( $key, $group )