microsoft / wineryjs
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 184 units with 1,744 lines of code in units (76.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (300 lines of code)
    • 7 simple units (220 lines of code)
    • 172 very simple units (1,224 lines of code)
0% | 0% | 17% | 12% | 70%
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% | 0% | 17% | 12% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 0% | 17% | 12% | 70%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
107 18 3
public create()
in lib/object-context.ts
49 12 1
65 12 0
private prepareExecutionStack()
in lib/request-context.ts
47 12 1
public needsUpdate()
in lib/object-context.ts
32 11 2
public constructor()
in lib/application.ts
52 8 2
36 7 2
public create()
in lib/object-type.ts
24 7 2
public async serve()
in lib/host.ts
30 6 1
18 6 2
public provide()
in lib/object-provider.ts
22 6 2
private loadInternal()
in lib/request-template.ts
38 6 2
export function getNamedObject()
in lib/builtin-entrypoints.ts
10 5 2
export function getType()
in lib/builtin-entrypoints.ts
13 5 2
export function getProvider()
in lib/builtin-entrypoints.ts
13 5 2
export function createFunction()
in lib/builtin-types.ts
22 5 2
public register()
in lib/host.ts
25 5 3
public get()
in lib/object-context.ts
25 5 1
private selectProvider()
in lib/object-context.ts
14 5 2
public constructor()
in lib/object-context.ts
26 5 5