Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
TypeScript
Site Health Score (0-100)
Score the site after the QA pass using six categories. Each category is scored 0-100, then combined with the fixed weights below. All numbers come from findings you recorded with evidence; never score a category from impression.
Categories, weights and scoring
| Category | Weight | What it covers | How to score |
|---|---|---|---|
| Availability | 20 | Pages that fail to load (5xx, blank page, crash screen) | 100 if every visited page loads. −20 per distinct page that fails to load. |
| Core flows | 30 | Sign-up, log-in, search, checkout, and any flow named in the test plan | Start at 100. −40 per blocked flow (cannot finish), −15 per impaired flow (finishes only via a workaround). |
| Errors | 15 | Uncaught JS exceptions and failed same-origin requests (4xx/5xx) | 0 → 100; 1-2 → 75; 3-5 → 50; 6-10 → 25; 11+ → 0. Count unique by message + URL. |
| Accessibility | 15 | Unlabeled inputs, missing alt text on meaningful images, keyboard traps, contrast below 4.5:1 for body text | Start at 100. −20 per keyboard trap, −10 per unlabeled input or contrast failure, −5 per missing alt text. |
| Performance | 10 | Load time to interactive on the slowest visited page, measured from the navigation timing entry | ≤2.0s → 100; 2.01-4.0s → 70; 4.01-8.0s → 40; >8.0s → 10. |
| Content | 10 | Typos, placeholder text, wrong labels, truncated text | Start at 100. −5 per distinct content issue. |
Weights sum to 100.
Rules
- Each finding counts in exactly one category. If a finding fits several, use the first matching row in the table above (Availability first, Content last).
- A broken element repeated on many pages (shared header, footer) counts once.
- No category goes below 0.
- A category with no checks run is untested: drop it and divide by the sum of the remaining weights. Mark the result "partial" and list the untested categories.
- Final score = Σ(category score × weight) ÷ Σ(weights of tested categories). Round half up to a whole number at the end only.
Bands (for the report headline)
- 90-100 Healthy
- 70-89 Needs attention
- 40-69 Degraded
- 0-39 Broken
Example
Availability 100, Core flows 85 (one impaired flow), Errors 75 (2 errors), Accessibility 90 (one unlabeled input), Performance 70 (3.1s), Content 95 (one typo). (100×20 + 85×30 + 75×15 + 90×15 + 70×10 + 95×10) ÷ 100 = (2000 + 2550 + 1125 + 1350 + 700 + 950) ÷ 100 = 86.75 → 87, Needs attention.