Skip to content

WordPress site loads slowly: how to speed it up

Medium 45 min Updated:

Quick answer

Slow loading of a WordPress site is most often caused by weak hosting, too many plugins, unoptimized images and lack of caching. Speed up the site step by step: check hosting, enable caching, optimize images, reduce the number of plugins and clean the database. If that does not help either, contact IT support.

How to recognize the problem

  • Pages take longer than 3 seconds to load
  • WordPress admin is slow
  • The site opens slowly on mobile internet too
  • Google PageSpeed Insights shows low scores
  • A 504 Gateway Timeout error occasionally appears

Most common causes

Weak hosting or shared server

Shared hosting with little RAM and a slow disk cannot handle requests quickly, especially with a larger number of visitors.

Too many plugins

Every plugin loads its own files and database queries, so 30 or more plugins significantly slow down the site.

Unoptimized images

Large images in full resolution (e.g. 4000 px) slow down loading because they are transferred at their original size.

No caching

Without caching, WordPress executes PHP code and database queries every time a page is opened, which wastes time.

Bloated database

Revisions, transients and spam comments increase the database, so queries become slower.

Step-by-step fix

  1. 1

    Measure site speed

    Open a tool such as PageSpeed Insights or GTmetrix and note the loading time before making changes. Test both the home page and inner pages. This will be your reference to see whether you have improved anything.

  2. 2

    Check hosting and resources

    In the hosting control panel, check CPU, RAM and input/output operations usage. If you are constantly at the limit, it is time for a stronger package or a move to a VPS. Also check whether you are using a supported PHP version, at least 8.2, in the hosting control panel or with your provider.

  3. 3

    Enable caching

    Install a caching plugin (e.g. LiteSpeed Cache, WP Super Cache or W3 Total Cache) and enable page caching. If the hosting offers server-side caching (LiteSpeed, NGINX), use the solution recommended by the hosting. Do not enable multiple caching plugins at the same time.

  4. 4

    Optimize images

    Resize images to a width of up to 1600 px before uploading and compress them (e.g. in the Squoosh tool). Install a compression plugin (e.g. Smush or ShortPixel) and enable WebP if it is supported. Check whether the theme displays images at the appropriate size.

  5. 5

    Reduce the number of plugins

    Deactivate plugins you do not use. Before deleting them, make a backup of the site, because some plugins store data. For each plugin, check whether it is necessary. Pay special attention to slider, gallery and form plugins, which often load many scripts.

  6. 6

    Clean the database

    Install a database optimization plugin (e.g. WP-Optimize) and delete revisions, transients and spam comments. Make a backup before cleaning. Repeat this cleaning regularly, e.g. once a month.

  7. 7

    Disable unnecessary scripts and styles

    Many themes and plugins load CSS and JavaScript on all pages. Using a plugin such as Asset CleanUp, disable loading of unnecessary files on individual pages. Test carefully so you do not break the site's appearance.

  8. 8

    Enable CDN

    If you have visitors from multiple countries, enable a CDN (e.g. Cloudflare) to cache static files and reduce server load. Set up caching for images and CSS/JS files, but not for HTML pages if they change frequently.

  9. 9

    Update everything and check the theme

    Regularly update WordPress, the theme and plugins. If the theme is outdated or poorly coded, consider changing it. Test the site after every change and note the results.

If nothing helps: deeper diagnostics

If you have gone through all the steps and the site is still slow, enable SAVEQUERIES in wp-config.php, preferably on a copy of the site, so you can analyze slow queries. Enable WP_DEBUG only temporarily and turn it off after diagnostics, because on production it can show errors to visitors. To review queries, use the Query Monitor plugin, which shows query execution time and slow plugins. Check whether the problem is in the theme: temporarily switch to the default theme (e.g. Twenty Twenty-Four) and measure the speed. If the site is fast with the default theme, the problem is in your theme. Also, check whether the hosting is limiting you (e.g. max_execution_time). As a last resort, consider migrating to better hosting or hiring an optimization expert.

How to prevent it

  • Regularly update WordPress, the theme and plugins
  • Use caching and a CDN from day one
  • Optimize images before uploading
  • Periodically clean the database

When to call a professional

If you have tried all the steps and the site is still slow, or if you do not want to risk changes to the database and code, contact IT support. An expert can perform an in-depth analysis and optimization safely.

Website development · Fast, SEO-ready, multilingual websites

FAQ

How fast is fast enough for a WordPress site?

Aim for a loading time under 3 seconds, ideally under 2 seconds. Google recommends that the largest part of the content loads within 2.5 seconds. Test the speed regularly.

Can caching break the site?

It can if set up incorrectly, for example if you cache dynamic parts such as the cart in WooCommerce. Always test the site after enabling caching and clear the cache when you change content.

Why is the admin slow?

The admin is slow for the same reasons as the front end, but also because of plugins that are demanding in the admin area. Deactivate unnecessary plugins and check whether the hosting has enough resources.

Share
Didn't find a fix?The AI IT assistant is available 24/7. Describe the problem or send a screenshot of the error and get instructions for your case.Ask the AI IT assistant