Measuring Requirements Quality Independently of Code Quality
Requirements quality is foundational to project success and can be assessed pre-development using objective, code-agnostic metrics focused on the requirements artifacts themselves (e.g., documents, user stories, or models). This draws from standards like IEEE 830-1998, ISO/IEC/IEEE 29148, and agile practices (e.g., INVEST criteria for user stories). The goal is to evaluate attributes like clarity, completeness, consistency, feasibility, verifiability, and traceability without referencing implementation.
Here's a structured approach with practical metrics and methods:
1. Quantitative Metrics (Automatable or Easily Counted)
These provide numerical baselines for tracking improvements over time.
- Completeness Ratio: Percentage of requirements with all mandatory attributes (e.g., ID, description, priority, source, acceptance criteria, assumptions).
Formula: (Requirements with all attributes / Total requirements) × 100.
Target: >95%. Tool: ReqIF tools like Polarion or Jira plugins.
- Defect Density: Defects per requirement found in peer reviews (e.g., ambiguities, omissions, conflicts).
Formula: (Review defects / Total requirements).
Target: <5%. Classify defects by type (e.g., using orthogonal defect classification).
- Ambiguity Index: Count of ambiguous terms (e.g., "user-friendly," "fast," "some") per requirement or per 100 words.
Target: <1 per requirement. Automate: Regex searches or NLP tools like IBM Watson.
- Requirements Volatility: Change frequency.
Formula: (Changed/added/deleted requirements / Initial total) × 100 over a sprint/phase.
Target: <10%. Indicates stability.
- Size and Readability Metrics:
| Metric | Formula/Measure | Target |
|---|
| Words per Requirement | Average word count | 50–150 words |
| Requirements per Feature | Count per epic/user story | 5–20 |
| Flesch Readability Score | Standard formula (shorter sentences, common words) | >60 (easy to read) |
2. Qualitative Assessments (Human-Driven)
Use structured reviews to score requirements holistically.
- Checklist Scoring: Apply a standardized checklist (e.g., Volere template or BABOK guide). Score each requirement 1–5 on key attributes.
Aggregate: Average score across all. Target: >4.0.
- Peer/Expert Review Yield: Defects found per hour of inspection.
Process: Fagan-style inspections with independent reviewers (analysts, SMEs, testers). Measure capture-recapture efficiency (e.g., do reviewers find overlapping defects?).
- Traceability Matrix Coverage: Percentage of requirements linked bidirectionally to business objectives, stakeholders, and risks.
Target: 100%. Tool: Doors Next Gen or Excel matrices.
- Feasibility Rating: SME scoring (1–5) on technical, business, and resource feasibility.
Target: No requirements <3.
3. Process and Outcome Proxies
- Time to Author/Review: Shorter times indicate clearer requirements (track via tools like Confluence).
- Stakeholder Agreement Rate: % of requirements approved without rework in walkthroughs.
Target: >90%.
- Testability Ratio: % of requirements with verifiable criteria (e.g., "shall" statements with measurable outcomes).
Use Behavior-Driven Development (BDD) Gherkin syntax for user stories.
Implementation Tips
- Tools for Independence: Jira, Azure DevOps, Helix ALM, or ReqView for automated checks (e.g., duplicate detection, consistency rules).
- Benchmarking: Compare against industry baselines (e.g., INCOSE reports: good requirements have ~1–3 defects per 100).
- Continuous Improvement: Track metrics in a dashboard; correlate with downstream issues (e.g., rework costs) retrospectively, but measure upfront.
- Pitfalls to Avoid: Don't rely on post-code metrics like defect leakage or velocity—focus on the "requirements crime scene" before coding begins.
| Quality Attribute | Example Metric | Independence Rationale |
|---|
| Clear | Ambiguity index | Linguistic analysis only |
| Complete | Attribute completeness ratio | Metadata checks |
| Consistent | Conflict detection count | Cross-req parsing |
| Verifiable | Test criteria presence | Syntax/pattern matching |
| Traceable | Link coverage % | Matrix queries |
By applying these, you can quantify and improve requirements quality early, reducing costly downstream fixes by 50–70% (per CHAOS Report data). If you have a specific context (e.g., agile vs. waterfall), I can refine this further!