File Complexity Overall
  • There are 10 files with units, with 1,433 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 274 lines of code)
    • 3 medium complex files (McCabe index sum 51-125; 823 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 108 lines of code)
    • 5 simple files (McCabe index sum 1-25; 228 lines of code)
  • 11 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 19% | 57% | 7% | 15%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
ts0% | 22% | 67% | 8% | 1%
tsx0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
packages0% | 19% | 57% | 7% | 15%
Most Complex Files (Top 10)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
storage.ts
in packages/local/src
274 8 126 46 50
index.ts
in packages/local/src
305 14 118 39 39
oauth.ts
in packages/local/src
356 10 116 33 26
errors.ts
in packages/local/src
162 11 64 40 18
responses.ts
in packages/local/src
108 1 43 40 43
recovery.tsx
in packages/react/src
105 4 22 21 15
models.ts
in packages/local/src
23 1 13 57 13
usage-indicator.tsx
in packages/react/src
30 2 6 20 3
shared.tsx
in packages/react/src
38 2 2 5 1
manage-usage.tsx
in packages/react/src
32 2 2 6 1
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...