File Complexity Overall
  • There are 16 files with units, with 2,131 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)
    • 1 medium complex files (McCabe index sum 51-125; 401 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 252 lines of code)
    • 13 simple files (McCabe index sum 1-25; 1,478 lines of code)
  • 106 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 18% | 11% | 69%
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
js0% | 0% | 20% | 12% | 66%
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 18% | 11% | 69%
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
WorkflowDAG.js
in src/components/diagram
401 20 87 22 13
helpers.js
in src/utils
69 9 28 41 7
workflow.js
in src/data
183 12 26 14 6
task.js
in src/data
116 9 20 17 4
98 4 19 19 8
theme.js
in src/theme
628 8 8 1 1
common.js
in src/data
49 3 6 12 3
RunHistory.tsx
in src/pages/workbench
153 3 6 4 2
handleError.js
in src/utils
26 1 5 19 5
path.js
in src/utils
14 2 3 21 2
constants.js
in src/utils
52 1 2 4 2
12 1 1 8 1
11 1 1 9 1
task.js
in src/schema
18 1 1 6 1
workflow.js
in src/schema
296 1 1 0 1
useAppContext.js
in src/hooks
5 1 1 20 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...