Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Debugging WordPress Performance.
Using EasyEngine.
by Rahul Bansal (@rahul286)
from @rtCamp
Parts
1. Understanding the problem
2. Live Demo
3. Using EasyEngine
2
Part-1
Understanding the problem
Let's imagine!
WordPress is a car!
And... hosting is road!
This is what you want!
But!!!
Shared hosting!
Cheap hosting!
Overloaded car!
So The Problems are...
1. Roads... i.e. Hosting/Server
2. Cars...... i.e. WordPress - Themes/Plugins
3. Both!
12
Fixing Hosting
problem!
Fixing Server Problem!
ee site create example.com --wp
But there is no easy fix for overloaded site!
Because...
•  Not every site can be fully cached
•  e.g. membership sites
•  e.g. e-commerce sites
•  Even when full-page ...
So we need to take the harder path...
1. Trial and error method
•  theme/plugin conflicts may get skipped
•  inconvenience...
Part 2
Live Demo!
What's included in demo
•  Live WordPress site running bad codes
•  Bad codes' impact analysis using debugging tools
•  Fi...
Part 3
Using EasyEngine
EasyEngine Debug Command
MySQL Slow Query Log
ee debug --mysql --import-slow-log
PHP XDebug Profiling
ee debug example.com...
Install Web-based Tools
Start WordPress debug log
ee stack install --admin
Installs webgrind, anemometer and other tools
22
PHP Xdebug Browser Addon
Chrome Firefox Safari Opera
23
That's it!
Bring it on!
The End!Thanks :-)
Q&A
Links
•  View Slides
•  Slide source-code on github
•  PHP Xdebug
•  PHP Webgrind setup
•  EasyEngine
•  Anemometer (for M...
Credits!
•  Shower HTML presentation engine
•  Highway image by Alan Stark
•  "Long Drive Car" by Mariordo
•  Traffic Jam ...
Upcoming SlideShare
Loading in …5
×

Debugging WordPress Performance using EasyEngine

805 views

Published on

WordPress has thousands of themes and plugins freely available. Not all of them are coded beautifully or tested with big WordPress sites. When a bad piece of code goes live on a WordPress site, it can slow down site and even crash server in some cases.

Goal of this session is to show how EasyEngine and other tools/techniques can be used to debug performance bottleneck on a WordPress site.

This will make life of developers and system admins easy.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Debugging WordPress Performance using EasyEngine

  1. 1. Debugging WordPress Performance. Using EasyEngine. by Rahul Bansal (@rahul286) from @rtCamp
  2. 2. Parts 1. Understanding the problem 2. Live Demo 3. Using EasyEngine 2
  3. 3. Part-1 Understanding the problem
  4. 4. Let's imagine!
  5. 5. WordPress is a car!
  6. 6. And... hosting is road!
  7. 7. This is what you want!
  8. 8. But!!!
  9. 9. Shared hosting!
  10. 10. Cheap hosting!
  11. 11. Overloaded car!
  12. 12. So The Problems are... 1. Roads... i.e. Hosting/Server 2. Cars...... i.e. WordPress - Themes/Plugins 3. Both! 12
  13. 13. Fixing Hosting problem!
  14. 14. Fixing Server Problem! ee site create example.com --wp
  15. 15. But there is no easy fix for overloaded site!
  16. 16. Because... •  Not every site can be fully cached •  e.g. membership sites •  e.g. e-commerce sites •  Even when full-page cache is present... •  a missed request will take longer or even fail •  There is always /wp-adminthat cannot be cached 16
  17. 17. So we need to take the harder path... 1. Trial and error method •  theme/plugin conflicts may get skipped •  inconvenience to the users if site is live 2. Debug like a hero! 17
  18. 18. Part 2 Live Demo!
  19. 19. What's included in demo •  Live WordPress site running bad codes •  Bad codes' impact analysis using debugging tools •  Fixing bad codes •  Confirming performance using debugging tools 19
  20. 20. Part 3 Using EasyEngine
  21. 21. EasyEngine Debug Command MySQL Slow Query Log ee debug --mysql --import-slow-log PHP XDebug Profiling ee debug example.com --php WordPress Debug Log ee debug example.com --wp 21
  22. 22. Install Web-based Tools Start WordPress debug log ee stack install --admin Installs webgrind, anemometer and other tools 22
  23. 23. PHP Xdebug Browser Addon Chrome Firefox Safari Opera 23
  24. 24. That's it!
  25. 25. Bring it on!
  26. 26. The End!Thanks :-) Q&A
  27. 27. Links •  View Slides •  Slide source-code on github •  PHP Xdebug •  PHP Webgrind setup •  EasyEngine •  Anemometer (for MySQL) setup •  rtCamp Tutorials 27
  28. 28. Credits! •  Shower HTML presentation engine •  Highway image by Alan Stark •  "Long Drive Car" by Mariordo •  Traffic Jam by vktkv •  Bar road by Abang Salim Bin Abang Ali •  Overlaoded car by khulhafizov •  Icons in server cache image by iconsineed.com •  Einstein image by Tai Carmen •  "Sorry for interruption" image •  Piggy bank by Images Money •  Browser Icons by PixelBuddha 28

×