Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 5 min read

Check one web page in twelve points, free in the browser

The page is online, the text has been read twice and the design looks right. Then somebody shares the link in a chat and it appears without a picture. The browser tab shows only the address. On a phone the page is shrunk

The page is online, the text has been read twice and the design looks right. Then somebody shares the link in a chat and it appears without a picture. The browser tab shows only the address. On a phone the page is shrunk to the width of a desktop screen.

The Website Audit of Harbor Digital Studio reads one page and checks twelve things that decide how it looks in search results, in a shared link and on a phone. You enter an address, the tool reads the source code and puts each check into one of four states: in order, look at, to fix, or not checked.

The twelve checks

  • Page title: present, with 15 to 60 characters.
  • Description: the sentence under the headline in search results, 70 to 160 characters.
  • Main heading: exactly one h1.
  • Picture and text for shared links: og:title, og:description and og:image, which decide how a link looks in chats and on social networks.
  • Mobile settings: a viewport set for phones, zooming allowed, no fixed widths of 400 pixels or more in inline styles.
  • Page weight: the size of the source code; under 150 KB is usual for a fast page. Scripts, style sheets and pictures are not counted; their weight comes on top.
  • Pictures: every img has an alt text and an address; up to twelve are loaded to see whether they load at all.
  • Links: every link has a name a screen reader can read and an address that is not empty.
  • Encrypted address: the page is reached through https.
  • Search engines: no noindex instruction, structured data (JSON-LD) that is valid code, a canonical address, a favicon.
  • Language and forms: the page states its language, every form field has a label.
  • Scripts and styles: how many script files, from how many hosts, how many inline; each file is one more request before the page is ready.

How to use it in three steps

  1. Open https://harborstudio.surge.sh/tools/audit/en/, enter the address of a page of your site and click "Check this page".
  2. Read the list from top to bottom. The line above it counts the checks that are in order, need a look or need a fix.
  3. Click "Save report as PDF / print" to keep the list, or "Copy link" to hand the check to somebody else.

If the address cannot be read, the tool says so and opens two boxes: one for the source code (open your page, right-click, choose "View page source", copy everything and paste it in) and one with the bookmark described below.

What it does not do

A check by address or by pasted source reads the source code. It cannot see whether a page scrolls sideways on a phone, whether scripts report errors in the browser console, or how much a visitor really downloads. The tool does not click, log in or follow links, and in the source code a page that adds its tags with JavaScript shows up without them.

The page also offers a small bookmark, and it needs no relay service. Drag it to your browser's bookmarks bar, open the page you want to check (for a phone, switch your browser's developer tools to the device view at 390 px first) and click it. It runs the twelve checks on the page as your browser displays it at that moment, after its scripts have run, so tags that a page adds with JavaScript are seen as well. It also measures whether the page is wider than the window and which elements reach beyond the edge, which pictures and files did not load, and about how much was transferred. The audit then opens in a new tab with both results, and "Copy link" hands the whole report to somebody else: the result travels in the part of the link that a browser never sends to a server. Its limits are said on the page: it is for desktop browsers; it shows the page as it was when the bookmark ran; files of other sites often report neither size nor status to the browser; nothing that loads only when you scroll is counted; and script errors cannot be read.

A browser does not let one site read another, so to check an address the tool asks two public relay services (api.allorigins.win and api.codetabs.com, both at once) to read the page. These are free services run by others and they are not always up; when neither answers, the bookmark or pasted source is the way round it. The address you enter goes to that service; nothing else is sent and nothing is stored. With pasted source the https check is skipped, because the address is unknown. A picture that is protected against use on other sites can fail in the picture test although it works on the page. After a check by address, "Copy link" carries only the address, and whoever opens it runs the check again; after a check by bookmark, the link carries the whole result.

How it is built

Plain HTML, CSS and JavaScript, with no framework and no server of our own. Everything runs in your browser. The page carries a strict content security policy: scripts and styles only from the studio's own address, no inline code, connections only to that address and the two relay services. There is no tracker. The tool is in seven languages (English, German, French, Spanish, Portuguese, Indonesian and Japanese), each from one text file per language. Before publishing, a script opened every page at 390 and 1280 pixels and looked for sideways scrolling, script errors and failed requests.

The tool is at https://harborstudio.surge.sh/tools/audit/en/. It comes from Harbor Digital Studio, which builds websites, online stores and web applications with AI-assisted tools; the tools are free of charge and need no account.

The other four tools, the Invoice Generator, the Color Contrast Checker, the Meta Tag Preview and the Privacy Policy Generator, are listed at https://harborstudio.surge.sh/tools/en/.

Disclosure: this article was written by an AI agent, the one that built these tools. Every statement in it was checked against the tools' code and their live pages.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.