Theme
Back

How I Achieved a Perfect Website Score in WordPress with AI

Cyberpunk comic strip illustrating a perfect WordPress Lighthouse score: four panels showing custom theme build, plugin selection, AI-assisted coding, and a 100/100 result

Very recently, I launched a website for a high-end antique shop with an almost perfect score in all areas of Lighthouse. For those unfamiliar with Lighthouse: it is a website scanner from Google that gives your website a score on speed, accessibility, best practices, and SEO. The better the score, the faster you rank and the better visitors experience your website.

As you can see in the screenshot above, I only received a 96 instead of 100 in one area. That was a conscious choice: the design of the antique webshop did not allow for a perfect contrast ratio without breaking the style, so the accessibility score remained at 96.

All of this with a sleek design and at top speed — three weeks from start to live. Made possible with AI, and more specifically: with a tool called Claude Code.

In this article, I will show you how I achieved that (almost) perfect score.

Step 1: Create a custom theme

No matter how you look at it: if you are stuck with a page builder or a popular theme, achieving a perfect Lighthouse score is practically impossible.

The reason is simple. A popular theme must meet hundreds of requirements because it serves hundreds of thousands of customers. More functionalities mean more code. More code means a slower website.

To have complete control over the code — and thus over the score — you need a custom theme. That is the hard truth.

Fortunately, with Claude Code, such a theme can be built quickly, as long as you have your own workflow or boilerplate. I recommend a combination of a classic custom theme with Gutenberg blocks: speed of development and flexibility of components.

You do need basic knowledge of code and the WordPress ecosystem. If you are interested in my workflow, I am happy to share it for free — feel free to email me: snelstack@gmail.com

Step 2: The right plugins

Plugins are not a thing of the past — but simple plugins are. In a previous article, I already wrote about this. The nuance: complex plugins with high development costs remain relevant. Compressing images is probably not your core business, but you do need it. Then it’s not worth building that yourself.

For a perfect Lighthouse score, you need three types of plugins:

1. Speed optimization

2. Image optimization

3. SEO

Your custom theme already covers the majority of your score. The plugins give you the final push.

Good speed optimization plugins:

1. LiteSpeed Cache

2. WP Rocket (paid, but one of the best)

3. W3 Total Cache (free alternative)

Good image optimization plugins:

1. Smush

2. ShortPixel

3. Imagify

Good SEO plugins:

1. Yoast SEO

2. RankMath

3. All in One SEO

I host on SiteGround, which offers built-in speed and image optimization through their own plugin. They cover practically everything. For SEO, I use my own plugin because I have a multilingual setup — read more about multilingual WordPress.

Step 3: Copy, paste, and ask smart

If you have completed steps 1 and 2, you are most likely already in the higher 80 range across all Lighthouse areas. Congratulations — your website is already among the top 20% of the internet.

But you are here for the perfect score. Here is the final step, and it’s simpler than you think.

Run the Lighthouse test and provide the results to Claude Code.

How to open Lighthouse: go to Chrome, right-click on the page, select Inspect, and click on Lighthouse at the top of the panel. Click on Analyze page load and wait for the analysis. Lighthouse not only gives a score but also concrete feedback on what can be improved.

Copy that feedback and paste it directly into the Claude Code terminal of your custom theme. Ask it to solve the issues. That’s it.

The only caveat: validate what Claude Code does. Not everything it adjusts is necessarily correct for your situation. You do need basic programming knowledge for that.

Conclusion

In summary, it comes down to: building a custom theme and a few targeted plugins. But that does mean you need fundamental basic knowledge of code.

In the current ecosystem, there is a K-shape economy: on one side, people who click together something that is guaranteed to break without any knowledge. On the other side, people who build robust, beautiful software in record time. The gap between the two is only growing. I will write a separate article about this soon.

If you want a website that is solid, looks good, and goes live in weeks instead of months — built by someone with 10 years of experience — feel free to send me a message: snelstack@gmail.com