File Complexity Overall
  • There are 188 files with units, with 18,906 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 1,104 lines of code)
    • 6 medium complex files (McCabe index sum 51-125; 2,029 lines of code)
    • 11 slightly complex files (McCabe index sum 26-50; 2,110 lines of code)
    • 170 simple files (McCabe index sum 1-25; 13,663 lines of code)
  • 257 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 5% | 10% | 11% | 72%
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% | 8% | 15% | 14% | 62%
py0% | 0% | 0% | 39% | 60%
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
go0% | 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% | 8% | 15% | 14% | 62%
scripts0% | 0% | 0% | 33% | 66%
frontend0% | 0% | 0% | 0% | 100%
periodic_trigger0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

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
1104 36 213 19 62
365 13 79 22 26
NewProjectBackup.scala
in app/services
468 14 79 17 11
Files.scala
in app/controllers
389 17 75 19 10
FileEntryDAO.scala
in app/models
276 19 73 26 9
ProjectEntry.scala
in app/models
338 23 57 17 10
Security.scala
in app/auth
193 16 55 28 12
177 17 50 28 8
225 13 49 22 11
248 15 46 19 14
StorageHelper.scala
in app/helpers
219 7 45 21 12
216 13 43 20 6
134 12 35 26 7
180 10 35 19 6
216 7 33 15 9
142 8 30 21 10
PostrunAction.scala
in app/models
166 8 30 18 8
PostrunExecutor.scala
in app/services/actors/creation
187 6 26 14 8
LDAP.scala
in app/auth
176 8 25 14 5
121 5 24 20 11
143 6 24 17 10
161 9 24 15 5
122 9 23 19 5
93 5 22 24 11
DefaultsController.scala
in app/controllers
84 3 21 25 9
main.go
in scripts/find-trace-of-missing-projects
99 5 21 21 8
MetadataHelper.scala
in app/mxscopy/helpers
81 6 20 25 9
128 7 20 16 3
171 7 19 11 7
StorageEntry.scala
in app/models
130 6 18 14 5
Application.scala
in app/controllers
180 5 18 10 5
119 3 18 15 12
72 5 17 24 7
86 6 17 20 8
MakeAssetFolder.scala
in app/postrun
93 5 17 18 7
99 7 17 17 7
97 3 17 18 9
140 3 17 12 13
114 3 17 15 11
VersionChangeService.ts
in frontend/app/PremiereVersionChange
107 5 17 16 6
MxsMetadata.scala
in app/drivers/objectmatrix
65 3 16 25 9
StoragesController.scala
in app/controllers
100 5 16 16 6
JsonComms.scala
in app/services
70 2 16 23 13
PathStorage.scala
in app/drivers
74 8 15 20 4
69 4 15 22 10
80 3 15 19 7
Defaults.scala
in app/models
68 5 15 22 7
CreateFileEntry.scala
in app/services/actors/creation
107 3 15 14 6
CreationAction.ts
in frontend/app/multistep/storage
92 3 15 16 8
64 2 14 22 13
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...