aws-samples / 1click-hpc
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 37 units with 484 lines of code in units (6.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (76 lines of code)
    • 1 simple units (35 lines of code)
    • 35 very simple units (373 lines of code)
0% | 0% | 15% | 7% | 77%
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% | 0% | 15% | 7% | 77%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
enginframe0% | 0% | 15% | 7% | 77%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
editUserDialog: function()
in enginframe/hydrogen.manage-users.js
76 14 10
dialogButtons[buttonLabel] = function()
in enginframe/hydrogen.manage-users.js
35 7 0
jQuery()
in enginframe/hydrogen.manage-users.js
12 4 1
groups: function()
in enginframe/hydrogen.manage-users.js
18 4 3
jQuery()
in enginframe/hydrogen.manage-users.js
9 4 1
tagItDialog: function()
in enginframe/hydrogen.manage-users.js
34 4 7
beforeTagAdded: function()
in enginframe/hydrogen.manage-users.js
15 4 2
beforeTagAdded: function()
in enginframe/hydrogen.manage-users.js
15 4 2
dialogButtons[buttonLabel] = function()
in enginframe/hydrogen.manage-users.js
11 4 0
isAdmin: function()
in enginframe/hydrogen.manage-users.js
14 3 3
dialogButtons[buttonLabel] = function()
in enginframe/hydrogen.manage-users.js
10 3 0
jQuery()
in enginframe/hydrogen.manage-users.js
9 3 1
success: function()
in enginframe/hydrogen.manage-users.js
7 2 1
importUsersDialog: function()
in enginframe/hydrogen.manage-users.js
23 2 5
refresh: function()
in enginframe/hydrogen.manage-users.js
3 1 0
init: function()
in enginframe/hydrogen.manage-users.js
2 1 1
jQuery()
in enginframe/hydrogen.manage-users.js
40 1 1
refreshFunc: function()
in enginframe/hydrogen.manage-users.js
2 1 0
success: function()
in enginframe/hydrogen.manage-users.js
4 1 1
lastLoginTime: function()
in enginframe/hydrogen.manage-users.js
4 1 3