microsoft / moodle-theme_boost_o365teams
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 21 units with 275 lines of code in units (19.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (78 lines of code)
    • 19 very simple units (197 lines of code)
0% | 0% | 0% | 28% | 71%
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
php0% | 0% | 0% | 33% | 66%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 0% | 44% | 55%
classes/output0% | 0% | 0% | 0% | 100%
amd/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
50 10 5
28 6 2
21 5 4
15 4 7
20 4 1
init: function()
in amd/src/iframeChecker.js
8 2 0
public function user_link()
in classes/output/core_renderer.php
13 2 0
public function feedback_link()
in classes/output/core_renderer.php
10 2 0
public function get_footer_stamp()
in classes/output/core_renderer.php
17 2 0
34 2 5
8 2 2
define()
in amd/src/iframeChecker.js
4 1 2
$()
in amd/src/iframeChecker.js
3 1 1
$()
in amd/src/iframeChecker.js
3 1 1
$()
in amd/src/iframeChecker.js
3 1 1
$()
in amd/src/iframeChecker.js
3 1 1
$()
in amd/src/iframeChecker.js
4 1 1
define()
in amd/src/teamsThemeChecker.js
4 1 2
init: function()
in amd/src/teamsThemeChecker.js
13 1 0
public function standard_head_html()
in classes/output/core_renderer.php
8 1 0