File Complexity Overall
  • There are 20 files with units, with 1,010 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)
    • 20 simple files (McCabe index sum 1-25; 1,010 lines of code)
  • 7 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%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 20)

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
reingest.ts
in src/commands/image
114 6 21 18 7
api.ts
in src/base-commands
96 5 20 21 11
delete.ts
in src/commands/bulk
91 5 15 16 5
move-images.ts
in src/commands/collection
90 1 11 12 11
rights.ts
in src/commands/bulk
99 3 10 10 5
get.ts
in src/commands/image
45 2 8 18 6
http.ts
in src/base-commands
38 2 6 16 3
http.ts
in src/lib
74 4 5 7 2
add.ts
in src/commands/configuration
39 1 5 13 5
upload.ts
in src/commands/image
39 1 5 13 5
delete.ts
in src/commands/image
39 1 4 10 4
read.ts
in src/commands/configuration
23 1 3 13 3
visit.ts
in src/commands/image
28 2 3 11 2
try.ts
in src/util
16 1 2 13 2
26 2 2 8 1
46 1 2 4 2
add-root.ts
in src/commands/collection
27 1 2 7 2
id-file.ts
in src/commands/util
22 1 2 9 2
curl.ts
in src/commands/util
34 1 2 6 2
download.ts
in src/commands/image
24 1 1 4 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...