aws-samples / aws-refarch-wordpress
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 28 units with 327 lines of code in units (4.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (49 lines of code)
    • 2 simple units (60 lines of code)
    • 25 very simple units (218 lines of code)
0% | 0% | 14% | 18% | 66%
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% | 14% | 18% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
bits0% | 0% | 14% | 18% | 66%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public function getStatusDataRows()
in bits/opcache-instance-id.php
49 20 0
public function getScriptStatusRows()
in bits/opcache-instance-id.php
43 10 0
function click()
in bits/opcache-instance-id.php
17 6 1
public function getConfigDataRows()
in bits/opcache-instance-id.php
17 5 0
private function _arrayPset()
in bits/opcache-instance-id.php
14 5 3
function set_text()
in bits/opcache-instance-id.php
26 5 1
private function _processPartition()
in bits/opcache-instance-id.php
11 3 2
private function _size_for_humans()
in bits/opcache-instance-id.php
12 3 1
function change()
in bits/opcache-instance-id.php
13 3 0
function size_for_humans()
in bits/opcache-instance-id.php
7 3 1
public function getGraphDataSetJson()
in bits/opcache-instance-id.php
30 2 0
private function _format_value()
in bits/opcache-instance-id.php
8 2 1
function toggleVisible()
in bits/opcache-instance-id.php
11 2 2
function format_value()
in bits/opcache-instance-id.php
7 2 1
function handleVisualisationToggle()
in bits/opcache-instance-id.php
7 2 1
public function __construct()
in bits/opcache-instance-id.php
5 1 0
public function getPageTitle()
in bits/opcache-instance-id.php
4 1 0
public function getScriptStatusCount()
in bits/opcache-instance-id.php
4 1 0
public function getHumanUsedMemory()
in bits/opcache-instance-id.php
4 1 0
public function getHumanFreeMemory()
in bits/opcache-instance-id.php
4 1 0