File Complexity Overall
  • There are 16 files with units, with 2,246 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 16 simple files (McCabe index sum 1-25; 2,246 lines of code)
  • 53 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 0% | 100%
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% | 0% | 0% | 0% | 100%
tsx0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 0% | 100%
pages0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 16)

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
169 15 16 9 2
222 2 12 5 6
MatcherService.ts
in src/ts/services
136 4 11 8 4
shallowEqual.ts
in src/ts/utils
30 1 10 33 10
reducer.ts
in src/ts/state
725 3 10 1 5
Match.tsx
in src/ts/components
110 1 8 7 8
store.ts
in src/ts/state
69 6 7 10 2
Results.tsx
in src/ts/components
131 1 4 3 4
dom.ts
in src/ts/utils
17 1 3 18 3
block.ts
in src/ts/utils
65 1 3 5 3
SidebarMatchGroup.tsx
in src/ts/components
95 1 3 3 3
index.ts
in pages
124 2 2 2 1
icons.tsx
in src/ts/components
62 2 2 3 1
37 1 1 3 1
helpers.ts
in src/ts/state
127 1 1 1 1
TyperighterAdapter.ts
in src/ts/services/adapters
127 1 1 1 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...