Top Banner
How to Boost the Performance of your WordPress-Powered Websites PRATIK JAGDISHWALA
30

How to Boost the performance of your Wordpress powered websites

Apr 14, 2017

Download

Internet

metallica1025
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How to Boost the performance of your Wordpress powered websites

How to Boost the Performance of your WordPress-Powered Websites

PRATIK JAGDISHWALA

Page 2: How to Boost the performance of your Wordpress powered websites

ABOUT ME

Page 3: How to Boost the performance of your Wordpress powered websites

Why?

Page 4: How to Boost the performance of your Wordpress powered websites

Why?●Very popular

●Easy to install, customize

●Simple to maintain

●Amazing community and commercial support

●User friendly

Page 5: How to Boost the performance of your Wordpress powered websites

Issues?

Page 6: How to Boost the performance of your Wordpress powered websites

Issues?●Malware

●Vulnerabilities

●Bad practices

●Un-optimized/Un-secure plugins/themes

●Too many addons

●Lack of long term maintenance strategy

●Resource hungry

●Provider Limitations

Page 7: How to Boost the performance of your Wordpress powered websites

● 1 Second Delay in Page load leads to

○ 11% Drop in pageviews

○ 16% Decrease in customer satisfaction

○ 7% Loss in Conversion

●83% people expect a web page to load under 3 secs

●40% will abandon a web page if it takes more than 3 secs to load

●73% of mobile users have encountered a slow website

●Decrease in load times from 8 to 2 secs increase conversions by 74%

●73% customers won’t return to a website if it doesn’t load properly on their mobile device

Slow Site Problems

Page 8: How to Boost the performance of your Wordpress powered websites

Solutions

Page 9: How to Boost the performance of your Wordpress powered websites

Solutions●Adding more resources?

●VPS/Dedicated/Cloud?

●How much is too much?

●Where do you stop?

●What's the actual solution?

●Optimizations?

Page 10: How to Boost the performance of your Wordpress powered websites

Optimizations

Page 11: How to Boost the performance of your Wordpress powered websites

●Analyze your website

○ Firebug (Mozilla)

○ PageSpeed

○ Yslow

○ Gtmetrix.com (Combination of Pagespeed, Yslow, etc)

Optimizations

Page 12: How to Boost the performance of your Wordpress powered websites

Optimizations - Simple

Page 13: How to Boost the performance of your Wordpress powered websites

● Update WP/Plugins/Themes to the latest version

●Enable auto updates

● Disable unnecessary plugins

●Limit Web Crawlers and Bots

●Limit WP Crons (Use cPanel or server side crons)

●Use reliable theme providers

●Avoid/Limit external scripts

●Use smart placement of scripts (Use footer to load scripts)

●Clean up unused categories, tags, spam comments, etc.

Optimizations - Simple

Page 14: How to Boost the performance of your Wordpress powered websites

●Use web optimized images (WP Smush)

●Use JPG instead of PNG

●No of elements < 30-50

●Page size guide

○ Excellent: Under 500 KB

○ Good: Under 1 MB

○ Acceptable: 1-3 MB

○ Needs Improvement: Above 3 MB

Optimizations - Simple

Page 15: How to Boost the performance of your Wordpress powered websites

●Use Domain Sharding

●Use CSS Sprites

●Customize wp-config

○ Autosave intervals

○ Limit post revisions

○ wp_home

○ wp_siteurl

○ wp_allow_repair

●Hard Code template and stylesheet paths

Optimizations - Advanced

Page 16: How to Boost the performance of your Wordpress powered websites

●WP-Sweep Plugin

○ Cleanup unused, orphaned and duplicate data

●WP-Optimize

●Anti Spambot plugin

●Expires and Etag for browsers

●Gzip on server

●MySQL caching

●Minify CSS, Javascripts

Optimizations - Advanced

Page 17: How to Boost the performance of your Wordpress powered websites

●WP Super Cache or W3 Total Cache

●CDN’s

●Database caching

○ Memcached, Redis (DB caching)

●Web caching

○ Varnish caching

Optimizations - Advanced

Page 18: How to Boost the performance of your Wordpress powered websites

●Resource Intensive Plugins

○ Some SEO plugins

○ Some image galleries and media players

○ Web based backup plugins

○ Web based crons

●Pirated plugins/themes

●Scripts/plugins/themes from unknown/unreliable sources

Optimizations - To Avoid

Page 19: How to Boost the performance of your Wordpress powered websites

Case Study

Page 20: How to Boost the performance of your Wordpress powered websites

Case Study● A simple blog set up on shared hosting in GPX Mumbai

●Multidomain Linux Hosting with cPanel

●Jmeter automated tests from Mumbai India

○ 1000 page requests

○ 5 concurrent threads

○ Every user requesting the page 200 times

●Page contains Multiple Images, Content, Comments

●Page size 354 KB

Page 21: How to Boost the performance of your Wordpress powered websites

Pre Optimization

Page 22: How to Boost the performance of your Wordpress powered websites

Pre-optimization setup●Wordpress 4.7.2

●Plugins

○ Fakerpress

○ Akismet

○ Hello Dolly

●1000 requests with 5 thread and 200 request per thread

●2000 requests with 10 thread and 200 request per thread

Page 23: How to Boost the performance of your Wordpress powered websites

Pre-optimization setup

Page 24: How to Boost the performance of your Wordpress powered websites

Post Optimization (Phase 1)

Page 25: How to Boost the performance of your Wordpress powered websites

Post-optimization (Phase 1)●Wordpress 4.7.2

●Plugins

○ Fakerpress

○ Akismet

○ W3 Total Cache

○ WP Smush

○ WP Optimize

●1000 requests with 5 thread and 200 request per thread

●2000 requests with 10 thread and 200 request per thread

Page 26: How to Boost the performance of your Wordpress powered websites

Post-optimization (Phase 1)

Page 27: How to Boost the performance of your Wordpress powered websites

Post Optimization (Phase 2)

Page 28: How to Boost the performance of your Wordpress powered websites

Post-optimization (Phase 2)●Wordpress 4.7.2

●Plugins

○ Fakerpress

○ Akismet

○ W3 Total Cache

○ WP Smush

○ WP Optimize

●Enabled Varnish caching on the package

●2000 requests with 10 thread and 200 request per thread

Page 29: How to Boost the performance of your Wordpress powered websites

Post-optimization (Phase 2)

Page 30: How to Boost the performance of your Wordpress powered websites

Thank you!

[email protected]://twitter.com/pjagdishwala