File Complexity Overall
  • There are 47 files with units, with 3,394 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 747 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 127 lines of code)
    • 10 slightly complex files (McCabe index sum 26-50; 1,192 lines of code)
    • 35 simple files (McCabe index sum 1-25; 1,328 lines of code)
  • 66 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 22% | 3% | 35% | 39%
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% | 22% | 3% | 35% | 39%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
addon0% | 22% | 3% | 35% | 38%
ROOT0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 47)

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
nf-graph.js
in addon/components
747 73 159 21 10
graph-position.js
in addon/utils/nf
127 26 52 41 4
graph-data-graphic.js
in addon/mixins
140 19 43 31 8
nf-x-axis.js
in addon/components
119 12 35 29 5
nf-y-diff.js
in addon/components
176 17 34 19 4
189 14 33 17 10
nf-graph-content.js
in addon/components
85 10 32 38 5
nf-y-axis.js
in addon/components
123 12 32 26 4
63 17 31 49 3
nf-bars.js
in addon/components
89 9 30 34 5
nf-brush-selection.js
in addon/components
138 18 28 20 3
array-helpers.js
in addon/utils/nf
70 8 26 37 11
nf-plot.js
in addon/components
47 7 22 47 4
svg-dom.js
in addon/utils/nf
76 7 21 28 6
nf-range-marker.js
in addon/components
76 10 20 26 5
nf-svg-image.js
in addon/components
71 15 20 28 2
nf-area.js
in addon/components
85 10 19 22 5
nf-svg-rect.js
in addon/components
79 12 17 22 3
graph-mouse-event.js
in addon/utils/nf
48 12 15 31 2
nf-bars-group.js
in addon/components
60 8 14 23 3
tracked-array-property.js
in addon/utils/nf
56 4 13 23 8
nf-dot.js
in addon/components
29 4 12 41 3
nf-right-tick.js
in addon/components
57 8 10 18 3
nf-selection-box.js
in addon/components
63 10 10 16 1
nf-svg-path.js
in addon/components
47 3 10 21 4
graph-area-utils.js
in addon/mixins
24 1 9 38 9
40 2 9 23 6
nf-area-stack.js
in addon/components
47 6 9 19 3
graph-line-utils.js
in addon/mixins
17 1 8 47 8
44 8 8 18 1
nf-vertical-line.js
in addon/components
21 2 8 38 4
nf-range-markers.js
in addon/components
41 3 7 17 4
nf-crosshairs.js
in addon/components
36 5 6 17 2
nf-svg-line.js
in addon/components
34 5 6 18 2
nf-tracker.js
in addon/components
22 2 6 27 5
22 3 5 23 2
17 2 4 24 2
nf-horizontal-line.js
in addon/components
21 1 4 19 4
nf-plots.js
in addon/components
29 2 4 14 3
nf-line.js
in addon/components
34 3 4 12 2
index.js
in root
22 1 3 14 3
scale-utils.js
in addon/utils/nf
4 1 3 75 3
nf-group.js
in addon/components
15 1 2 13 2
7 1 1 14 1
4 1 1 25 1
nf-component.js
in addon/components
19 1 1 5 1
nf-tick-label.js
in addon/components
14 1 1 7 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...