angular / protractor
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 473 units with 4,615 lines of code in units (37.6% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (165 lines of code)
    • 10 medium complex units (516 lines of code)
    • 29 simple units (748 lines of code)
    • 432 very simple units (3,186 lines of code)
0% | 3% | 11% | 16% | 69%
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% | 6% | 5% | 12% | 75%
ts0% | 0% | 18% | 21% | 60%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 6% | 18% | 23% | 52%
testapp0% | 0% | 6% | 0% | 93%
website0% | 0% | 0% | 14% | 85%
spec0% | 0% | 0% | 5% | 94%
debugging0% | 0% | 0% | 0% | 100%
exampleTypescript0% | 0% | 0% | 0% | 100%
stress0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function findRepeaterElement()
in lib/clientsidescripts.js
83 26 6
function findRepeaterColumn()
in lib/clientsidescripts.js
82 26 5
async waitForAngular()
in lib/browser.ts
76 22 1
var check = function()
in lib/clientsidescripts.js
35 19 1
async run()
in lib/runner.ts
78 17 0
async get()
in lib/browser.ts
82 15 2
36 13 3
function findRepeaterRows()
in lib/clientsidescripts.js
37 13 4
async createBrowser()
in lib/runner.ts
77 12 2
public log()
in lib/taskLogger.ts
26 12 1
var testMiddleware = function()
in testapp/scripts/web-server.js
36 12 3
function findAllRepeaterRows()
in lib/clientsidescripts.js
33 11 3
async setupDriverEnv()
in lib/driverProviders/local.ts
29 10 0
functions.findBindings = function()
in lib/clientsidescripts.js
28 10 4
function()
in website/gulpfile.js
14 9 4
29 9 3
async getNewDriver()
in lib/driverProviders/direct.ts
57 9 0
19 9 3
22 9 1
20 9 3