File Complexity Overall
  • There are 38 files with units, with 5,457 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 457 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 727 lines of code)
    • 6 slightly complex files (McCabe index sum 26-50; 646 lines of code)
    • 29 simple files (McCabe index sum 1-25; 3,627 lines of code)
  • 36 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 8% | 13% | 11% | 66%
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
js0% | 10% | 13% | 14% | 62%
py0% | 0% | 21% | 0% | 78%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
plugins0% | 8% | 11% | 12% | 67%
scripts0% | 0% | 66% | 0% | 33%
Most Complex Files (Top 38)

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
reference-data.js
in plugins/healthcare/skills/fraud-detection/scripts
457 36 197 43 17
finding-view.js
in plugins/healthcare/skills/fraud-detection/scripts
589 7 96 16 61
version_bump.py
in scripts
138 15 55 40 11
d17-market-saturation.js
in plugins/healthcare/skills/fraud-detection/scripts
94 3 35 37 16
d03-phantom-billing.js
in plugins/healthcare/skills/fraud-detection/scripts
132 1 34 26 34
pipeline.js
in plugins/healthcare/skills/fraud-detection/scripts
119 6 31 26 20
d16-prescribing-outlier.js
in plugins/healthcare/skills/fraud-detection/scripts
93 3 29 31 17
d15-dme-outlier.js
in plugins/healthcare/skills/fraud-detection/scripts
95 3 29 31 18
screen.js
in plugins/healthcare/skills/fraud-detection/scripts
113 3 26 23 10
fetch-nppes.js
in plugins/healthcare/skills/fraud-detection/scripts
81 4 25 31 18
setup_fhir_project.py
in plugins/healthcare/skills/fhir-developer/scripts
183 12 25 14 11
fetch-enrichment.js
in plugins/healthcare/skills/fraud-detection/scripts
92 6 20 22 6
d07-outlier.js
in plugins/healthcare/skills/fraud-detection/scripts
109 3 19 17 8
d01-impossible-day.js
in plugins/healthcare/skills/fraud-detection/scripts
86 1 18 21 18
fetch-reference.js
in plugins/healthcare/skills/fraud-detection/scripts
615 8 17 3 4
d18-ownership-ring.js
in plugins/healthcare/skills/fraud-detection/scripts
76 2 16 21 9
69 5 16 23 8
source-row.js
in plugins/healthcare/skills/fraud-detection/scripts
117 3 15 13 7
gate.js
in plugins/healthcare/skills/fraud-detection/scripts
210 2 15 7 9
d20-hcbs-overlap.js
in plugins/healthcare/skills/fraud-detection/scripts
47 1 13 28 13
extract.ts
in plugins/healthcare/skills/doc-extract/scripts
164 4 12 7 9
sample_size_calculator.py
in plugins/healthcare/skills/clinical-trial-protocol/scripts
326 3 12 4 10
enrichment.js
in plugins/healthcare/skills/fraud-detection/scripts
27 3 11 41 5
d09-ineligible-orderer.js
in plugins/healthcare/skills/fraud-detection/scripts
60 2 10 17 5
render-dashboard.js
in plugins/healthcare/skills/fraud-detection/scripts
255 2 10 4 7
sources.js
in plugins/healthcare/skills/fraud-detection/scripts
159 4 10 6 6
d14-opt-out.js
in plugins/healthcare/skills/fraud-detection/scripts
52 2 9 17 6
d10-revoked-provider.js
in plugins/healthcare/skills/fraud-detection/scripts
54 2 9 17 6
d13-global-period.js
in plugins/healthcare/skills/fraud-detection/scripts
53 1 9 17 9
batch.ts
in plugins/healthcare/skills/clinical-note-extract/scripts
70 3 9 13 6
cohort-slice.js
in plugins/healthcare/skills/fraud-detection/scripts
31 2 8 26 7
investigate.js
in plugins/healthcare/skills/fraud-detection/workflows
339 1 6 2 6
duck.js
in plugins/healthcare/skills/fraud-detection/scripts
19 2 6 32 4
summaries.js
in plugins/healthcare/skills/fraud-detection/scripts
33 1 4 12 4
registry.js
in plugins/healthcare/skills/fraud-detection/scripts
22 1 3 14 3
render-packet.js
in plugins/healthcare/skills/fraud-detection/scripts
129 1 2 2 2
smoke.ts
in plugins/healthcare/servers/fhir
24 1 2 8 2
render-xlsx.js
in plugins/healthcare/skills/fraud-detection/scripts
125 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...