Google Lighthouse: How to Use It to Audit Your Website
Updated 3 days ago
Google Lighthouse is a free tool we can—and should—use to audit our website and check its performance (that is, its speed). It also lets us look under the hood and inspect its accessibility, SEO performance, and whether it follows so-called “best” practices (website security, proper use of resources, etc.).
In this guide, we’ll see how to make Google Lighthouse work for us, explaining what it does and how to understand the scores in its report. Let’s get started.
What is Google Lighthouse?
In a way, it’s like putting on Google’s glasses—without Google charging us a cent. When we generate a Lighthouse report, we can evaluate our website’s page experience and get access to very valuable advice if we want to improve its performance.
Over the past few years, Google has placed increasing emphasis on the experience of each web page, including the addition of a new set of Core Web Vitals signals called INP. Lighthouse data breaks down how users experience browsing our site, giving us a clear snapshot of its speed, bottlenecks, and everything that can be improved.
How do I use Google Lighthouse?
→ NOTE: Later on, we’ll explain how to install it in Firefox and how to use it with Google Insights.
Google Lighthouse is built into the Chrome browser. The most direct way to use it is through the *DevTools* (developer tools) included in the browser. To use it, we’ll right-click anywhere on a website and select INSPECT from the pop-up menu.
The screen will split in two to show the *DevTools* mentioned above. We’ll look for the LIGHTHOUSE option at the end of the list of tools (if we don’t see it, we can click the double-arrow icon at the end of the list to display tools hidden due to space constraints).
Once selected, a message will immediately appear saying that Lighthouse results are expected, followed by a view similar to the screenshot below:
Understanding the Google Lighthouse report
As we can see at the very beginning of the report, it shows four score circles: Performance, Accessibility, Best Practices, and SEO.
Let’s start at the beginning: performance.
Performance
Performance is simply how quickly our website loads. In other words, it’s how long our content takes to load so visitors can see and interact with it.
These metrics are demanding (just like Google, in fact). Don’t be surprised if orange or red circles appear. Put another way, it would be surprising if everything were green (unless the site has been optimized for SEO or we have a very efficient theme and components, along with a hosting server to match).
Now, let’s see what the data in the highlighted rectangle in the screenshot above means:
*First Contentful Paint* (FCP): Measures the moment when the first text or image becomes visible to users.
*Largest Contentful Paint* (LCP): Measures how long it takes a page to load its largest element (such as a photograph or carousel).
*Total Blocking Time* (TBT): Measures the amount of time a page does not allow any user interaction (for example, a mouse click).
*Cumulative Layout Shift* (CLS): Measures layout shifts that occur as content loads (this causes blocks to rearrange—a common occurrence when pages load, but one that prevents visitors from starting to read or interact properly. This interval should therefore be as short as possible).
*Speed Index* (SI): Shows how quickly the content on our page loads.
The final score is a weighted average of the metric scores, ranging from 0 to 100. If it is 90 or higher, the circle will be green, indicating a very good loading experience. Below 90, Google Lighthouse lets us know that there are many things that can be improved—in other words, bottlenecks and slowdowns.
The good news is that it doesn’t just give us a score: it provides specific suggestions to improve our website’s loading speed.
It’s true that many factors depend on how our website is programmed. If we have a WordPress website, the theme we use and the plugins we install carry a lot of weight. The caching plugin we use is also key. If improving our score is beyond our expertise, but we’re committed to increasing traffic and optimizing the browsing experience for all our visitors, we should look for a company with the expertise to help (well, yes, like Duplika).
Accessibility
Accessibility refers to how easily people with disabilities can access and use our content. It evaluates critical factors such as the clarity of buttons and links (for example, their contrast), ensuring they are easy to recognize and use, without distracting elements.
It also checks images to see whether they have an “alternative text” description (the ALT attribute in the image’s HTML). This helps users with low vision and blind users understand what an image is about when they use screen readers.
We also get a score from 0 to 100, with 90 to 100 being optimal.
Once again, Lighthouse tells us everything that can be improved.
Best Practices
The “good practices” audit compares how our content is programmed against a modern ideal for web development.
As we said, ideally, the following principles should be met:
Resources are loaded from secure servers with SSL certificates, that is, over HTTPS.
All images have the correct aspect ratio and resolution (in other words, they are not stretched horizontally or vertically, and they are not larger in pixels than they appear on screen).
All JavaScript libraries are secure, up to date, and free of known vulnerabilities.
The page has an HTML doctype.
The Content Security Policy (CSP) is effective against cross-site scripting attacks (known as XSS).
The page has no navigation errors.
The page does not contain outdated frameworks or APIs.
The page has valid map sources (the correct implementation and use of icon fonts and other vector graphics).
The page has no visible issues in Chrome DevTools (such as failed network requests, insufficient security measures, and other browser issues).
The page’s character encoding is set with the meta charset tag.
The page allows users to paste a password into password fields.
The page provides a good user experience by blocking geolocation and notification permission requests when the page loads.
SEO
Lighthouse’s SEO evaluation refers to an audit focused on the practices we use to improve our website’s visibility and ranking in search results. This assessment breaks down factors such as:
Whether our website displays well on mobile phones and tablets—essential these days.
The page has valid structured data.
Internal links can be crawled.
The page has a valid hreflang attribute.
The title and meta-description tags are filled in.
The page can be indexed (it is not blocked by WordPress or Robots.txt).
The Robots.txt file is valid.
The page returns an HTTP 200 status code (which means it’s OK).
The page has a valid rel=canonical tag.
The page’s content is independent of plugins.
Links on the page contain descriptive text.
Images on the page have specified alt text.
The page has a meta-viewport tag with a defined width or initial scale.
Once again, we get a score ranging from 0 to 100, along with everything we should improve if we really want to get better scores (that is, more visitors to our website).
How can I use Google Lighthouse with Firefox?
If we use the Mozilla Firefox browser, we can download Google’s official add-on in seconds from the Add-ons and Themes section:
After going to the add-ons section, we need to search for it in the field for finding new add-ons.
The one highlighted in the screenshot below is the official add-on, developed by Google. We’ll click it to view its details and install it.
One more click on the blue button to install it.
Once installed, the official Google Lighthouse extension can be accessed from Firefox through the extensions icon, as shown in the following screenshot:
Next, we’ll generate the report by clicking the blue button.
After a loading screen, while data is sent and received, a new tab will open in our browser and we’ll be able to see the report, as mentioned earlier.
Generate Lighthouse reports with PageSpeed Insights
To audit our website externally with Lighthouse, we can go to PageSpeed Insights and enter the relevant URL:
After a few seconds of auditing, we’ll see the screen with the scores mentioned above.
Conclusion
Running local performance tests with Google Lighthouse is a great way to identify opportunities to improve our website’s load times, interactivity, accessibility, and SEO.
It lets us see how Google sees us, too. And we know that this search engine has a strong “fetish” for website speed. To top it off, Lighthouse is free, and if our page is taking too long to load or we notice latency, it’s the tool to turn to. At the very least, it’s the tip of the iceberg when it comes to all the improvements suggested in its report (which we’ll need to work through with time and patience).
If you’d like to see how these metrics compare on a real website, the Radio Estación case study on FastWeb shows Lighthouse results before and after the redesign and optimization.
Thank you for reading, and we wish you success with your ventures. Until next time.