firebase / friendlyeats-web
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 49 units with 540 lines of code in units (39.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 9 medium size units (270 lines of code)
    • 9 small units (131 lines of code)
    • 31 very small units (139 lines of code)
0% | 0% | 50% | 24% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 50% | 24% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts0% | 0% | 50% | 24% | 25%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
43 2 1
FriendlyEats.prototype.viewList = function()
in scripts/FriendlyEats.View.js
36 9 2
35 2 0
FriendlyEats.prototype.viewSetup = function()
in scripts/FriendlyEats.View.js
32 4 0
32 3 0
'': function()
in scripts/FriendlyEats.View.js
25 2 1
24 6 1
22 1 0
21 2 0
FriendlyEats.prototype.render = function()
in scripts/FriendlyEats.View.js
20 3 2
empty: function()
in scripts/FriendlyEats.View.js
18 1 0
function FriendlyEats()
in scripts/FriendlyEats.js
18 1 0
var rate = function()
in scripts/FriendlyEats.View.js
13 3 0
13 3 1
13 2 1
display: function()
in scripts/FriendlyEats.View.js
12 2 1
var renderAllList = function()
in scripts/FriendlyEats.View.js
12 1 0
var displaySection = function()
in scripts/FriendlyEats.View.js
12 3 1
'': function()
in scripts/FriendlyEats.View.js
10 2 1
7 1 0