Why is my WordPress so slow? How to identify the problems

Image from  http://en.wikipedia.org/wiki/SnailIt’s difficult to give an answer to this kind of question, so I will list general things that have helped me to identify problems of this kind:

Profile everything you can:

The P3 Profiler plugin will profile your plugins:

http://wordpress.org/extend/plugins/p3-profiler/

I also recommend the `Debug bar` (and it’s extensions)

http://wordpress.org/extend/plugins/debug-bar/

and the `Blackbox` debug bar to profile your *problematic?* queries:

http://wordpress.org/extend/plugins/blackbox-debug-bar/

Memory viewer for your hooks:

http://wordpress.org/extend/plugins/memory-viewer/

If you have lot’s of comment’s that are constantly refreshing the cache,
you might also consider using comment services like Facebook / Intense Debate / Disqus / LiveFyre

Use WordPress cache plugins, many good out there.

Test your site with online performance services:

Here is one:

http://www.webpagetest.org/

New Relic:

http://newrelic.com/

View the log files:

Check all log files you have (php, apache, nginx, mysql, …)

If you have ssh access:

Also consider using `Nginx` instead of `Apache`

You should also check what process is using your resources via ps/top/htop/… (i.e. is it apache or mysql or something else) if you have access to a Linux console

If it’s mysql there is a great script called tuning-primer.sh that can give you hints how to configure it (if you have access to ssh, you can check it with top or htop)

Use APC cache for php

(this article is a work in progress)

2 thoughts on “Why is my WordPress so slow? How to identify the problems”

  1. Actually you helped me with sum the shortcode solution. Do you have a paypal i tegrarhed so that I could at least buy you a drink?

    R

  2. Hi @Rpz

    Thanks, good to hear you could use my little code example – you are welcome to buy me a drink – I have a donation button on the left sidebar

    cheers 😉

Leave a Reply

Your email address will not be published. Required fields are marked *