File Complexity Overall
  • There are 20 files with units, with 3,250 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)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 602 lines of code)
    • 17 simple files (McCabe index sum 1-25; 2,648 lines of code)
  • 35 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 18% | 81%
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% | 0% | 0% | 18% | 81%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 18% | 81%
Most Complex Files (Top 20)

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
374 13 38 10 5
ltrTreeGraph.js
in src/layouts/ltrTreeLayout
124 13 36 29 8
ltrTreeLayouter.js
in src/layouts/ltrTreeLayout
104 7 29 28 6
ranker.js
in src/layouts/ltrTreeLayout
66 5 17 26 5
155 6 11 7 4
160 4 9 6 3
ShapesFactory.js
in src/base
35 4 9 26 3
acyclicFAS.js
in src/layouts/ltrTreeLayout
40 4 7 18 3
ringCenterLayout.js
in src/layouts
58 4 7 12 3
focusedNodeView.js
in src/focused
316 1 5 2 5
nodeView.js
in src/base
193 4 5 3 2
trafficGraph.js
in src/base
614 1 5 1 5
particleSystem.js
in src/physics
489 2 4 1 2
ShapeParent.js
in src/base/shapes
65 3 4 6 2
ltrTreeLayoutWorker.js
in src/layouts/ltrTreeLayout
19 1 3 16 3
49 1 3 6 3
nodeNameView.js
in src/base
113 2 3 3 2
index.js
in src/layouts/ltrTreeLayout
65 2 2 3 1
87 1 2 2 2
124 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...