- Review for maintainability, accessibility, performance and security, not just visual accuracy.
- Use a short checklist so every reviewer asks the same questions.
- Automate what machines can check, and save human attention for judgement.
- Accessibility issues are cheapest to fix at review time, and costly after launch.
What a frontend review should achieve
A frontend code review is a conversation about a change before it joins the codebase. For frontend work, it has a special responsibility: the code decides what real people experience, including people who use keyboards, screen readers, slow connections or small screens.
A pull request can look perfect in the designer's browser and still be hard to maintain, inaccessible and slow. A good review catches these problems when they are cheap to fix. It also spreads knowledge, so quality does not depend on a single person.
Prepare the review for success
Reviews go better when the author does some work first. Ask for:
- A clear description of what changed and why
- Screenshots or a short recording for visual changes, at mobile and desktop sizes
- A link to the task or design
- Notes on how it was tested, including browsers and devices
- A small change size, ideally reviewable in thirty minutes
Let automation handle the routine. Formatters, linters and automated tests should pass before a human looks at the change. Our guide on managing code quality across distributed teams explains how to set this up.
Review for maintainability
Maintainable code is code that a stranger can understand and change safely a year from now. Look for:
- Clear naming. Components, functions and classes say what they do.
- Single responsibility. Each component does one job, and large ones are split sensibly.
- Reuse over repetition. Existing components and design tokens are used instead of duplicated styles.
- Simple state. State lives in the right place and is not duplicated.
- Readable CSS. Consistent naming, limited specificity and no stacking of overrides.
- Comments that explain why, not what.
- Tests for logic and important behaviour.
Ask: if the designer changes a colour or spacing value, how many places must change? If the answer is many, tokens or shared components are missing. A design system, even a small one, helps; see design systems for small product teams.
Review for accessibility
Accessibility is part of quality, not an optional extra. Web Content Accessibility Guidelines (WCAG) 2.2 at level AA is the common target. A reviewer can check many things by reading code and trying the interface.
- Semantic HTML. Headings in order, lists as lists, buttons as buttons and links as links. A clickable div is a warning sign.
- Keyboard use. Every interactive element can be reached and used with the keyboard, in a logical order.
- Focus. A visible focus indicator is present, and focus moves sensibly when dialogs open or close.
- Names and labels. Form fields have associated labels, icons have accessible names and images have meaningful alt text, or empty alt when decorative.
- Colour and contrast. Text and controls meet contrast requirements, and colour is not the only way to convey meaning.
- Touch targets. Controls are large enough to tap comfortably.
- Motion. Animations respect the reduced-motion preference and cannot cause discomfort.
- Errors. Form errors are announced, described clearly and tied to the field.
Try the interface using only the keyboard, and run an automated checker as a first pass. Automated tools find only a portion of problems, so a human check remains essential. For navigation specifically, see accessible navigation patterns, and for planning accessibility in a redesign, read website accessibility in a redesign.
Review for performance
Frontend code directly affects how fast a page feels. Check that the change does not harm Core Web Vitals:
- Images are sized properly, compressed, lazy-loaded below the fold and given width and height to prevent layout shift
- New scripts and libraries are justified, and their size is known
- Third-party scripts are loaded carefully
- Fonts are limited and loaded efficiently
- Animations use properties the browser can handle smoothly
- Heavy work does not block the main thread
Our article on GSAP and scroll animation shows how rich effects can coexist with good metrics.
Review for security and robustness
Even simple frontends can introduce risk. Check for:
- User content inserted into the page without escaping
- Secrets or API keys exposed in front-end code
- Unsafe links that open new windows without protection
- Forms that rely only on browser validation
- Error states and empty states handled gracefully, not just the happy path
A pull request checklist
Copy this into your repository's template:
- Does it match the design on mobile, tablet and desktop?
- Can it be used with a keyboard and a screen reader?
- Are semantic elements, labels and alt text correct?
- Does it reuse existing components and tokens?
- Is the code readable, with no unnecessary complexity?
- Does it avoid unnecessary weight or layout shift?
- Are loading, empty and error states handled?
- Are tests or manual test notes included?
Give feedback that helps
How you review matters. Explain reasons, offer alternatives and separate required changes from suggestions. Praise good solutions. Avoid personal language, since text can read harsher than intended. Agree a review turnaround so work does not wait.
If you want developers who review and build to these standards, our dedicated developers work in your repositories and follow your process. You can also talk to us about a frontend code audit.
Common questions
What should I look for in a frontend code review?
Maintainability, accessibility, performance, security and design accuracy. Check naming, reuse, semantic HTML, keyboard use, image handling, script weight and handling of loading and error states.
How do I check accessibility in a code review?
Read for semantic HTML, labels, alt text and contrast, then test with the keyboard and an automated checker. Remember that automated tools find only some issues, so manual checks remain necessary.
How large should a frontend pull request be?
Small enough to review in about thirty minutes. Smaller changes are reviewed faster and more thoroughly, and they are easier to reverse.
Should style and formatting be discussed in review?
No. Use formatters and linters to enforce them automatically, so reviewers can focus on logic, accessibility, performance and maintainability.
What WCAG level should a business website meet?
Most organisations target WCAG 2.2 level AA. It covers the most important barriers, such as contrast, keyboard access and form labels, and is widely referenced in legal and procurement requirements.

