Slow Website? 15 Common Causes and How to Fix Them (WordPress and PHP)
Quick answer: The most common causes of a slow website are weak hosting, no caching, heavy images, too many plugins or a bloated theme on WordPress, an unoptimized database, and too many scripts, stylesheets and external fonts. Measure with PageSpeed Insights, compress images and convert them to WebP, turn on page caching and OPcache, use a CDN and remove what you don't use. If the server itself is slow to answer, the fix is in the hosting, the PHP version or the database.
A slow site loses visitors, rankings and sales. Whether it runs on WordPress or plain PHP, slowness almost always has specific causes that can be fixed. This article goes through the 15 most common ones and what to do about each.
First, measure where the time goes
Before changing anything, find out whether the slowness is on the server (the page takes long to start arriving) or in the browser (the page arrives quickly but takes long to display):
curl -o /dev/null -s -w "TTFB: %{time_starttransfer}s Total: %{time_total}s\n" https://example.com/
If the time to first byte (TTFB) is above about 0.8 seconds, start with causes 1, 3, 7, 12, 13 and 14 (server side). If TTFB is low but the page still feels slow, start with 4, 5, 6, 9, 10 and 11 (front end). PageSpeed Insights shows both, plus Core Web Vitals from real visitors; see Core Web Vitals and site speed.
1. Weak or overloaded hosting
Cheap shared hosting often puts hundreds of sites on one server, and when a neighbor gets busy, your site slows down too.
Fix: move to a VPS or cloud server, or at least a plan with dedicated CPU and memory. Check that the server is close to your visitors.
2. Slow DNS
Every new visitor first has to look up your domain. A slow or unreliable DNS provider adds delay before anything loads.
Fix: host your domain's DNS with a fast, reliable provider (Cloudflare, Route 53 and similar), and keep sensible TTLs so answers are cached.
3. No caching
Without a cache, the server runs PHP and queries the database for every single visit, even when the page is the same for everyone.
- WordPress: a page cache plugin (WP Rocket, W3 Total Cache, LiteSpeed Cache on LiteSpeed servers);
- Plain PHP: cache full pages or expensive fragments in files, APCu or Redis;
- Both: an object cache (Redis or Memcached) for repeated database queries.
4. Heavy images
Images are usually the largest part of a page. Uploading photos straight from a camera or phone (4000 pixels wide, several MB) is the most common mistake.
Fix: resize to the size actually displayed, compress, use WebP or AVIF, add width and height, and lazy-load images below the fold (but not the main image at the top).
5. Too many plugins (WordPress)
Each plugin can add scripts, styles, database queries and memory use on every page, even where it isn't needed.
Fix: remove plugins you don't use, avoid "all-in-one" plugins for small tasks, and use a tool such as Query Monitor to see which plugins slow down each page.
6. A bloated theme
Themes and page builders packed with animations, sliders and scripts weigh down every page.
Fix: prefer lightweight, well-maintained themes, and turn off features you don't use.
7. An unoptimized database
Slow queries and bloated tables directly increase response time.
Fix: add indexes to columns used in filters and joins, turn on the slow query log, and on WordPress clean old revisions, expired transients and large autoloaded options. In custom PHP, avoid queries inside loops.
8. No CDN
Without a CDN, every image, script and stylesheet comes from your one server, however far the visitor is.
Fix: serve static files through a CDN (Cloudflare's free plan already helps a lot) so they come from a location near each visitor.
9. Unminified and unused CSS and JavaScript
Large files take longer to download, and scripts in the <head> block the page from displaying.
Fix: minify CSS and JS, remove unused code, and load scripts with defer.
10. Too many external fonts and icons
Several font families and weights, plus icon libraries loaded from other domains, add requests and can cause text to flash or shift.
Fix: limit fonts to one or two families with only the weights you use, host them locally in WOFF2, and use font-display: swap.
11. No compression
Without compression, the server sends HTML, CSS and JavaScript at full size.
Fix: turn on Brotli or gzip on the server or the CDN. On Apache with mod_deflate:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json image/svg+xml
</IfModule>
Images in JPEG, PNG and WebP are already compressed and don't need it.
12. An old PHP version
Each major PHP version has been noticeably faster than the last, and old versions no longer get security fixes.
Fix: use a PHP version that is still supported (8.3 or newer at the time of writing), after testing your site and plugins in staging.
13. OPcache disabled
Without OPcache, PHP compiles every script on every request.
Fix: enable it in php.ini:
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=20000
Check with php -i | grep opcache.enable or a phpinfo() page (remove it afterwards).
14. Slow external calls
APIs, embeds, ad scripts, chat widgets and tracking tags can delay the page, on the server or in the browser.
Fix: keep only what you need, load third-party scripts after the page is interactive, and on the server set short timeouts and cache API responses. A slow external API on the server can also cause 504 Gateway Timeout errors.
15. No monitoring
Without measuring, you don't know where the bottleneck is, or when a change made things worse.
Tools: PageSpeed Insights and the Core Web Vitals report in Search Console for real-user data, Lighthouse and WebPageTest for detailed tests, and an uptime monitor that also tracks response time.
Quick checklist for a fast site
- Hosting sized for the traffic, close to your visitors;
- Reliable DNS provider;
- Page cache and OPcache on;
- Images resized, compressed and in WebP or AVIF;
- Only the plugins and scripts you need;
- CDN for static files;
- Brotli or gzip compression;
- A supported PHP version;
- Database indexes and the slow query log reviewed;
- Monitoring in place.
Conclusion
A slow site is almost never "normal". Most of the time, a few targeted changes bring big gains in speed, user experience, SEO and conversions. Measure first, fix the biggest bottleneck, measure again, and keep monitoring so the site stays fast as it grows.
Frequently asked questions about slow websites
How fast should a website load?
Aim for the main content to appear within 2.5 seconds for real visitors on mobile (the "good" LCP threshold), and for the server to start answering in under 0.8 seconds.
Why is my site slow only on mobile?
Phones have slower processors and connections. Heavy images and JavaScript hurt them much more than a desktop computer on fast internet.
Does a cache plugin make WordPress faster?
Usually a lot, because pages are served without running PHP and queries for each visit. Configure it carefully and test logged-in areas and checkout pages.
Is shared hosting always slow?
Not always, but it is more likely to be inconsistent. If your TTFB is high even on simple pages, the hosting is a likely cause.
Does site speed affect Google rankings?
Speed and Core Web Vitals are part of Google's page experience signals. They matter less than relevance, but they strongly affect visitors and conversions.