Why is my WordPress site so slow to load?

Why is my WordPress site so slow to load?

A slow website is usually caused by your infrastructure: hosting, themes, page builders, and plugins have some of the largest impact on both scores and load times. Start with those first. When in doubt, look at the WordPress optimization guide to see the most important factors.

What’s the default page load time for WordPress?

By default, the value is 20, which is totally fine. However, you may have increased this number to avoid pagination. If so, consider dialing it back to limit how much content WordPress needs to load for each page.

What kind of caching do I need for WordPress?

Server level caching – most cloud hosts offer server level caching (Redis, memcached, Varnish) while most shared hosts don’t. That’s why cache plugins like LiteSpeed and SG Optimizer offer faster caching than the file-based caching done by most cache plugins.

Which is the fastest version of PHP for WordPress?

For example, in Kinsta’s PHP benchmarks, you can see that PHP 7.3 can handle more than triple the number of requests per second that PHP 5.6 can handle: But despite that, most WordPress users are running PHP 5.6 ( or older )…and you might be one of them! You’ll update your site’s PHP version through your host.

If you have stumbled across this post then you are probably trying to diagnose what is causing your slow load times. And you have probably already narrowed it down to your admin-ajax.php file as the culprit.

How to diagnose admin-ajax.php causing slow load times?

First go over to GTMetrix and run a free test of your website. Then click into the “Timeline” tab and scroll down. You will most likely have POSTs to admin-ajax.php. In my example below you can see I have 5 POSTS to admin-ajax.php and they are adding up to significant delays.

How to fix slow SQL queries in WordPress?

Regardless of how your SQL got slow, let’s take a look at a few ways to find and fix problem queries in WordPress. Finding the source of slow queries involves 2 steps: Identifying which queries are actually the slow ones. Finding the code that is generating and executing them.

What are the problems with admin-ajax.php file?

There are two big problems with admin-ajax.php. The first is WordPress Core and the second is developer’s plugins. What is the admin-ajax.php file? Basically in WordPress 3.6, the WordPress Heartbeat API was introduced, which allows WordPress to communicate between the web browser and the server.