microsoft / webauthntest
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 37 units with 677 lines of code in units (37.8% of code).
    • 2 very long units (257 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (193 lines of code)
    • 5 small units (74 lines of code)
    • 25 very small units (153 lines of code)
37% | 0% | 28% | 10% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js37% | 0% | 28% | 10% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
public50% | 0% | 10% | 14% | 24%
ROOT0% | 0% | 84% | 0% | 15%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function createCredential()
in public/index.js
133 33 1
$()
in public/index.js
124 13 1
48 8 2
46 5 1
44 8 1
function renderCredential()
in public/index.js
32 1 1
function getAssertion()
in public/index.js
23 13 1
function deleteCredential()
in public/index.js
17 2 1
function getChallenge()
in public/index.js
15 2 0
15 2 0
15 1 0
function showCreationData()
in public/index.js
12 1 1
10 1 1
function rest_put()
in public/index.js
10 1 2
function rest_delete()
in public/index.js
10 1 2
8 1 1
id: base64encode()
in public/index.js
8 1 1
id: base64encode()
in public/index.js
8 1 1
8 2 1
7 2 1