File Complexity Overall
  • There are 65 files with units, with 8,536 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)
    • 2 medium complex files (McCabe index sum 51-125; 741 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 1,615 lines of code)
    • 60 simple files (McCabe index sum 1-25; 6,180 lines of code)
  • 37 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 8% | 18% | 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
py0% | 0% | 8% | 18% | 72%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
services0% | 0% | 8% | 19% | 71%
ROOT0% | 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
utils.py
in services/ui_backend_service/api
465 21 70 15 25
__init__.py
in services/utils
276 18 54 20 9
plugin.py
in services/ui_backend_service/plugins
160 13 45 28 15
db_utils.py
in services/data
103 12 28 27 9
postgres_async_db.py
in services/data
1352 15 27 2 4
ui_server.py
in services/ui_backend_service
157 4 20 13 12
models.py
in services/data
334 12 18 5 4
filter_grammar.py
in services/data
97 2 18 19 9
92 3 17 18 9
search.py
in services/ui_backend_service/api
217 7 17 8 3
__init__.py
in services/ui_backend_service/plugins
86 4 15 17 12
heartbeat_monitor.py
in services/ui_backend_service/api
139 7 15 11 5
run.py
in services/metadata_service/api
202 3 14 7 11
admin.py
in services/ui_backend_service/api
179 4 12 7 7
task.py
in services/metadata_service/api
203 3 12 6 9
refinery.py
in services/ui_backend_service/data/refiner
78 6 11 14 3
utils.py
in services/metadata_service/api
70 4 11 16 4
doc.py
in services/ui_backend_service
675 8 9 1 2
server.py
in services/metadata_service
47 2 7 15 5
log.py
in services/ui_backend_service/api
162 5 6 4 2
card.py
in services/ui_backend_service/api
189 5 6 3 2
ws.py
in services/ui_backend_service/api
235 2 6 3 5
parameter_refiner.py
in services/ui_backend_service/data/refiner
37 5 6 16 2
features.py
in services/ui_backend_service
28 1 5 18 5
notify.py
in services/ui_backend_service/api
181 2 5 3 3
task_refiner.py
in services/ui_backend_service/data/refiner
28 3 5 18 3
artifact_refiner.py
in services/ui_backend_service/data/refiner
18 3 5 28 3
41 4 4 10 1
migration_server.py
in services/migration_service
30 2 4 13 2
__init__.py
in services/migration_service/api
30 2 4 13 2
postgres_async_db.py
in services/migration_service/data
39 2 4 10 2
plugins.py
in services/ui_backend_service/api
38 2 4 11 3
task.py
in services/ui_backend_service/api
161 2 4 2 2
artifact.py
in services/ui_backend_service/api
117 2 4 3 2
frontend.py
in services/ui_backend_service
56 2 3 5 2
dag.py
in services/ui_backend_service/api
48 3 3 6 1
task.py
in services/ui_backend_service/data/db/tables
121 1 3 2 3
run.py
in services/ui_backend_service/data/db/tables
120 1 3 3 3
step.py
in services/ui_backend_service/data/db/tables
64 1 3 5 3
metadata_row.py
in services/ui_backend_service/data/db/models
90 2 3 3 2
step_row.py
in services/ui_backend_service/data/db/models
63 2 3 5 2
run_row.py
in services/ui_backend_service/data/db/models
77 2 3 4 2
artifact_row.py
in services/ui_backend_service/data/db/models
97 2 3 3 2
task_row.py
in services/ui_backend_service/data/db/models
99 2 3 3 2
admin.py
in services/migration_service/api
54 1 2 4 2
utils.py
in services/migration_service/api
72 2 2 3 1
autocomplete.py
in services/ui_backend_service/api
146 1 2 1 2
metadata.py
in services/ui_backend_service/data/db/tables
46 1 2 4 2
flow_row.py
in services/ui_backend_service/data/db/models
24 2 2 8 1
run_script.py
in services/migration_service
42 1 1 2 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...