How to Do a Useful Code Review: A Checklist for Reviewers

Most code reviews fail in one of two ways: they wave everything through, or they argue about spacing while a real bug sails past. A useful code review sits between those extremes. It checks the change for correctness, readability, and risk, and it does it fast enough that the author is not blocked for a day. This checklist covers what to look for, in the order that finds the most important problems first.

What makes a useful code review

A useful code review starts with the change, not the person. Read the description and the linked ticket first, so you know what the change is supposed to do. Then read the diff with that goal in mind. Ask whether the code does what it claims, whether it handles the unhappy paths, and whether a stranger could understand it in six months. Leave the formatting to the linter; your time is for the decisions a machine cannot judge. Review in small sessions, not in one long slog, because attention is the resource that runs out first. A review that takes twenty focused minutes beats one that takes two distracted hours.

Review the change not the person

Review the change not the person who wrote it. Comment on the code: “this function returns null when the input is empty, and the caller does not check for it” is a useful observation. “You always forget the null check” is a judgment, and it makes the author defend themselves instead of fixing the code. When you disagree about an approach, explain the trade-off and suggest the alternative concretely. A comment that says “consider extracting this into a helper so the retry logic is tested once” gives the author something to act on. A comment that only says “this is wrong” gives them a puzzle. The tone of a review decides whether the author asks for a review again next time.

Small pull requests get reviewed

Small pull requests get reviewed, and large ones get skimmed. A pull request with two hundred changed lines gets a careful read. One with two thousand gets a glance and an approval, because nobody has the time or the focus to hold it all in mind. Authors should split work into reviewable chunks: one feature per pull request, with the refactoring in a separate one where possible. Reviewers should say so when a pull request is too big to review well, and ask for it to be split instead of pretending they read it. The cost of a split is small. The cost of a bug that slipped through a skimmed review is not.

Checklist for reviewers

A checklist for reviewers keeps the review consistent when attention fades. Work through it in this order: correctness first, then design, then readability, then tests.

  • Correctness. Does the code do what the ticket asked? Are the edge cases handled: empty input, missing records, failed network calls, permission errors? Are there off-by-one mistakes in loops and boundaries?
  • Security. Does any user input reach a query, a file path, or a shell command without validation? Are secrets, tokens, or credentials logged or returned in a response?
  • Design. Does the change fit the existing structure, or does it add a second way of doing the same thing? Is the new code in the right layer, or is business logic leaking into a controller?
  • Tests. Do the tests cover the new behaviour, including the failure paths? Do they test behaviour or just assert implementation details? If there are no tests, is that a deliberate choice or an oversight? Good tests matter here, and writing tests that catch bugs, not just coverage is a useful companion to this checklist.
  • Readability. Are names honest about what things do? Are functions short enough to read in one screen? Is there a comment where the reason is not obvious from the code?
  • Scope. Does the pull request contain unrelated changes that should be split out? Are there leftover debug statements, commented-out code, or temporary files?

Feedback people act on

Feedback people act on is specific, small, and prioritised. Instead of “this needs work”, write “the retry loop has no limit, so a failing service will retry forever; cap it at three attempts with a backoff”. Mark the comments that must be fixed before merging and the ones that are optional suggestions, so the author knows what blocks the merge and what is a nice-to-have. Approve when the blocking comments are resolved, not when the code is perfect. A review that holds a pull request hostage over taste will teach the author to avoid reviews, and the next change will ship without one. The JavaScript testing frameworks compared for 2026 can help when a review raises the question of which test runner the new tests should use.

The traps that waste everyone’s time

Three traps waste the most review time. The first is reviewing style by hand when a formatter and a linter already exist: automate it, and never comment on it again. The second is the review that arrives three days late, after the author has moved on and forgotten the context; agree on a response time, usually within one working day, and keep it. The third is the reviewer who rewrites the author’s code in comments instead of suggesting the change: if the fix is a one-liner, suggest it with the suggestion feature and let the author accept it in one click. A pipeline that runs the tests on every pull request helps here too; a CI pipeline built with GitHub Actions catches the broken build before a human ever opens the diff. And when the review is part of a sprint, running a weekly sprint review in Asana gives the team a regular moment to talk about review load before it becomes a bottleneck.

Code review is a team habit, not a gate. Keep pull requests small, review the change instead of the person, work the checklist in order, and give feedback the author can act on the same day. The reviews get faster, the code gets better, and the habit sticks.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.