microsoft / webauthntest
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 37 units with 677 lines of code in units (37.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (133 lines of code)
    • 2 medium complex units (147 lines of code)
    • 2 simple units (92 lines of code)
    • 32 very simple units (305 lines of code)
0% | 19% | 21% | 13% | 45%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
js0% | 19% | 21% | 13% | 45%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
public0% | 25% | 28% | 0% | 45%
ROOT0% | 0% | 0% | 56% | 43%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function createCredential()
in public/index.js
133 33 1
$()
in public/index.js
124 13 1
function getAssertion()
in public/index.js
23 13 1
48 8 2
44 8 1
46 5 1
function base64encode()
in public/index.js
5 3 1
7 2 1
function getChallenge()
in public/index.js
15 2 0
function deleteCredential()
in public/index.js
17 2 1
15 2 0
8 2 1
5 1 2
8 1 1
6 1 2
(function ()()
in public/index.js
3 1 1
id: base64encode()
in public/index.js
8 1 1
7 1 1
6 1 1
id: base64encode()
in public/index.js
8 1 1