guardian/interactive-sharkstorm Size, age and recent activity of the codebase. |
for people* (7/10)
for AI* (7/9)
Rule-of-thumb estimates
Rebuild value
Maintenance effort
analysis.maintainabilityScores.- Tests presence1.0×0.75−1.3no test code
For people: A test suite documents the intended behaviour and makes changes safe. Counted is whether there is one of reasonable size, not its coverage.
For AI agents: Tests let an agent check its own work; without them its mistakes surface later, in review or in production.
- File complexity4.1×1−0.732% of main code in files with McCabe sum > 125
For people: Complex files concentrate risk: understanding one means keeping many paths in mind.
For AI agents: Much to read and much logic to get right in one place: the costliest combination for an agent.
- Unit size5.6×1.5−0.622% of unit code in units > 50 lines
For people: Long functions do many things at once: they are hard to name, read, test and reuse.
For AI agents: To change one line, an agent reads and often rewrites the whole function: bigger edits, more tokens, more breakage.
- Unit complexity7.2×2−0.58% of unit code with McCabe > 25
For people: Every branch is another path to understand and test; complex logic is where mistakes are made and missed in review.
For AI agents: Nested conditions are where generated changes break edge cases; complex units need more tests and review before an agent's change can be trusted.
- File size5.5×0.75−0.327% of main code in files > 500 lines
For people: Large files are hard to navigate, mix responsibilities and attract merge conflicts.
For AI agents: Agents read whole files into their context: every change to a large file costs many tokens and crowds out other relevant code.
- Volume9.6×13,572 lines of main code
For people: More code is more to learn, search and keep in mind; onboarding and judging a change's impact slow down as it grows.
For AI agents: An agent sees only a slice at a time: the bigger the code base, the more it searches, and the likelier it misses relevant code or rewrites an existing helper.
- Duplication9.5×12% of main code duplicated
For people: A fix in one copy must be repeated in all the others; a missed copy becomes a bug.
For AI agents: Agents copy the patterns they find, so duplicates multiply; a change to one copy misses the others, and every copy costs context.
- Tests presence1.0×1.5−2.5no test code
For AI agents: Tests let an agent check its own work; without them its mistakes surface later, in review or in production.
For people: A test suite documents the intended behaviour and makes changes safe. Counted is whether there is one of reasonable size, not its coverage.
- File size5.5×1.75−0.627% of main code in files > 500 lines
For AI agents: Agents read whole files into their context: every change to a large file costs many tokens and crowds out other relevant code.
For people: Large files are hard to navigate, mix responsibilities and attract merge conflicts.
- File complexity4.1×0.75−0.432% of main code in files with McCabe sum > 125
For AI agents: Much to read and much logic to get right in one place: the costliest combination for an agent.
For people: Complex files concentrate risk: understanding one means keeping many paths in mind.
- Unit size5.6×1−0.322% of unit code in units > 50 lines
For AI agents: To change one line, an agent reads and often rewrites the whole function: bigger edits, more tokens, more breakage.
For people: Long functions do many things at once: they are hard to name, read, test and reuse.
- Unit complexity7.2×1−0.28% of unit code with McCabe > 25
For AI agents: Nested conditions are where generated changes break edge cases; complex units need more tests and review before an agent's change can be trusted.
For people: Every branch is another path to understand and test; complex logic is where mistakes are made and missed in review.
- Volume9.6×0.753,572 lines of main code
For AI agents: An agent sees only a slice at a time: the bigger the code base, the more it searches, and the likelier it misses relevant code or rewrites an existing helper.
For people: More code is more to learn, search and keep in mind; onboarding and judging a change's impact slow down as it grows.
- Duplication9.5×1.52% of main code duplicated
For AI agents: Agents copy the patterns they find, so duplicates multiply; a change to one copy misses the others, and every copy costs context.
For people: A fix in one copy must be repeated in all the others; a missed copy becomes a bug.
- 1backbone.jssrc/js/libs/McCabe 423956 LOC
- 2curl.jssrc/js/libs/McCabe 13520 LOC
- 3almond.jssrc/js/libs/McCabe 107271 LOC
- 4mustache.jssrc/js/libs/McCabe 103347 LOC
- 5text.jssrc/js/libs/McCabe 92273 LOC
- 6backbone-nested.jssrc/js/libs/McCabe 75264 LOC
- 7iframeMessenger.jssrc/js/libs/McCabe 52183 LOC
- 8Backbone.CrossDomain.jssrc/js/libs/McCabe 47121 LOC
- 9appView.jssrc/js/app/views/McCabe 27172 LOC
- 10json.jssrc/js/libs/McCabe 1445 LOC
| Standard analyses: | Main Code: 3,572 LOC (23 files) = JS (84%) + SCSS (13%) + HTML (1%) Secondary code: Test: 0 LOC (0); Generated: 0 LOC (0); Build & Deploy: 36 LOC (2); Other: 10,227 LOC (12); |
||
| Duplication: 1% | |||
| File Size: 0% long (>1000 LOC), 21% short (<= 200 LOC) | |||
|
|
Logical Component Decomposition: primary (2 components) | ||
| Goals: Keep the system simple and easy to change (4) | |||
| Experimental analyses (less reliable heuristic analyses): | |||
| Unit Size: 7% long (>100 LOC), 55% short (<= 10 LOC) | |||
| Conditional Complexity: 7% complex (McCabe index > 50), 46% simple (McCabe index <= 5) | |||
|
|
Static Component Dependencies: primary (2 components) | ||
No commit history found.
Visual Code Explorers
| MAIN (23) | Circles | Sunburst | |
| TEST (0) |
Circles
|
Sunburst
|
|
| BUILD AND DEPLOYMENT (2) | Circles | Sunburst | |
| GENERATED (0) |
Circles
|
Sunburst
|
|
| OTHER (12) | Circles | Sunburst |
File Visualizations
File size views:
Duplication views:
File age views:
File change frequency views:
Contributors per file views:
Contributor Visualizations
Contributor dependency views:
Components and Dependencies Visualizations
| Components | Temporal Dependencies | Duplication | Commits Racing Charts | ||||||||||
| 30 days | 3 months | 6 months | |||||||||||
| PRIMARY (2) | Bubble Chart | Tree Map |
2D
|
3D
|
2D
|
3D
|
2D
|
3D
|
All Time | 12 Months | |||
File Dependencies Visualizations
Temporal dependencies among files:
|
Units Visualizations
Unit size and conditional complexity views:
Lists of Files Per Scope
- MAIN (23 files)
-
TEST
- BUILD AND DEPLOYMENT (2 files)
-
GENERATED
- OTHER (12 files)
- FILES: History Data
- IGNORED FILES: By Extension | By Rule
Analysis Results
- CONFIGURATION: JSON
- ALL ANALYSIS RESULTS: JSON
- DUPLICATES: TXT | JSON
- UNITS: TXT | JSON
- CONTRIBUTORS: TXT | JSON
- LOGICAL DECOMPOSITIONS: JSON
- CONCERNS: JSON
- CONTROLS: TXT
- ALL METRICS: TXT