11 min read
Best WordPress Optimization Settings for Speed and SEO
WordPress optimization settings are the configuration choices that make a site fast, secure, findable and reliable: caching, image handling, hosting versions, sitemaps, backups and a few housekeeping tasks. Use this checklist before you launch a new site, move a client site or redesign an existing one, and run it again as part of regular maintenance.
Quick answer: The best WordPress optimization settings are a current PHP version (8.3 or higher is what WordPress.org recommends), HTTPS, page caching, correctly sized images served as WebP or AVIF, native lazy loading left on for below-the-fold images, tested backups, an XML sitemap, and Core Web Vitals checks: LCP within 2.5 seconds, INP 200 ms or less and CLS 0.1 or less.
Last updated: 6 November 2026
1. Techniques to keep in mind
Use a supported PHP version and HTTPS
Start with the server. The WordPress.org requirements page recommends PHP 8.3 or greater, MariaDB 10.11 or greater or MySQL 8.0 or greater, and a host that supports HTTPS. Newer PHP releases run WordPress faster and receive security fixes, so ask your host to switch your site, after testing on a staging copy. See our guide to SSL certificates if you are unsure which type you need.
Back up your website
Bad things happen on the internet, and a tested backup is the only guaranteed way back. Back up files and database, store copies off the server, and restore one to a staging site at least once so you know it works. UpdraftPlus (version 1.26.14, 4+ million active installs) and BackWPup (version 5.7.8, 400,000+ installs) are two established options on WordPress.org, both tested up to WordPress 7.1.4 when we checked. Our guide to restoring a WordPress site covers the restore side.
Secure your website
Security is your responsibility as the site owner. Keep WordPress core, themes and plugins updated, delete anything unused, use strong unique passwords with two-factor authentication on admin accounts, and run a security plugin with a firewall and malware scanner. Wordfence (5+ million installs) and Sucuri Security (600,000+ installs) are widely used choices, and our write-up covers Sucuri website security.
Set up a sitemap and check robots.txt
Since version 5.5, WordPress generates an XML sitemap at /wp-sitemap.xml by default, and references it in robots.txt, as described in the core sitemaps announcement. SEO plugins such as Yoast SEO can replace it with their own sitemap, so you rarely need a separate plugin. Add your property to Google Search Console and submit the sitemap there.
Robots.txt controls which URLs crawlers may fetch. It is not a way to keep a page out of search results, which Google explains in its robots.txt introduction. Use a noindex tag for pages you do not want listed, and leave robots.txt for crawl control. If the Site Visibility setting asks search engines not to index the site, the core sitemap is switched off, so untick it before launch.
Protect forms and comments from spam
Use a spam filter on comments and forms. Akismet is the usual choice for comments, and many form plugins include honeypot fields or CAPTCHA options. Some security plugins also include spam protection, so check what you already have before adding another plugin.
Test your site speed against Core Web Vitals
Speed matters for visitors and for search. The old rule of thumb of loading in under three seconds has given way to Core Web Vitals. According to web.dev, a page is good when Largest Contentful Paint (LCP) happens within 2.5 seconds, Interaction to Next Paint (INP) is 200 milliseconds or less, and Cumulative Layout Shift (CLS) is 0.1 or less, measured at the 75th percentile of page loads, separately for mobile and desktop.
Test with PageSpeed Insights, which shows field data from real users where available, and with a lab tool such as GTmetrix or the Pingdom speed test. Fix the largest problem first. For most sites that is an oversized image, slow hosting or too many scripts. Hummingbird (version 4.0.0, 70,000+ installs) and Autoptimize (800,000+ installs) help with file optimization, but no plugin fixes slow hosting.
Test your links
Every link should lead where it is supposed to, especially after you restructure the site. Check for broken links before launch and after major edits. The Broken Link Checker plugin (500,000+ installs, updated October 2026) scans from inside WordPress, and Screaming Frog SEO Spider crawls a site from your desktop, with a free version limited in the number of URLs it will crawl.
2. Caching, images and loading
Turn on page caching
Page caching stores a ready-made HTML version of each page, so WordPress does not rebuild it from the database on every visit. It is usually the biggest single speed gain on a content site. Options on WordPress.org include LiteSpeed Cache (7+ million installs), WP Super Cache (1+ million installs), W3 Total Cache (900,000+ installs) and WP-Optimize (1+ million installs). Many hosts also run server-level caching, so check before you add a plugin, because two page caches working together cause stale pages.
For sites with logged-in users, such as communities, memberships and shops, page caching helps less, because those pages differ per user. Persistent object caching with Redis can reduce database queries instead. The Redis Object Cache plugin (version 3.0.0, 500,000+ installs) needs a Redis server from your host. Exclude cart, checkout and account pages from page caching.
Use the right image sizes
Large images are the usual cause of a poor LCP score. WordPress helps in several ways. Since version 5.3, any upload larger than 2560 pixels in either dimension is scaled down automatically, and the original is kept, as the big image handling post explains. It generates smaller versions and adds srcset so browsers pick a suitable one.
You still need to resize before you upload. A photo straight from a phone can be many megapixels, while a content column rarely needs more than about 1,200 to 1,600 pixels of width. Check your theme’s content width and export to match it. The old advice of a fixed 300 by 300 size is not a rule: use the size your layout actually displays.
Serve WebP or AVIF
Modern formats make files smaller at similar quality. WordPress supports WebP uploads and, since version 6.5, AVIF as well. The WordPress 6.5 AVIF announcement says AVIF images get the same responsive image, fetch priority and lazy loading support as other formats, and that support depends on the image library (Imagick or LibGD) on your server. Check it under Tools, Site Health, Info, Media Handling.
If many of your visitors use old browsers, keep a JPEG or PNG fallback. Image plugins can convert and compress for you: Imagify (900,000+ installs), EWWW Image Optimizer (1+ million installs), Smush (1+ million installs) and ShortPixel (300,000+ installs) all have free tiers or free versions, and all were updated within the last month when we checked. The official Performance Lab plugin (100,000+ installs) lets you try performance features that are heading for core.
Leave lazy loading on, but not for the hero image
Since WordPress 5.5, core adds loading="lazy" to images, so those below the fold load only when needed. Do not lazy-load the main image at the top of the page. WordPress 6.3 added fetchpriority="high" to the image it judges most likely to be the LCP element, and never applies both attributes to the same image, according to the 6.3 image performance post. Check that your theme or an optimization plugin has not overridden this, because a lazy-loaded hero image is a common reason for a poor LCP.
Know what core already does for navigation speed
WordPress 6.8 added speculative loading. By default it prefetches pages when a visitor begins to click a link, with conservative eagerness, and it is off for logged-in users and for sites without pretty permalinks, according to the 6.8 speculative loading announcement. Prerendering needs to be turned on with a filter, and it runs scripts, so test your analytics first.
Optimize image names and alt text
Give images descriptive file names (not PHOTO202.jpg) and write useful alt text, which helps accessibility and image search. A title attribute is not needed for SEO.
3. Design and compatibility
Design affects trust, usability and conversion. Treat it as part of optimization, not decoration.
Choose colours with care
A colour scheme shapes the identity of a site, so choose it deliberately. Learn about complementary colours, and check contrast. WCAG asks for a text contrast ratio of at least 4.5:1 for normal text, so use a contrast checker on your palette.
Check compatibility
Not every plugin and theme works with every other, or with every PHP version. Test on a staging copy whenever you add a plugin, switch themes or update WordPress. The PHP Compatibility Checker (200,000+ installs) scans theme and plugin code for problems with a new PHP version. Its WordPress.org listing was last updated in July 2026 and shows testing only up to WordPress 6.4.14, so treat its report as a guide and confirm on staging. Theme Check (20,000+ installs, updated September 2026) tests a theme against the current theme review standards.
Navigation menu
Keep the main navigation visible and consistent on all pages, and open it in several browsers and on a phone. If your menu is large, a mega menu plugin can organise it, but test it on touch screens.
Mobile optimization
Mobile testing matters because many visitors arrive on phones. Test real devices, tap targets, form fields and checkout. Our notes on improving website design cover mobile-friendliness and responsive layout.
4. Content and SEO
Optimization works only with useful, original content. Write for visitors first, use your keywords where they fit naturally, and keep the text easy to read.
Optimize titles
The page title in the <title> tag is a strong signal to search engines, and it is what people see in results. Put the main keyword near the start where it reads naturally, and write wording that earns the click. An SEO plugin lets you set a title and meta description for each page. Google may rewrite them, so make the page itself clear too.
Write an About page
Tell visitors who is behind the site and why they should trust it. Name real people, show contact details and explain what you do.
Handle 404 errors
A 404 means the page cannot be found. If pages you expect to exist show 404, go to Settings, Permalinks and click Save to flush the rules, then confirm the post or page exists and update the sitemap. A custom 404 page with search and links to popular content keeps visitors on the site.
Set up redirects
When you delete or move content, redirect the old URL to the closest replacement with a permanent (301) redirect. Re-test redirects after a while, and avoid redirect chains.
Proofread
Typos damage credibility. Re-read every page before publishing, ask someone else to read it too, and use a spelling or grammar tool as a second check.
Learn the basics of SEO
Learn the basics of on-page SEO: clear titles, helpful headings, internal links, fast pages and original content. Google’s own SEO starter guide is free. Our article on multilingual SEO applies if you publish in more than one language. Keyword density targets are outdated, so write naturally instead.
Pick a lightweight theme
A theme with heavy markup, large scripts and many bundled features slows every page. Test a theme’s demo in PageSpeed Insights before you buy it. Block themes and lean classic themes generally load less code than multipurpose themes.
5. Functionality
Use social buttons and widgets wisely
Sharing buttons help visitors spread your content, but official widgets call external services and can slow a page. Use only the networks where your audience is active, and prefer simple links over heavy embeds.
Check RSS feeds
WordPress generates RSS feeds for posts and comments out of the box, usually at /feed/. Open yours and confirm it loads. Our article on RSS feeds and website ranking explains why feeds still matter. If you use a feed service, check that it is still maintained before you rely on it.
Test everything visitors use
Whether you have a contact form or a large shop, test every function before launch: does the email arrive, does the checkout complete, do images open in the lightbox? Send test emails to more than one provider, because a form that appears to work can still land in spam.
Pre-launch and maintenance checklist
| Area | Setting to check | Target |
|---|---|---|
| Server | PHP, database, HTTPS | PHP 8.3 or greater, MariaDB 10.11+ or MySQL 8.0+, HTTPS on |
| Caching | Page cache, object cache for dynamic sites | One page cache only, cart and account pages excluded |
| Images | Dimensions, format, lazy loading | Right size, WebP or AVIF, hero image not lazy-loaded |
| Core Web Vitals | LCP, INP, CLS | 2.5 s, 200 ms, 0.1 at the 75th percentile |
| SEO | Sitemap, Search Console, titles, noindex settings | Sitemap submitted, site visibility not blocked |
| Safety | Backups, updates, security plugin | Tested restore, nothing outdated |
Put the list on a calendar and repeat it every quarter, and after every major plugin or theme change.
Frequently asked questions
What are the best WordPress optimization settings?
Use a current PHP version and HTTPS, enable one page cache, size and compress images, serve WebP or AVIF where your server supports it, keep lazy loading on for below-the-fold images, submit a sitemap and keep tested backups. Then check Core Web Vitals in PageSpeed Insights.
Does WordPress lazy load images by default?
Yes. Core has added loading=”lazy” to images since WordPress 5.5, and since 6.3 it adds fetchpriority=”high” to the image most likely to be the LCP element instead of lazy-loading it. Check your theme does not override that for the top image.
Can I upload AVIF images to WordPress?
Yes, from WordPress 6.5, if your server’s image library supports AVIF. Check Tools, Site Health, Info, Media Handling to see whether AVIF is listed. Keep a fallback if many of your visitors use old browsers.
Do I need a caching plugin?
Usually yes, unless your host already runs full-page caching. Pick one page-caching solution, exclude dynamic pages like cart and checkout, and clear the cache after design changes.
What are good Core Web Vitals scores?
Google’s web.dev guidance: LCP within 2.5 seconds, INP of 200 milliseconds or less, and CLS of 0.1 or less, at the 75th percentile of page loads on mobile and desktop.
All set to launch
Once these settings are in place, you are ready to go live. Launching first and testing afterwards is risky, so work through the list in order. Share your own optimization tips in the comments.
Related reading