File Complexity Overall
  • There are 26 files with units, with 2,175 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)
    • 4 medium complex files (McCabe index sum 51-125; 1,292 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 163 lines of code)
    • 21 simple files (McCabe index sum 1-25; 720 lines of code)
  • 83 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 59% | 7% | 33%
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
scala0% | 0% | 59% | 10% | 30%
pl0% | 0% | 100% | 0% | 0%
ts0% | 0% | 0% | 0% | 100%
tsx0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
app0% | 0% | 59% | 10% | 30%
client_script0% | 0% | 100% | 0% | 0%
frontend0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 26)

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
MailSender.scala
in app/services
367 1 104 28 104
HostInfoController.scala
in app/controllers
338 6 91 27 56
profile_reader.pl
in client_script
357 17 80 22 19
230 14 58 25 14
Security.scala
in app/auth
163 13 40 25 11
HostInfo.scala
in app/models
70 1 15 21 15
FCInfo.scala
in app/models
55 3 14 25 8
75 3 11 15 5
OAuth2Helper.ts
in frontend/app
63 1 9 14 9
stringToBool.scala
in app/models
12 1 8 67 8
LoginComponentNew.tsx
in frontend/app
89 2 8 9 6
HMAC.scala
in app/auth
35 2 4 11 3
RecentLogin.scala
in app/models
40 2 4 10 3
DeleteController.scala
in app/controllers
48 3 4 8 2
DriverInfo.scala
in app/models
25 1 3 12 3
MdcPing.scala
in app/models
14 1 3 21 3
SanMount.scala
in app/models
18 1 3 17 3
15 2 3 20 2
MailLauncher.scala
in app/services
27 1 3 11 3
auth.js
in frontend/app
18 1 3 17 3
OAuthConfiguration.ts
in frontend/app
37 2 3 8 2
DecodedProfile.ts
in frontend/app
28 2 2 7 1
ExampleFilter.scala
in app/filters
16 1 1 6 1
9 1 1 11 1
ESClientManager.scala
in app/helpers
15 1 1 7 1
Counter.scala
in app/services
11 1 1 9 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...