Why your site is slow: the most common bottlenecks

Slowness rarely has a single cause. Here are the bottlenecks that show up most on the server, in the database and in the code.

Why your site is slow: the most common bottlenecks

When a site gets slow, the first reaction is to ask for a bigger server. Sometimes that works, but in most cases the problem is somewhere else and is still there after the upgrade.

A database without indexes

Large tables without the right indexes force the database to read everything on each query. It is common in stores with many orders and in older sites full of data from plugins that are long gone.

Missing or misconfigured caching

Without caching, the server builds the same page from scratch on every visit. The ideal setup combines page cache, object cache and edge cache, purged automatically when content changes.

Heavy plugins, modules and extensions

A single plugin can add dozens of queries to every page. Measuring the weight of each one shows what is worth keeping, replacing or removing.

Where to start

  • Measure before you change anything, page by page
  • Fix what affects every page first
  • Back up and test on a copy of the site
  • Measure again after each change