angular / webdriver-manager
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 116 units with 2,070 lines of code in units (45.6% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (249 lines of code)
    • 4 medium complex units (262 lines of code)
    • 15 simple units (460 lines of code)
    • 95 very simple units (1,099 lines of code)
0% | 12% | 12% | 22% | 53%
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
ts0% | 12% | 12% | 22% | 53%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/cmds0% | 25% | 13% | 7% | 52%
lib/files0% | 0% | 30% | 36% | 33%
lib/binaries0% | 0% | 15% | 19% | 65%
lib0% | 0% | 0% | 62% | 37%
lib/cli0% | 0% | 0% | 23% | 76%
spec/files0% | 0% | 0% | 0% | 100%
spec/binaries0% | 0% | 0% | 0% | 100%
spec/cmds0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function start()
in lib/cmds/start.ts
178 30 1
function status()
in lib/cmds/status.ts
71 28 1
function update()
in lib/cmds/update.ts
131 22 1
private getSpecificChromeDriverVersion()
in lib/binaries/chrome_xml.ts
40 17 1
static getFile()
in lib/files/downloader.ts
71 11 6
function getAndroidArch()
in lib/binaries/android_sdk.ts
20 11 0
function startAndroid()
in lib/cmds/start.ts
44 9 6
static downloadedVersions_()
in lib/files/file_manager.ts
28 9 4
39 8 5
export function adb()
in lib/utils.ts
45 8 5
static resolveProxy()
in lib/http_utils.ts
23 8 2
static removeExistingFiles()
in lib/files/file_manager.ts
37 8 1
31 7 1
28 7 1
25 7 1
function unzip()
in lib/cmds/update.ts
33 7 3
static compileBinaries_()
in lib/files/file_manager.ts
22 7 2
getMinimistOptions()
in lib/cli/programs.ts
27 6 0
private getLatestStandaloneVersion()
in lib/binaries/standalone_xml.ts
23 6 0
private getLatestGeckoDriverVersion()
in lib/binaries/gecko_driver_github.ts
21 6 0