flutter / website
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 63 units with 680 lines of code in units (12.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (74 lines of code)
    • 3 simple units (76 lines of code)
    • 58 very simple units (530 lines of code)
0% | 0% | 10% | 11% | 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
dart0% | 0% | 37% | 20% | 42%
js0% | 0% | 6% | 12% | 80%
rb0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tool0% | 0% | 32% | 18% | 48%
src/assets0% | 0% | 6% | 12% | 80%
src/_plugins0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int _processFile()
in tool/extract.dart
45 12 1
function setupToolsTabs()
in src/assets/js/tabs.js
29 12 4
void _extractSnippet()
in tool/extract.dart
25 6 5
function updateTable()
in src/assets/js/archive.js
37 6 2
function setupTabs()
in src/assets/js/tabs.js
14 6 3
Iterable maxUnindent()
in tool/extract.dart
12 5 1
function getOS()
in src/assets/js/main.js
9 5 0
$()
in src/assets/js/archive.js
13 5 1
function clickHandler()
in src/assets/js/tabs.js
14 5 1
_trimLeadingWhitespace
in src/_plugins/indent.rb
12 5 1
void main()
in tool/extract.dart
16 4 1
function updateList()
in src/assets/js/go_link_index.js
14 4 1
function initVideoModal()
in src/assets/js/main.js
21 4 0
function sendRequest()
in src/assets/js/subscribe_prefs.js
26 4 1
function showErrors()
in src/assets/js/subscribe_prefs.js
14 4 1
void clean()
in tool/extract.dart
10 3 0
def find_invalid_link_references()
in tool/check_link_references.py
16 3 1
function _copiedFeedback()
in src/assets/js/main.js
10 3 1
function updateDownloadLink()
in src/assets/js/archive.js
25 3 2
function submitForm()
in src/assets/js/subscribe_prefs.js
10 3 0