google / zazu
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 306 units with 3,695 lines of code in units (31.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (231 lines of code)
    • 14 simple units (634 lines of code)
    • 289 very simple units (2,830 lines of code)
0% | 0% | 6% | 17% | 76%
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% | 7% | 8% | 84%
js0% | 0% | 0% | 63% | 36%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
front-end/src/app/admin0% | 0% | 10% | 6% | 82%
front-end/src/app/shared0% | 0% | 3% | 10% | 86%
src/utilities0% | 0% | 0% | 79% | 20%
src/routes0% | 0% | 0% | 35% | 64%
src0% | 0% | 0% | 80% | 20%
front-end/src/app/auth0% | 0% | 0% | 12% | 87%
front-end/src/app/viewer0% | 0% | 0% | 0% | 100%
front-end/src/app0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async onSubmit()
in front-end/src/app/admin/edit-user/edit-user.component.ts
146 25 0
async ngOnChanges()
in front-end/src/app/shared/common-view/report-list/report-list.component.ts
38 12 0
async openDialog()
in front-end/src/app/admin/edit-report-access/edit-report-access.component.ts
47 11 0
async ngOnInit()
in front-end/src/app/shared/common-view/viewer-report-list/viewer-report-list.component.ts
41 9 0
async initialSet()
in front-end/src/app/shared/services/viewer.service.ts
36 9 1
onTick: function()
in src/index.js
56 9 0
regenerateTables: function()
in src/utilities/utils.js
192 9 1
public noDuplicate()
in front-end/src/app/admin/create-new-report/create-new-report.component.ts
23 8 1
public noDuplicate()
in front-end/src/app/admin/edit-report/edit-report.component.ts
23 8 1
public noDataRuleValidator()
in front-end/src/app/admin/edit-report/edit-report.component.ts
30 8 1
async onSubmit()
in front-end/src/app/admin/create-new-user/create-new-user.component.ts
43 7 0
function()
in src/routes/api.js
49 7 2
buildPermissionsQuery: function()
in src/utilities/utils.js
23 7 8
async ngOnInit()
in front-end/src/app/auth/redirect/redirect.component.ts
21 6 0
async ngOnInit()
in front-end/src/app/shared/common-view/viewer-report/viewer-report.component.ts
38 6 0
function()
in src/routes/api.js
29 6 2
function()
in src/utilities/utils.js
30 6 2
async ngOnInit()
in front-end/src/app/admin/admin-report-details/admin-report-details.component.ts
46 5 0
public noDuplicate()
in front-end/src/app/admin/create-new-organization/create-new-organization.component.ts
16 5 1
public noDataRuleValidator()
in front-end/src/app/admin/create-new-report/create-new-report.component.ts
19 5 1