aws-samples / amazon-chime-proxy-sessions-demo
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 221 units with 4,150 lines of code in units (81.4% of code).
    • 8 very long units (2,064 lines of code)
    • 5 long units (316 lines of code)
    • 18 medium size units (588 lines of code)
    • 35 small units (497 lines of code)
    • 155 very small units (685 lines of code)
49% | 7% | 14% | 11% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js49% | 7% | 14% | 11% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
chimeproxy-frontend/public/js50% | 7% | 13% | 12% | 16%
chimeproxy-frontend/src/components0% | 0% | 87% | 0% | 12%
chimeproxy-backend0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
(function (global, factory)()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
623 10 2
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
353 83 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
256 74 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
242 73 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
208 47 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
140 28 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
126 29 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
116 32 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
82 14 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
64 9 0
function computeStyle()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
60 14 2
function flip()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
57 41 2
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
53 16 0
function()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
47 12 1
function arrow()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
45 11 2
function parseOffset()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
44 11 4
function computeAutoPlacement()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
42 7 5
function getBoundaries()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
39 19 4
function getOffsetRectRelativeToArbitraryNode()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
37 11 2
function getBoundingClientRect()
in chimeproxy-frontend/public/js/bootstrap.bundle.js
35 10 1