Software engineering · Teamwork · Career · Test automation
Code Review Checklist: What to Look For and How to Write Comments
A practical code review checklist: correctness, readability, tests, security and performance; small PRs, constructive comments and what to leave to automation.

As a senior developer, a good part of my week goes into reading other people's code. Done well, code review catches bugs before production and spreads knowledge across the team; done badly, it becomes demoralising bureaucracy that leaves PRs waiting for days. Here is the checklist I use.
Automation first
Don't spend human time on what a machine can do. Formatting (Prettier), lint rules, type checks, tests and bundle size should be checked in CI. A review comment saying "missing semicolon here" signals missing automation. For the CI setup see frontend CI with GitHub Actions.
Before reviewing: understand the context
- Does the PR description explain what changed and why?
- Is the related ticket or design decision linked?
- Do UI changes include a screenshot or preview link?
If there's no description, ask for one before diving into the code.
The checklist
Correctness
- Does the code do what it claims? Are edge cases considered (empty lists,
null, network errors, concurrent requests)? - Are error paths handled, or are errors silently swallowed?
Design
- Is the change in the right layer? Is business logic buried in a component?
- Has an existing helper or component been rewritten?
- Can the thing most likely to change be changed easily?
Readability
- Do names say what things do? Will someone reading this in six months understand it?
- Do comments explain "why" rather than "what"?
Tests
- Is the new behaviour tested, especially the error path?
- Do tests check behaviour rather than implementation details? The principles in Angular component testing apply broadly.
Security
- Is user input validated? Is anything open to SQL, HTML or command injection?
- Is authorisation checked on the server? Do secrets leak into logs or the client?
Performance
- Queries inside loops (N+1)? Needless re-renders?
- Was a large dependency added?
How to write comments
- Critique the code, not the person: instead of "you did this wrong", "this function looks like it fails when it gets
null". - State priority:
nit:(minor, optional),question:,blocking:. The author needs to know what's mandatory. - Ask questions: "Did you consider a
Maphere?" often works better than an order. - Point out what's good. Calling out a clever solution does a lot for team culture.
Small PRs
Nobody truly reviews a PR over 400 lines; it gets approved. Split big work into small, independent pieces behind feature flags. My target is a PR that can be reviewed in 20 minutes.
Speed is quality too
A PR waiting a day means the author switches context and conflicts grow. Make it a team rule to respond to review requests the same day, ideally within a few hours.
Conclusion
Good code review focuses on what automation can't do: correctness, design and clarity. With clearly prioritised, respectful comments and small PRs, review stops being a bottleneck and becomes the team's learning tool.


