Home Best Practices 10 facts about code review quality

10 facts about code review quality

Author

Date

Category

This is a short and sweet story about important facts to know and share about code review quality. You can also read more about this in our new ebook. Join the discussion on reddit and hacker news.

680 companies were asked about their code quality and code review practices. Below are some of the learnings.

A Soviet inspector reviews a BGM-109G Tomahawk ground launched cruise missile.
A Soviet inspector reviews a BGM-109G Tomahawk ground launched cruise missile.

The facts

Fact 1:

We spend a significant amount of time reviewing code. In fact on average, we spend 5 hours per week reviewing code or 12.5% of our week looking at code.

Fact 2:

As a developer, spending more than a day a week reviewing code doesn’t correlate with improvements in perceived code quality OR in more time shipping new features (as opposed to fixing bugs or paying back tech debt).

Diminished returns: spending more than a day per week reviewing code does not correlated with better perceived code quality
Diminished returns: spending more than a day per week reviewing code does not correlated with better perceived code quality

Fact 3:

45% of developers say ‘Lack of Time’ is the real obstacle to reviewing code while 34% say ‘Pressure to Ship’.

Fact 4:

72% of developers say their code reviews are blocking (don’t ship a line of code without being reviewed).

Fact 5:

66% of developers require 1 person to approve their pull requests. 25% require 2 people. Less than 5% require more than 2.

Fact 6:

53% of people monitor code coverage but 65% don’t have a minimum threshold of code coverage to approve a pull request.

Fact 7:

29% of developers say the biggest problem in their project is “Workload” while VPs of Eng and Directors say “Delivery speed”. The third biggest problem for developers is “Management

Who gets to review code? Two thirds of companies prefer the all hands on deck approach to code review.
Who gets to review code? Two thirds of companies prefer the all hands on deck approach to code review.

Fact 8:

Regarding who gets to review code, having everyone in the team do it is the most common practice. Other alternatives are having owners of projects or modules or having senior developers review most of the code.

Fact 9:

Stricter code reviews lead to less time fixing bugs and more time delivering new features. Less strict code reviewers spend 31% of their time fixing bugs whereas stricter reviewers spend 24%. Regarding time focusing on new features: 43% and 54% corresponding.

Fact 10:

Developers spend 45% of their time fixing bugs or addressing technical debt vs of building new features.

Time spent on average per activity during development
Time spent on average per activity during development

Thanks for reading! You can also read more about this and other great learnings in our new ebook about code reviews:

Click to get the ebook
Click to get the ebook

Until next time!


About Codacy

Codacy is used by thousands of developers to analyze billions of lines of code every day!

Getting started is easy – and free! Just use your  GitHub, Bitbucket or Google account to sign up.

GET STARTED

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Recent posts

New Public Product Roadmap – See What's In Store For Q1

We’re excited to release a public product roadmap for 2020.  Now, those outside Codacy can see what our team is working on...

4 Trends To Boost Software Quality in 2020

Today’s abundance of technology has created an increased demand for higher software quality. With companies aware of this, spending on IT worldwide...

7 Reasons Dev Teams Choose Codacy Over Other Automated Code Review Tools

Today more than 100,000 developers at leading global organizations like PayPal and Adobe across industries use Codacy (read customer case studies). ...

Introducing GitHub Sync For Seamless User Management

Announcing GitHub Sync: Synced Organizations For GitHub We are thrilled to announce "GitHub Sync" -- automatic user and repository...

Ringing In 2020 With Codacy

It’s been an exciting 2019 at Codacy and we expect more excitement in 2020. Over the last 12 months we’ve built out...