microsoft / IIS.WebManager
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 1,891 units with 13,916 lines of code in units (41.4% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (170 lines of code)
    • 10 medium complex units (364 lines of code)
    • 51 simple units (1,085 lines of code)
    • 1,828 very simple units (12,297 lines of code)
0% | 1% | 2% | 7% | 88%
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% | 1% | 2% | 7% | 88%
js0% | 0% | 71% | 0% | 28%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/app/common0% | 6% | 3% | 10% | 78%
src/app/utils0% | 18% | 20% | 22% | 39%
src/app/webserver0% | 0% | 1% | 5% | 93%
src/app/files0% | 0% | 2% | 14% | 83%
src/app/runtime0% | 0% | 11% | 22% | 65%
src0% | 0% | 71% | 0% | 28%
src/app/certificates0% | 0% | 0% | 15% | 84%
src/app/connect0% | 0% | 0% | 5% | 94%
src/app/notification0% | 0% | 0% | 0% | 100%
src/app/main0% | 0% | 0% | 0% | 100%
src/app/settings0% | 0% | 0% | 0% | 100%
src/app/versioning0% | 0% | 0% | 0% | 100%
src/app/diagnostics0% | 0% | 0% | 0% | 100%
src/app/header0% | 0% | 0% | 0% | 100%
src/app/error0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static async LoadAsync()
in src/app/common/component-loader.ts
114 27 2
public static diff()
in src/app/utils/diff.ts
56 27 2
private apiErrorFromHttp()
in src/app/common/http-client.ts
65 23 1
public handleError()
in src/app/files/files.service.ts
24 21 2
public static getUrlMatch()
in src/app/utils/url.ts
63 19 2
public invoke()
in src/app/runtime/wac/services/powershell-service.ts
48 16 3
private testRegex()
in src/app/webserver/url-rewrite/inbound-rules/inbound-rule-settings.ts
26 13 0
private testRegex()
in src/app/webserver/url-rewrite/outbound-rules/outbound-rule-settings.ts
26 13 0
private copyMove()
in src/app/files/files.service.ts
29 12 4
saveHeaderChanges()
in src/app/webserver/http-response-headers/http-response-headers.component.ts
22 12 2
public getUrl()
in src/app/webserver/websites/websites.service.ts
24 12 2
function merge()
in src/gulpfile.js
37 11 2
private onChangeHandler()
in src/app/common/virtual-list.component.ts
29 10 0
public drop()
in src/app/files/files.service.ts
21 10 2
private onError()
in src/app/webserver/central-certificates/central-certificate.service.ts
11 10 1
public drop()
in src/app/webserver/files/webfiles.service.ts
22 10 2
public select()
in src/app/common/selectable.ts
21 9 3
private load()
in src/app/connect/connection-store.ts
29 9 0
private createDiffEditor()
in src/app/files/code-editor.component.ts
33 9 1
public toAlias()
in src/app/files/file-nav.service.ts
22 9 1