angular / code.material.angularjs.org
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 17,083 units with 153,373 lines of code in units (8.3% of code).
    • 101 very long units (15,675 lines of code)
    • 88 long units (6,325 lines of code)
    • 1,134 medium size units (31,345 lines of code)
    • 2,946 small units (39,272 lines of code)
    • 12,814 very small units (60,756 lines of code)
10% | 4% | 20% | 25% | 39%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js10% | 4% | 20% | 25% | 39%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
1.2.0-rc.110% | 3% | 23% | 25% | 37%
1.2.010% | 3% | 23% | 25% | 37%
1.2.0-rc.210% | 3% | 23% | 25% | 37%
1.2.210% | 3% | 23% | 25% | 37%
1.2.410% | 3% | 23% | 25% | 37%
HEAD10% | 3% | 23% | 25% | 37%
1.2.110% | 3% | 23% | 25% | 37%
1.2.310% | 3% | 23% | 25% | 37%
latest10% | 3% | 23% | 25% | 37%
1.1.2510% | 4% | 23% | 24% | 37%
1.1.2610% | 4% | 23% | 24% | 37%
1.1.2410% | 4% | 23% | 24% | 37%
1.1.2310% | 4% | 23% | 24% | 37%
1.1.2210% | 4% | 21% | 25% | 38%
1.1.22-rc.010% | 4% | 21% | 25% | 38%
1.1.1910% | 4% | 21% | 25% | 38%
1.1.2110% | 4% | 21% | 25% | 38%
1.1.2010% | 4% | 21% | 25% | 38%
1.1.1710% | 4% | 21% | 25% | 38%
1.1.1510% | 4% | 21% | 25% | 38%
1.1.1610% | 4% | 21% | 25% | 38%
1.1.1810% | 4% | 21% | 25% | 38%
1.1.1410% | 4% | 20% | 25% | 38%
1.1.1310% | 4% | 21% | 25% | 38%
1.1.1211% | 2% | 21% | 25% | 39%
1.1.1111% | 2% | 21% | 25% | 39%
1.1.1011% | 2% | 20% | 24% | 40%
1.1.911% | 2% | 20% | 25% | 39%
1.1.811% | 2% | 20% | 25% | 39%
1.1.711% | 2% | 21% | 25% | 39%
1.1.510% | 2% | 19% | 26% | 40%
1.1.610% | 2% | 19% | 26% | 40%
1.1.410% | 2% | 18% | 27% | 40%
1.1.210% | 2% | 18% | 27% | 40%
1.1.310% | 2% | 18% | 27% | 40%
1.1.112% | 2% | 17% | 25% | 42%
1.1.0-rc.512% | 2% | 18% | 24% | 41%
1.1.012% | 2% | 17% | 25% | 42%
1.0.98% | 7% | 19% | 24% | 40%
1.1.0-rc48% | 4% | 16% | 27% | 42%
1.0.88% | 4% | 17% | 26% | 42%
1.0.78% | 5% | 17% | 27% | 41%
1.0.68% | 5% | 17% | 27% | 40%
1.0.58% | 5% | 18% | 27% | 40%
1.0.48% | 5% | 18% | 26% | 41%
1.0.28% | 5% | 18% | 26% | 41%
1.0.38% | 5% | 18% | 26% | 41%
1.0.18% | 4% | 18% | 25% | 42%
1.0.08% | 4% | 18% | 25% | 42%
0.11.48% | 5% | 18% | 25% | 41%
0.11.38% | 5% | 18% | 26% | 40%
0.11.08% | 5% | 16% | 27% | 41%
0.11.28% | 5% | 16% | 27% | 41%
0.11.18% | 5% | 16% | 27% | 41%
0.10.19% | 5% | 17% | 26% | 40%
0.10.09% | 6% | 18% | 24% | 41%
0.9.89% | 6% | 19% | 23% | 41%
0.9.79% | 6% | 17% | 23% | 42%
0.9.510% | 6% | 17% | 22% | 43%
0.9.610% | 6% | 17% | 22% | 43%
0.9.39% | 5% | 16% | 25% | 42%
0.9.09% | 5% | 16% | 25% | 42%
0.9.49% | 5% | 16% | 25% | 42%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function()
in 1.1.25/js/app.js
204 9 8
function()
in 1.1.19/js/app.js
204 9 8
function()
in 1.2.0-rc.1/js/app.js
204 9 8
function()
in 1.2.2/js/app.js
204 9 8
function()
in 1.1.21/js/app.js
204 9 8
function()
in 1.1.26/js/app.js
204 9 8
function()
in 1.1.20/js/app.js
204 9 8
function()
in 1.2.0/js/app.js
204 9 8
function()
in 1.2.4/js/app.js
204 9 8
function()
in HEAD/js/app.js
204 9 8
function()
in 1.2.0-rc.2/js/app.js
204 9 8
function()
in 1.2.1/js/app.js
204 9 8
function()
in 1.2.3/js/app.js
204 9 8
function()
in 1.1.22/js/app.js
204 9 8
function()
in 1.1.22-rc.0/js/app.js
204 9 8
function()
in latest/js/app.js
204 9 8
function()
in 1.1.24/js/app.js
204 9 8
function()
in 1.1.23/js/app.js
204 9 8
function()
in 1.1.17/js/app.js
199 9 8
function()
in 1.1.15/js/app.js
199 9 8