microsoft / powerbi-visuals-webpack-plugin
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 12 units with 441 lines of code in units (52.9% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (184 lines of code)
    • 6 medium size units (215 lines of code)
    • 2 small units (36 lines of code)
    • 1 very small units (6 lines of code)
0% | 41% | 48% | 8% | 1%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 41% | 48% | 8% | 1%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 50% | 37% | 9% | 1%
templates0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
67 5 1
constructor()
in index.js
60 2 1
apply()
in index.js
57 3 1
module.exports = function()
in templates/plugin-template.js
46 8 1
async _emit()
in index.js
40 4 1
40 3 3
37 4 0
module.exports = function()
in templates/package-json-template.js
31 2 1
21 4 1
20 9 1
16 3 1
addStatusFile()
in index.js
6 2 0