Discuss your project

Glossary

Code Review

Code review is the systematic examination of source code changes by at least one other person before they are merged into the main line of a piece of software. The goal is changes that are correct, understandable, secure, and maintainable.

October 25, 2026Code ReviewSoftware QualitySecurityDual Control

In a code review, someone else looks at a change before it becomes part of the software. The principle is known from other fields as the four-eyes principle. In practice, the review usually takes place through a pull request or merge request on platforms such as GitHub, GitLab, or Azure DevOps. There, the change is compared with the previous state, commented on, and merged only after approval. The NIST Secure Software Development Framework explicitly recommends reviewing or analyzing human-readable code as a practice for finding vulnerabilities.

How a code review works

  1. Prepare a small change: A manageable change with a clear purpose can be reviewed thoroughly.
  2. Provide context: The description explains what changes, why, and how it was tested.
  3. Automation first: The CI/CD pipeline checks tests, formatting, and known vulnerabilities before people invest time.
  4. Review and comment: The reviewer reads the change, asks questions, and suggests improvements.
  5. Revise: The author adjusts the change or explains the decision.
  6. Approve and merge: Protected branches technically ensure that nothing reaches the main branch without approval.

What a review looks for

Google's publicly available Engineering Practices list these checkpoints, among others:

For security, additional questions come in, as described in the OWASP Code Review Guide: Is input validated and output encoded correctly? Are permissions enforced on the server side? Are credentials in the code? Are new dependencies introduced, for example via Composer?

The right standard

Google formulates a pragmatic standard: reviewers should approve a change once it clearly improves the overall code health of the system, even if it is not perfect. Minor points are marked as optional comments. This keeps the review a tool for better software rather than a bottleneck.

AI in code review

AI tools such as Claude Code can automatically pre-review pull requests and point out possible bugs or security issues. This saves time but does not replace human accountability. Two rules matter: AI-generated code goes through the same review as any other code. And company code belongs only in approved tools with clarified data processing, not in private accounts, see shadow AI.

Typical mistakes

Tips for small teams

Even in teams of two or three people, a review is worthwhile, at least for security-relevant changes such as sign-in, permissions, payments, and data exports. Where nobody can review internally, an external review at fixed intervals helps. Documented approvals also make it easier to provide evidence to clients.

How it differs

Tests check whether code behaves as expected. The review also checks clarity, structure, and intent. Static analysis tools find certain classes of errors automatically. A penetration test attacks the running application from the outside. The methods complement each other and together feed into vulnerability management.

Sources

View software development

YOUR NEXT STEP

What should
work better
next?

Tell us briefly what you have in mind. We will assess it and suggest a sensible next step.