5 exercises — master the English vocabulary engineers use to discuss code review metrics: PR cycle time, review SLAs, turnaround time, and first-time-right rate.
0 / 45 completed
1 / 45
An engineering manager presents data to the team: "Our average PR cycle time is currently 4.2 days. That means a developer opens a pull request and it takes over four days on average to get merged. We're targeting a cycle time of under 24 hours." What does PR cycle time measure, and why does it matter as a team metric?
PR cycle time is one of the most actionable team-level engineering metrics because it reveals exactly where the delivery pipeline is slow — and it is directly in the team's control to improve.
PR cycle time components (where the time is spent):
Stage
What it measures
Common cause of delay
Pickup time
PR open → first review comment
Reviewers overloaded; no SLA
Review time
First comment → "approved"
Large PR size; unclear scope
Rework time
Approval requests → re-submission
Unclear review comments; tech debt
Merge time
Final approval → merge
Manual merge gates; branch conflicts
Why sub-24-hour PR cycle time matters:
• Reduces context-switching cost — the author still has the code fresh in their mind
• Enables higher deployment frequency — faster merges mean more frequent releases
• Reduces merge conflicts — shorter-lived branches have less divergence from main
• Improves team flow — unblocked reviewers and authors maintain momentum
Communication language:
• "Our 4.2-day cycle time suggests we have a pickup time problem — PRs are sitting unreviewed."
• "Let's establish a 24-hour SLA for first review response to drive cycle time down."
• "Smaller PRs are the single biggest lever for reducing cycle time — aim for under 200 lines."
Key vocabulary:
• PR cycle time — total elapsed time from pull request opened to pull request merged
• Pickup time — the wait between PR opening and first reviewer engagement
• Cycle time target — the team's agreed-upon maximum acceptable PR cycle time
• Delivery pipeline — the series of stages code passes through from development to production
2 / 45
In a team retrospective, the tech lead introduces a new policy: "Starting next sprint, we're implementing a 24-hour SLA for code reviews. When a PR is opened and you are tagged as a reviewer, you must provide your first review within 24 hours — not necessarily approval, but substantive feedback." What does "review SLA" mean in this context, and why is it important to specify "substantive feedback"?
A code review SLA is one of the most effective team-level interventions for reducing PR cycle time — but its framing matters greatly to avoid incentivising shallow reviews.
What "substantive feedback" means in practice:
• Leave at least one meaningful comment addressing the code's logic, structure, test coverage, or edge cases
• Ask questions if something is unclear — do not approve without understanding
• Request changes if needed — a detailed change request within 24 hours is better than a delayed approval
• "LGTM" (Looks Good To Me) without engagement is not substantive and violates the spirit of the SLA
Why the SLA needs a precise definition:
Without a clear definition, developers game the metric: superficial approvals (checking the box) improve the SLA number but degrade review quality and first-time-right rate.
Review SLA best practices:
① Define what counts as "substantive" — a minimum comment threshold or a checklist
② Track SLA compliance in your engineering metrics dashboard (e.g. LinearB, Swarmia, DX)
③ Enforce reciprocity — teams that review promptly get reviewed promptly
④ Exclude weekends and out-of-hours from SLA calculations
Communication language for review SLA discussions:
• "We're not asking you to approve within 24 hours — we're asking you to engage with the PR."
• "A detailed change request within 24 hours is better than silence for four days."
• "If you're tagged but swamped, reassign the review rather than missing the SLA."
Key vocabulary:
• Review SLA — a team commitment defining the maximum time from PR open to first reviewer response
• Substantive feedback — genuine engagement with the code's content, not a superficial pass/approve
• LGTM — "Looks Good To Me"; a rubber-stamp approval that may lack genuine review depth
• First review response — the moment a reviewer first comments or requests changes on a PR
3 / 45
An engineering analytics platform surfaces this metric: "Review turnaround time: median 18 hours, 90th percentile 72 hours." The team lead says: "The median is acceptable, but the 90th percentile tells us there's a long tail of PRs that are getting stuck. We need to find what's causing that." Why are both the median and the 90th percentile important to look at?
Using percentile distributions rather than averages is a fundamental engineering analytics best practice because averages hide outliers that may represent systematic problems.
What the data reveals in this scenario:
• Median 18 hours: the "typical" PR is reviewed reasonably quickly
• 90th percentile 72 hours: 1 in 10 PRs waits 3+ days — representing a real and recurring problem
• The gap between median and 90th percentile signals a bimodal distribution: most PRs flow quickly, a subset are chronically stuck
Common causes of long-tail review delays (investigating the 90th percentile):
① PR size: very large PRs (500+ lines) are deferred because reviewers don't know where to start
② Reviewer availability: a single required reviewer who is overloaded, on holiday, or in a different timezone
③ Complex domain: PRs touching a legacy or unfamiliar module where few reviewers have expertise
④ Unclear scope: PRs without a description or context that reviewers defer reviewing
⑤ Cross-team dependencies: PRs requiring approval from another team with slower response norms
Metrics communication language:
• "The median is misleading here — the 90th percentile is where the real pain is."
• "We need to look at which PRs are in the long tail — size, reviewer, or code area?"
• "Let's set an escalation process for PRs that exceed 48 hours without a first review."
Key vocabulary:
• Review turnaround time — elapsed time from when a reviewer is assigned to when they respond
• Median — the middle value; represents the typical experience
• 90th percentile — 90% of values fall below this; represents near-worst-case experience
• Long tail — a small proportion of cases with significantly worse outcomes than the majority
4 / 45
A team introduces a new metric to their engineering dashboard: "First-time-right rate: 42% of PRs are merged without any change requests." The engineering manager says: "A 42% first-time-right rate tells us that well over half our PRs need at least one round of revision. This might indicate unclear requirements, insufficient self-review, or overly strict review standards — we need to investigate before concluding." What does first-time-right rate measure, and why does the manager caution against jumping to conclusions?
First-time-right rate is a nuanced metric — interpreting it correctly requires understanding that it can be driven by very different underlying causes with very different remediation strategies.
The four root causes of a low first-time-right rate:
How to investigate which cause dominates:
• Categorise a sample of change requests: scope changes vs. quality improvements vs. style issues
• Correlate first-time-right rate with PR size — does it drop for large PRs?
• Ask authors: were the change requests expected or surprising?
Communication language:
• "Our first-time-right rate of 42% isn't inherently bad — we need to understand whether those revisions are adding value."
• "If reviewers are catching genuine bugs, a lower first-time-right rate reflects rigorous review, not poor quality."
• "Let's tag change requests by category this sprint to understand what's driving the revisions."
Key vocabulary:
• First-time-right rate — the percentage of PRs approved and merged without any change request round
• Change request — a reviewer's request for the author to modify code before approval
• Root cause analysis — investigating the underlying reason for a metric value before intervening
• Review quality — how thoroughly and constructively reviewers engage with submitted code
5 / 45
A senior engineer presents the team's quarterly review metrics report: "PR cycle time is down to 22 hours (target: 24 hours — achieved). Review turnaround SLA compliance is 91%. But our first-time-right rate dropped from 55% to 38%. This combination suggests we may be trading review quality for review speed." What does "trading review quality for review speed" mean, and how should the team respond?
"Trading review quality for review speed" describes a metric anti-pattern where optimising for a speed metric (cycle time, SLA compliance) inadvertently reduces review thoroughness — a classic Goodhart's Law failure.
Goodhart's Law in engineering metrics:
"When a measure becomes a target, it ceases to be a good measure." If reviewers know they are tracked on 24-hour response time, they may respond within 24 hours with superficial reviews to meet the SLA — while the actual review quality degrades.
The diagnostic pattern in this scenario:
• PR cycle time ↓ (faster) — reviewers are responding quickly ✓
• SLA compliance ↑ (91%) — reviewers are meeting the time target ✓
• First-time-right rate ↓ (55% → 38%) — more PRs are requiring rework after "approval" ✗
This combination strongly suggests reviewers are approving code without catching issues that are then discovered post-merge.
Corrective actions:
① Audit post-merge defects: are bug fixes concentrating in recently merged PRs?
② Review calibration: run a session where reviewers all review the same PR and compare findings
③ Author checklist: require authors to self-review before opening a PR (reduces avoidable revision rounds without degrading review quality)
④ Balance the dashboard: display first-time-right rate alongside SLA compliance so reviewers see both metrics
Communication language:
• "We've achieved our speed target but it looks like review depth may have suffered as a result."
• "Metrics need to be balanced — optimising speed alone can erode quality in ways that show up later as bugs."
• "Let's look at which PRs had post-merge issues this quarter to validate the hypothesis."
Key vocabulary:
• Trading review quality for review speed — a pattern where speed metrics improve at the cost of review thoroughness
• Goodhart's Law — the principle that a measure loses validity when it becomes a target
• Review quality signal — a metric or process indicator reflecting how thoroughly PRs are reviewed
• Post-merge defect — a bug found in production that was introduced in a merged PR; a lagging indicator of review quality
6 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
7 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
8 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
9 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
10 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
11 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
12 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
13 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
14 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
15 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
16 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
17 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
18 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
19 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
20 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
21 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
22 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
23 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
24 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
25 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
26 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
27 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
28 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
29 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
30 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
31 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
32 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
33 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
34 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
35 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
36 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
37 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
38 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
39 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
40 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
41 / 45
Sarah: "Hey team, I've been looking at the PR review metrics. We're seeing a high number of 'Needs Changes' comments – over 60% of our pull requests require at least one revision before merging. This is really slowing down our development velocity."
The correct answer highlights the key issue: a high percentage of 'Needs Changes' comments indicates problems with the code review process itself. A 60% rate isn't inherently 'good'; it signifies that reviews aren't effectively identifying and correcting issues before merging. The other options misinterpret the metric – failing to acknowledge potential inefficiencies or overlooking the impact on development velocity.
42 / 45
During a Slack discussion about a recent code review, David says: "I spent almost 8 hours on that review! It was incredibly complex and needed multiple rounds of feedback. The original author didn't seem to have any tests or documentation.". Based on David's comment, what is the primary concern regarding this code review?
The explanation highlights that David's comment focuses on the *time* spent and the contributing factors – complexity, lack of tests/docs. The incorrect options misinterpret his statement; it's not about inherent code complexity (option 1), a general rule for reviews (option 3), or just frustration (option 4). David is pointing to a situation where poor quality initial code contributed significantly to the extended review process, highlighting a key area for improvement in future development.
43 / 45
A developer submits a pull request containing significant refactoring of a core library. The code reviewer comments: "This is well-structured and addresses the original problem effectively, but I'm concerned about potential regression issues in dependent modules. Could you add some integration tests to cover these scenarios?" What does this comment primarily indicate regarding the code quality?
This comment focuses on the crucial aspect of testability. While the refactoring itself might be good, the reviewer highlights the risk of unintended consequences due to missing integration tests. This points to a lack of sufficient coverage and suggests that the code needs further validation through automated testing before being merged – it's about preventing regressions.
44 / 45
PR Response: "The code is generally well-written and follows our style guide. However, I'm noticing a lack of clear logging around the authentication flow. Adding some log statements would significantly improve debugging capabilities."
This comment focuses on maintainability and operational efficiency. The reviewer isn't concerned with raw speed or performance; instead, they highlight the absence of logging – a critical element for debugging and troubleshooting in production environments. This demonstrates an understanding that robust code needs to be easily diagnosable, not just functionally correct.
45 / 45
During a sprint retrospective, the team lead asks: "We've been tracking our 'defect density' metric – that's the number of bugs found per 1000 lines of code. It's currently at 3.2. What does this metric *primarily* indicate about the quality of the codebase?"
Defect density measures the quantity of defects relative to code size, primarily indicating the quality of the codebase. A higher value suggests more bugs per unit of code, likely due to poor testing or design choices. The goal isn't just to reduce the *number* of bugs but to improve the *density*, meaning fewer bugs for a given amount of code – demonstrating better engineering practices and potentially stronger testing strategies. Options B and D misinterpret the metric's significance; focusing solely on bug count ignores context.
What does the "Code Review Metrics Vocabulary" exercise practise?
Practice English vocabulary for code review metrics: PR cycle time, review turnaround time, 24-hour SLA, first-time-right rate, and review quality language. 5 exercises.
How many questions are in this exercise?
This exercise has 45 questions, each multiple-choice with a full explanation shown after you answer.
What English level is this exercise for?
This exercise is tagged Advanced. If the vocabulary feels difficult, browse the Code Quality & Metrics category page for an easier module to start with.
Is this exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is free with no account, sign-up, or paywall.
Do I get feedback if I answer incorrectly?
Yes — whichever option you choose, right or wrong, you'll immediately see an explanation clarifying the correct term and why the other options don't fit.
Can I retry this exercise?
Yes — once you finish all the questions, a "Try again" button on the results screen resets the exercise so you can practise as many times as you like.
Do I need an account to track my progress?
No account is required. Your progress bar and score for this session are tracked in the browser as you go, but nothing is saved once you leave the page.
Is "Code Review Metrics Vocabulary" part of a larger series?
Yes — it's one exercise in the Code Quality & Metrics category on CoderSlingo. See the category page for the full list of related exercises on similar terminology.
Can I link directly to this exercise?
Yes — this exercise has its own permanent URL, so you can bookmark it or share the link directly with a colleague or study partner.
Where can I find more exercises like this one?
See the Code Quality & Metrics category page for related exercises, or browse the main Exercises hub for other IT English topics.