To speed up WordPress, work in this order: adequate hosting with up-to-date PHP, a well-configured page cache, lightweight images in WebP or AVIF, fewer plugins and scripts on the front end, a clean database and, if your audience is spread out, a CDN. "Miracle" plugins only help once the basics are in place.
A slow site loses visitors, leads and sales, and Google uses page experience among its ranking signals. Let's look at what to measure and which fixes deliver the biggest results.
Measure first, then act
A website's speed is assessed with Core Web Vitals, the metrics Google uses to measure real user experience:
- LCP (Largest Contentful Paint): how long it takes to display the main element of the page. Good within 2.5 seconds.
- INP (Interaction to Next Paint): how quickly the page responds to clicks and taps. Good at 200 milliseconds or less.
- CLS (Cumulative Layout Shift): how much the layout shifts during loading. Good at 0.1 or less.
The basic tools are PageSpeed Insights, the Core Web Vitals report in Google Search Console and the browser's developer tools. Always distinguish between lab data (a simulated test) and real user data: the latter is what counts. We go deeper into the metrics in the guide to Core Web Vitals.
Measure at least the homepage, a service page, an article and, if there is one, a product page: the problems are often different for each page template.
1. Hosting and PHP version
No optimization makes up for a slow server. The first figure to look at is TTFB (Time To First Byte), the time the server takes to respond: if it's high even with caching enabled, the bottleneck is the hosting.
The PHP version also matters a lot. Newer versions are faster and receive security patches; unsupported ones don't. Before upgrading, check theme and plugin compatibility in a staging environment. Other server-side factors that make a difference: OPcache enabled, HTTP/2 or HTTP/3, Brotli or Gzip compression, sufficient dedicated resources. We explain how to choose a provider in hosting for WordPress.
2. Caching: page, object and browser
WordPress generates every page dynamically by querying the database. Caching avoids repeating this work on every visit.
- Page cache: stores ready-made HTML and serves it to subsequent visitors. It can be handled by the server (for example LiteSpeed Cache on LiteSpeed servers, or an Nginx cache) or by a plugin. It's the intervention with the biggest impact on TTFB.
- Object cache: stores query results in memory with Redis or Memcached. Especially useful for sites with a members' area, WooCommerce or many non-cacheable pages.
- Browser cache: headers that tell the browser to keep CSS, JavaScript, fonts and images so it doesn't download them again.
Watch out for pages that must not be cached: cart, checkout, user account. A wrong configuration can show one user's data to another.

3. Images: modern formats and the right sizes
Images are often the heaviest part of the page and the element that determines LCP. The practical rules:
- WebP and AVIF formats: at the same quality they weigh less than JPEG and PNG. WordPress supports uploading WebP and, in recent versions, AVIF too (if the server supports it).
- Correct dimensions: don't upload a 4000-pixel photo to display it at 800. WordPress generates several sizes and uses srcset so the browser can pick the right one.
- Lazy loading for images below the fold, but never on the main image at the top: it would slow down LCP. In fact, for that image it's useful to set a high loading priority.
- Width and height attributes always present, to avoid layout shifts (CLS).
Videos and sliders at the top of the page deserve some thought: often a well-chosen static image communicates better and loads much faster.
4. Plugins, theme and JavaScript
Every plugin can add CSS, JavaScript, database queries and requests to external services. The problem isn't the number itself, but the weight of each one and how many load resources on every page even when they're not needed.
- Take an inventory and remove what you don't use. The criteria are in WordPress plugins: which ones you really need.
- Load scripts only where they're needed: the contact form on the contact page, not across the whole site.
- Defer (defer) non-critical JavaScript and limit third-party scripts: chat, pixels, maps, social widgets.
- Evaluate the theme: multipurpose themes and some page builders generate a lot of markup and CSS. A lightweight theme or a block theme changes the starting point; we cover this in Elementor, Divi or Gutenberg.
Fonts matter too: better to use few weights, hosted on your own server, in WOFF2 format, with a display strategy that doesn't block text.
5. Database: cleanup and maintenance
Over time the database accumulates post revisions, auto-drafts, spam comments, expired temporary data (transients) and tables left behind by uninstalled plugins. The useful interventions:
- limit the number of revisions kept for each piece of content;
- delete expired transients, spam and trash;
- check autoloaded options (autoload): if there are too many or they're too heavy, they slow down every single request;
- remove orphaned tables, only after a backup.
On WooCommerce with many orders, it's worth using High-Performance Order Storage (HPOS), which stores orders in dedicated tables.
6. CDN: when you really need one
A CDN (Content Delivery Network) delivers static files, and sometimes entire pages, from servers close to the user. It's very useful if your audience is international, for example a hotel in Ischia that gets visits from all over Europe. For a site whose users are almost all in Italy, with good Italian hosting, the benefit is smaller, but services like Cloudflare also offer protection and certificates, so it's often worth it anyway.
Common mistakes to avoid
- Installing three optimization plugins that do the same thing and get in each other's way.
- Turning on file minification and combination without testing: menus, forms or checkout break.
- Optimizing only for the PageSpeed score and not for real user data.
- Forgetting mobile: most visits come from smartphones, often on slower connections.
- Doing everything directly on the live site, with no staging and no backup.
How we work at NEXO
When we're asked to speed up a WordPress site we start with an analysis: real Search Console data, tests on several page templates, checks of server, theme, plugins and database. Then we draw up a list of interventions in order of impact, apply them in staging, measure and only then publish. If the theme is the real limitation, we discuss with the client whether a custom theme makes sense. It's the same approach we use to build our speed-optimized WordPress websites, for businesses in Naples, Campania and all over Italy.
Frequently asked questions
Is a caching plugin enough to speed up WordPress?
It helps a lot with response time, but it doesn't fix heavy images, third-party scripts, a bloated theme or slow hosting. It's one of the interventions, not the only one.
What PageSpeed score should I aim for?
The score is a lab indicator. The concrete goal is to have real-world Core Web Vitals in the green: LCP within 2.5 seconds, INP within 200 milliseconds, CLS within 0.1.
Can switching to WebP or AVIF cause problems?
Modern browsers support both. The point is that the server must be able to process them and that images already uploaded are converted with a reliable tool, keeping the originals.
How often should optimization be repeated?
It should be checked after every major change (new plugin, new sections, theme updates) and at least every few months as part of WordPress maintenance.
Is your WordPress site slow and you don't know where to start? Message us on WhatsApp or by email: we start from the data and tell you which interventions are really worth the time.


