Your codebase has issues. Most of them cost nothing to fix.
TrueMend analyzed 5 files and 5 functions. 6 quality issues found; 33% can be fixed automatically at zero cost.
Contents
What this report contains
Jump to a section, or print the whole document.
Health Score on the cover is the mechanical composite /100. Subjective quality lives on its own page when a review ran.
Executive Overview
Code Quality Assessment: Checkout
TrueMend performed an automated code quality audit of 5 source files containing 5 functions across 62 lines of code. This report summarizes the findings and quantifies the engineering effort required to address them.
Issue severity
Fix type
Industry Benchmark
This project versus the industry
The health score on the cover is mechanical. These marks show where that score sits relative to published industry averages, not a second scoring system.
Financial Impact
Cost of Inaction vs Remediation
Technical debt compounds. Industry research shows unaddressed code quality issues grow at approximately 23% annually as surrounding code adapts to work around problems, making them progressively harder to resolve.
Remediation cost trajectory
Remediation Effort
Engineering time and fix mix
Manual remediation is priced at the full effort. TrueMend keeps only the hours that still need a person: cataloged procedures and structural rewrites.
Engineering time: manual vs TrueMend
Remediation by fix type
2 deterministic fixes. Automated AST transforms applied instantly at zero cost.
3 cataloged refactors. Constrained procedures: 5 minutes each vs 90 minutes manually.
1 structural rewrite. These require human architectural judgment and stay flagged for review.
Return on Investment
TrueMend ROI Analysis
The following breakdown compares the engineering cost of manual remediation against TrueMend-assisted remediation for each fix category. Waiting does not freeze the bill: the same debt costs more as surrounding code adapts around it.
Cost if you wait
Fixing now costs $1,750. Waiting 12 months raises that to $2,152 (+$402) before TrueMend has still not run.
What waiting adds
| Fix Type | Count | Manual (per fix) | TrueMend (per fix) | Manual Total | TrueMend Total | Savings |
|---|---|---|---|---|---|---|
| Deterministic | 2 | 25 min | 0 min | 1 hrs | 0 hrs | 1 hrs |
| Cataloged Refactor | 3 | 90 min | 5 min | 4 hrs | 0 hrs | 4 hrs |
| Structural Rewrite | 1 | 4 hrs | 4 hrs | 4 hrs | 4 hrs | 0 hrs |
| Total | 6 | 9 hrs | 4 hrs | 5 hrs | ||
Methodology
Assessment methodology
Every TrueMend audit follows a standardized, reproducible process. Findings are generated by deterministic AST analysis, regex line-scan, and semantic Python analysis, not opinion.
Analysis Engine
4,808 anti-patterns across 146 spec files using ast-grep (Rust AST), regex line-scan, and semantic Python analysis. 26 language grammars.
Mechanical health score (0-100) computed from anti-pattern density, severity weights, and function-level metrics. Optional LLM-powered subjective review across 40 dimensions with blind review mode.
Three-tier fix classification ensures every finding has a clear, cost-appropriate remediation path.
8 project-level detectors: naming consistency, flat directories, orphaned files, dead code blocks, single-use abstractions, signature variance, passthrough files, duplicate clusters.
13-check assessment with PASS/FAIL/WARN verdicts and blocker identification.
Per-author attribution from git history: commits, debt introduced/fixed, test discipline, commit message quality.
Technical debt in CAD at $125/hr blended consulting rate with empirical calibration from actual fix times.
Quality Dimensions
Fix Classification
This report was prepared exclusively for Acme in connection with the Checkout engagement. It contains proprietary analysis and recommendations. Distribution, reproduction, or disclosure to third parties without written authorization is prohibited.
Executive Summary
6 anti-patterns across 5 files, 2 fixable at zero cost.
TrueMend analyzed 5 source files containing 5 functions. The majority of findings are deterministic fixes that can be applied automatically with no risk.
Severity Distribution
Fix Type Distribution
of issues fixable at $0 cost. 2 deterministic fixes, zero risk.
Worst Files by Anti-Pattern Density
Detailed Findings
6 anti-patterns across 4 files
Each row is one pattern in one file, collapsed across functions. Open Finding Details for evidence, recommended fix, and the files this finding can reach.
By severity
By fix type
| Finding | Ct | Severity | Fix | Lines |
|---|---|---|---|---|
try/catch that only rethrows js-try-catch-rethrow | 1 | HIGH | DET | 8 |
PayButton props are untyped react-untyped-props | 1 | HIGH | CAT | 3 |
console.log left in production UI js-console-log | 1 | MEDIUM | DET | 4 |
Detailed Findings
| Finding | Ct | Severity | Fix | Lines |
|---|---|---|---|---|
Magic number 42 used as cart total cq-magic-number | 1 | INFO | CAT | 6 |
| Finding | Ct | Severity | Fix | Lines |
|---|---|---|---|---|
PayButton rendered twice on the same page react-duplicate-cta | 1 | LOW | STR | 9 |
| Finding | Ct | Severity | Fix | Lines |
|---|---|---|---|---|
fetch has no timeout or abort js-fetch-no-timeout | 1 | MEDIUM | CAT | 2 |
Finding Details
Most critical findings in detail
Each finding includes function metrics, evidence, recommended remediation, and the files this change can reach.
Finding Details
Finding Details
Improvement Roadmap
Three-phase improvement roadmap
Fixes are classified into three tiers by execution method. Phase 1 is immediate and automated. Phase 2 requires constrained LLM assistance. Phase 3 requires human architectural judgment. Large audits use one full page per phase so the plan stays readable end to end.
Confidential — Proprietary & Restricted