ShipBetterUIBot
What the scanner does on a page, and how its audits are made and scored.
What it does
ShipBetterUIBot is the scanner behind the free UI score. When someone asks for an audit of a page, it opens that one page and measures what code can measure: contrast, type sizes, spacing, tap target sizes, keyboard focus and motion settings.
It only reads. It does not click, fill in forms, sign in, accept cookie banners or download files. All it does on a page is scroll it once, press Tab, and move the pointer over buttons and links, to see whether they respond. It takes small pictures of what anyone can see there, for the person who asked: one of the first screen, and a few of the parts its advice is about.
It does not crawl and it does not follow links. It visits only when a person asks for an audit, and then only the one page they entered.
How an audit is made
An audit is made by code alone. No AI model reads the page and no outside service judges it: every number comes from our own copy of Chrome, measuring the page as any visitor would load it.
- It loads the page at 1440 by 900 for a desktop and at 390 by 844 for a phone, and narrows the phone view to 320 wide once, to see whether the page still fits.
- At desktop width it reads the styles the page sets: its fonts, colours, spacing, corners and transitions.
- At phone width it measures body text size, tap targets, sideways scroll and layout shift.
- It judges text contrast with axe-core, and from the pixels behind text that sits on a picture or a gradient.
- It presses Tab through up to 20 stops and photographs each one with and without focus.
- It moves the pointer over up to 10 buttons and links, to see whether each one changes.
- Only when animations keep running with reduced motion turned on, it loads the page once more with reduced motion asked for from the start.
- A box that covers the page, such as a cookie notice, is hidden while it measures, never clicked, and the audit says so.
A page has 75 seconds. A step that runs out of time is listed as not measured, never as passed.
How the score is calculated
- Six areas share 100 points: Type 20, Colour 20, Space 15, Shape 10, States 20 and Motion 15.
- Inside an area every measured check counts the same: a pass earns its full share, a part mark half and a miss none.
- A check with nothing to measure is left out and the rest of its area is scaled up. An area with nothing measured is left out and the page is scaled to 100 from the others.
- A failed accessibility basic (text contrast, tap targets under 24px, visible focus or form field labels) holds the score at 79.
- 85 and up is Strong, 70 and up is Good, 50 and up is Needs work, and under 50 is Rough.
- Under 12 measured checks there is too little on a page to rate, so the number is shown without a band.
A few more rules, each from the code that grades the page:
- The hold at 79 applies only when a page earns more than 79.
- Tap targets hold the score only when a target under 24px sits next to another. Too few targets at 44px is a miss, not a hold.
- The score is the points earned, rounded to a whole number.
- Fixes are listed in one order everywhere: failed accessibility basics first, then by how much fixing each one alone would win back.
- What a fix is worth is worked out for that fix alone, as if every other check stayed as it is. The figures for several fixes do not simply add up: the hold at 79 can take up what they win, and two failed basics each show little on their own.
- Each audit keeps the rules it was graded with, so an older audit reads as it did on the day it was made.
- A check is not measured in one of two ways. When the page has nothing of its kind, the check is left out and the rest of its area is scaled up. When a step could not run, because it was too slow, was refused or was covered, the check is left out too, and the audit says which step and why. Neither counts as a pass.
- Up to 30,000 elements are measured in each pass. A longer page is sampled evenly, never cut off, and the audit says so.
- Open web components and up to 20 frames from the same site are looked inside. Closed web components and frames from other sites cannot be read, and the audit says when it met one.
The 21 checks
Some checks measure against a published standard. Others use a design rule of thumb: a number we hold every page to because it reads well, not because a standard asks for it. Each check says which.
Type, 20 points
Body text size
- Passes
- Body text 16px or more at 390 wide, with pinch zoom left on.
- Part mark
- 14px up to 16px, or 16px and up with pinch zoom switched off.
- Judged by
- A design rule of thumb we use, not a standard. 16px is a readability guideline for phones, not an accessibility requirement. Switching pinch zoom off goes against WCAG 2.2 level AA (1.4.4).
- Not measured when
- There is too little text on a phone to judge, or the phone-sized visit did not load.
Font sizes in use
- Passes
- 8 font sizes or fewer carry the text at desktop width. Sizes within 0.5px count once; code and stray sizes are left out.
- Part mark
- 9 to 12 font sizes.
- Judged by
- A design rule of thumb we use, not a standard.
- Not measured when
- The page has no text to read.
Font families
- Passes
- 2 font families or fewer carry the text. A family used only for code, or on under 1% of the text, is left out.
- Part mark
- 3 font families.
- Judged by
- A design rule of thumb we use, not a standard. One face for headings and one for text is a common pair.
- Not measured when
- The page has no text to read.
Line length
- Passes
- 85% of running text at 75 characters a line or fewer (40 for Chinese, Japanese or Korean).
- Part mark
- Up to 90 characters a line (50 for Chinese, Japanese or Korean).
- Judged by
- A design rule of thumb we use, not a standard. WCAG 2.2 level AAA (1.4.8) asks for 80 or fewer.
- Not measured when
- No running text wraps over more than one line.
Body line height
- Passes
- Body text line height from 1.4 to 1.8 times its size (from 1.3 for text of 18px and up; 1.5 to 2 for Chinese, Japanese or Korean).
- Part mark
- Up to 0.1 under that range, or up to 2 over it (1.4 to 1.5 and 2 to 2.2 for Chinese, Japanese or Korean).
- Judged by
- A design rule of thumb we use, not a standard.
- Not measured when
- There is too little running text to judge.
Colour, 20 points
Text contrast
Accessibility basic
- Passes
- No judged text under 4.5:1, or 3:1 for large text (24px, or 18.66px bold), and none that drops under its minimum over a picture.
- Part mark
- Under 2% of the judged characters fall short and none is under 3:1; or nothing falls short and some text over a picture reads only in places.
- Judged by
- Measured against WCAG 2.2 level AA (1.4.3). An accessibility basic: a miss holds the score at 79.
- Not measured when
- The page has no text, or none of it could be judged (it all sits on pictures or gradients).
Colours in use
- Passes
- 5 colour families or fewer, and 20 colours or fewer. Near-identical shades count once; artwork and code colours are left out.
- Part mark
- 6 or 7 colour families, and 20 colours or fewer.
- Judged by
- A design rule of thumb we use, not a standard. Audits made before colour families were counted pass at 12 colours or fewer.
- Not measured when
- No colour could be read.
Space, 15 points
Spacing on a 4px grid
- Passes
- 80% of margins, paddings and gaps on a 4px grid (2px steps are fine up to 12px).
- Part mark
- 60% or more on the grid.
- Judged by
- A design rule of thumb we use, not a standard.
- Not measured when
- The page sets no margins, paddings or gaps.
Sideways scroll on a phone
- Passes
- Nothing scrolls sideways at 390 wide, nothing is cut off past 8px, and the page fits at 320.
- Part mark
- Content cut off by hidden overflow at 390 that takes no control or table text out of reach; or the page fits at 390 and scrolls or cuts content off at 320.
- Judged by
- Measured against WCAG 2.2 level AA (1.4.10).
- Not measured when
- The phone-sized visit did not load.
Layout shift while loading
- Passes
- A layout shift under 0.1 while the page loads on a phone.
- Part mark
- A shift from 0.1 up to 0.25.
- Judged by
- A design rule of thumb we use, not a standard. The same thresholds as Google's Core Web Vitals.
- Not measured when
- The phone-sized visit did not load.
Shape, 10 points
Corner radii in use
- Passes
- 4 corner radii or fewer. Square corners pass: this check is always measured.
- Part mark
- 5 or 6 corner radii.
- Judged by
- A design rule of thumb we use, not a standard.
- Not measured when
- Never: square corners count as one choice, so this check is always measured.
Stretched images
- Passes
- No photo or bitmap image drawn out of its own shape.
- Judged by
- A design rule of thumb we use, not a standard.
- Not measured when
- The page has no photo or bitmap image.
Images with alt text
- Passes
- Every image a screen reader meets has a text alternative (an empty alt is right for decoration).
- Part mark
- Under 10% of them without one.
- Judged by
- Measured against WCAG 2.2 level A (1.1.1).
- Not measured when
- The page has no images.
States, 20 points
Tap target size
Accessibility basic
- Passes
- 90% of tap targets 44px or more each way at 390 wide, and none under 24px next to another.
- Part mark
- 60% or more at 44px, and none under 24px next to another.
- Judged by
- Measured against WCAG 2.2 level AA (2.5.8). The 24px floor is the WCAG measure; the 44px share is a design rule of thumb we use. An accessibility basic: only a target under 24px next to another holds the score at 79.
- Not measured when
- There is nothing to tap, or the phone-sized visit did not load.
Visible focus
Accessibility basic
- Passes
- Every judged Tab stop shows a visible change when it takes focus.
- Part mark
- 80% of them or more.
- Judged by
- Measured against WCAG 2.2 level AA (2.4.7). An accessibility basic: a miss holds the score at 79. A strong ring, 2px and 3:1 against what is behind it, is WCAG 2.2 level AAA (2.4.13): advice, not scored.
- Not measured when
- Nothing takes keyboard focus, or a pop-up keeps the Tab key.
Form field labels
Accessibility basic
- Passes
- Every form field has a label or a name.
- Judged by
- Measured against WCAG 2.2 level A (1.3.1, 4.1.2). An accessibility basic: a miss holds the score at 79.
- Not measured when
- The page has no form fields.
Hover feedback
- Passes
- 80% of the hovered buttons and links change.
- Part mark
- 50% or more.
- Judged by
- A design rule of thumb we use, not a standard.
- Not measured when
- There is nothing to hover, or a pop-up covers the page.
Button and link names
- Passes
- Every button and link has a name, from its text, an aria-label or its image's alt.
- Part mark
- Under 10% of them without one.
- Judged by
- Measured against WCAG 2.2 level A (4.1.2).
- Not measured when
- The page has no buttons or links.
Motion, 15 points
Reduced motion
- Passes
- Nothing keeps moving when the visitor asks for less motion.
- Part mark
- Half or fewer of the moving effects left, and none endless over a quarter of the first screen.
- Judged by
- A design rule of thumb we use, not a standard. WCAG 2.2 level AAA (2.3.3) asks for this.
- Not measured when
- Nothing on the page moves.
Transition lengths
- Passes
- No use of a transition over 500ms.
- Part mark
- A tenth of the uses or fewer over 500ms, and none over 2,000ms.
- Judged by
- A design rule of thumb we use, not a standard. Audits made before every use was counted are judged on the longest alone: up to 1,000ms is a part mark.
- Not measured when
- The page has no transitions.
Transitions on layout
- Passes
- No transition animates a layout property, such as width, height, margin, padding, gap, top or font-size.
- Part mark
- 1 or 2 declarations, or transition: all seen to animate layout on hover.
- Judged by
- A design rule of thumb we use, not a standard.
- Not measured when
- The page has no transitions.
What an audit cannot see
- Taste, brand fit and whether the layout feels right.
- Text inside images, canvas and video.
- Other pages, signed-in screens, and anything you click to open.
This is not an accessibility compliance audit. It measures 21 checks in a real browser, and a review by a person will find things it cannot.
Some findings may be deliberate design choices. The audit cannot know intent, so treat them as prompts, not orders.
The rules of thumb above are prompts, not orders.
How long an audit is kept
An audit, its pictures and its PDF are deleted 30 days after the audit is made.
The fixes you mark as addressed are kept only in your browser: we never see them.
To have an audit deleted sooner, email hello@shipbetterui.com from the address you used.
What one visit looks like
One audit asks your server for these, in this order, within about a minute:
- Your robots.txt, to see whether the page is open to it.
- The page, once, as a plain request, to check that it is a public web page.
- The page in Chrome at desktop width, with its styles, scripts and pictures, as any browser would load it.
- The page in Chrome again at phone width, once.
- Only when its animations keep running with reduced motion turned on: the page once more at desktop width, with reduced motion asked for from the start.
That is three requests for the page itself and one for robots.txt, and a fourth for the page only in that last case. Each of the page's own files (styles, scripts, pictures) is asked for once each time Chrome loads the page, so twice, or three times with the last load, and Chrome may ask for your favicon.
If the page redirects, the address entered is asked for once, and the redirect is followed. Where it lands on another site, that site's robots.txt is read before its page is asked for. It asks for pages in English, and it stops by itself after a few minutes whatever happens.
One connection can make at most five tries an hour and four audits a day, one email address two audits a day, and we run at most a hundred a day in all. A page audited in the last day is offered back from our copy before anyone audits it again.
Once a day it also audits this very page twice in a row, with no one asking, to check that it still works and reads the same both times. If that check fails, or the score moves by 10 or more, we are told at once.
How to recognise it
Every request it makes carries its name. The first two come with this user agent:
Mozilla/5.0 (compatible) ShipBetterUIBot/1.0 (+https://shipbetterui.com/ score/bot)The visits in Chrome use Chrome's own user agent, for a desktop and then for a phone, with this at the end:
ShipBetterUIBot/1.0 (+https://shipbetterui.com/ score/bot)It has no fixed IP address, so the name is the way to tell. To check a visit you see in your logs, email us the page and the time: we keep a record of every audit for 30 days and will tell you whether it was ours.
How to let it in
Some firewalls and bot filters turn away anything that is not a known browser. An audit of a page behind one fails, and the person who asked is told that the page turned our scanner away. To let it in, add a rule to your firewall or bot filter that allows requests whose user agent contains ShipBetterUIBot.
If your robots.txt keeps robots out of the page, add this group to it:
User-agent: ShipBetterUIBot
Allow: /Then audit the page again.
How to keep it out
It reads your robots.txt before it asks for the page. To keep it out of your whole site, add:
User-agent: ShipBetterUIBot
Disallow: /To keep it out of part of your site, put that part's path after Disallow instead. Where there are no rules for it by name, it obeys the ones you set for all robots. Anyone who asks for an audit of a page you have closed is told so, and the page is never requested.
Questions
Email hello@shipbetterui.com.