File Complexity Overall
  • There are 39 files with units, with 13,630 lines of code.
    • 1 very complex files (McCabe index sum 251+; 1,802 lines of code)
    • 4 complex files (McCabe index sum 126-250; 5,492 lines of code)
    • 6 medium complex files (McCabe index sum 51-125; 2,033 lines of code)
    • 6 slightly complex files (McCabe index sum 26-50; 1,406 lines of code)
    • 22 simple files (McCabe index sum 1-25; 2,897 lines of code)
  • 4 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system13% | 40% | 14% | 10% | 21%
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
ts13% | 40% | 14% | 10% | 21%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src13% | 40% | 14% | 10% | 21%
Most Complex Files (Top 39)

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
sandbox-manager.ts
in src/sandbox
1802 94 343 19 53
2059 43 245 12 49
sandbox-utils.ts
in src/sandbox
1057 43 194 18 20
1064 41 162 15 23
1312 54 159 12 22
http-proxy.ts
in src/sandbox
611 3 93 15 87
parent-proxy.ts
in src/sandbox
349 16 90 26 11
459 14 65 14 31
aws-sigv4.ts
in src/sandbox
215 15 60 28 13
path-entries.ts
in src/sandbox
291 24 56 19 6
address.ts
in src/sandbox
108 11 51 47 13
mitm-ca.ts
in src/sandbox
388 21 49 13 8
socks-proxy.ts
in src/sandbox
302 8 47 16 17
266 5 42 16 19
209 9 32 15 6
request-filter.ts
in src/sandbox
153 8 30 20 10
domain-pattern.ts
in src/sandbox
88 8 28 32 9
sandbox-config.ts
in src/sandbox
1024 3 24 2 14
mux-proxy.ts
in src/sandbox
144 8 23 16 5
body-substitution.ts
in src/sandbox
92 6 22 24 8
198 2 22 11 21
144 3 21 15 19
java-proxy-agent.ts
in src/sandbox
73 5 18 25 8
credential-decode.ts
in src/sandbox
62 5 17 27 8
98 5 14 14 8
207 5 14 7 6
123 1 13 11 13
platform.ts
in src/utils
32 2 10 31 6
config-loader.ts
in src/utils
66 2 10 15 6
125 3 10 8 6
read-deny-glob.ts
in src/sandbox
158 3 9 6 7
mitm-leaf.ts
in src/sandbox
81 4 9 11 3
which.ts
in src/utils
15 1 4 27 4
cli.ts
in src
53 3 3 6 1
shell-quote.ts
in src/utils
13 1 3 23 3
debug.ts
in src/utils
20 1 1 5 1
ripgrep.ts
in src/utils
50 1 1 2 1
listen-in-range.ts
in src/sandbox
46 1 1 2 1
credential-extract.ts
in src/sandbox
73 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...