File Complexity Overall
  • There are 58 files with units, with 6,946 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 574 lines of code)
    • 4 medium complex files (McCabe index sum 51-125; 1,403 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 110 lines of code)
    • 52 simple files (McCabe index sum 1-25; 4,859 lines of code)
  • 134 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 8% | 20% | 1% | 69%
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% | 14% | 35% | 2% | 46%
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
gnm_deliverables0% | 17% | 41% | 3% | 37%
frontend0% | 0% | 0% | 0% | 100%
rabbitmq0% | 0% | 0% | 0% | 100%
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
views.py
in gnm_deliverables/views
574 33 129 22 13
metadata_views.py
in gnm_deliverables/views
390 31 98 25 23
launch_detector.py
in gnm_deliverables
332 44 85 26 12
models.py
in gnm_deliverables
415 31 70 17 7
deliverables_dash_views.py
in gnm_deliverables/views
266 12 64 24 10
import_master_migration_data.py
in gnm_deliverables/management/commands
110 7 40 36 29
UploadService.ts
in frontend/app/DeliverableUploader
232 5 25 11 11
126 3 24 19 14
vs_notification.py
in gnm_deliverables
67 13 23 34 3
112 6 21 19 10
inmeta.py
in gnm_deliverables
98 4 21 21 9
signals.py
in gnm_deliverables
92 5 20 22 12
remove_duplicates.py
in gnm_deliverables/management/commands
65 2 20 31 19
39 5 18 46 6
validate_archive.py
in gnm_deliverables/management/commands
98 4 18 18 9
jwt_auth_backend.py
in gnm_deliverables
84 6 18 21 7
UploaderMain.tsx
in frontend/app/DeliverableUploader
225 6 17 8 7
files.py
in gnm_deliverables
67 7 15 22 4
naughtylist.js
in gnm_deliverables/static/gnm_deliverables
120 10 15 13 3
71 4 14 20 7
35 4 14 40 7
47 6 13 28 8
hmac_auth_backend.py
in gnm_deliverables
87 3 13 15 8
DeliverablesDashFront.tsx
in frontend/app/DeliverablesDash
228 2 11 5 6
check_vs_notification.py
in gnm_deliverables/management/commands
57 3 10 18 5
merge_project_bundles.py
in gnm_deliverables/management/commands
38 3 10 26 6
listview.js
in gnm_deliverables/static/gnm_deliverables
57 5 10 18 3
AssetSearchResults.tsx
in frontend/app/AssetSearch
217 4 9 4 4
49 1 9 18 9
40 1 8 20 8
get_youtube_data.py
in gnm_deliverables/management/commands
47 1 8 17 8
run_rabbitmq_responder.py
in rabbitmq/management/commands
76 6 7 9 2
29 1 7 24 7
tasks.py
in gnm_deliverables
32 2 7 22 5
transcodepreset.py
in gnm_deliverables
18 3 7 39 3
master-api-service.ts
in frontend/app/utils
575 2 6 1 4
serializers.py
in gnm_deliverables
99 3 6 6 3
create_logs_user.py
in gnm_deliverables/management/commands
33 3 6 18 4
NiceDateFormatter.tsx
in frontend/app/Common
65 3 5 8 3
duplicate_scanner.py
in gnm_deliverables/management/commands
32 2 5 16 4
VidispineJobProgress.tsx
in frontend/app/ProjectDeliverables
225 2 4 2 2
50 1 4 8 4
deliverable_tags.py
in gnm_deliverables/templatetags
11 1 4 36 4
VidispineItem.ts
in frontend/app/vidispine/item
183 3 3 2 1
parsers.py
in gnm_deliverables
17 1 3 18 3
plugin.py
in gnm_deliverables
29 3 3 10 1
dailymotion-service.ts
in frontend/app/utils
26 1 2 8 2
searchstring.ts
in frontend/app/utils
20 1 2 10 2
ErrorCatchingWrapper.tsx
in frontend/app/DeliverableItem
23 2 2 9 1
588 1 2 0 2
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...