opensearch-project / project-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 41 units with 478 lines of code in units (6.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (189 lines of code)
    • 4 simple units (97 lines of code)
    • 32 very simple units (192 lines of code)
0% | 0% | 39% | 20% | 40%
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
rb0% | 0% | 64% | 31% | 3%
js0% | 0% | 15% | 9% | 75%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
_plugins0% | 0% | 64% | 31% | 3%
assets0% | 0% | 15% | 9% | 75%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
self.add
in _plugins/search-indexer.rb
51 20 1
self.verify
in _plugins/link-checker.rb
48 14 1
self.init
in _plugins/link-checker.rb
30 13 1
define()
in assets/js/main.js
37 12 1
self.check_internal
in _plugins/link-checker.rb
23 12 1
self.check_external
in _plugins/link-checker.rb
42 10 1
self.process
in _plugins/link-checker.rb
17 8 1
self.check
in _plugins/link-checker.rb
16 7 1
22 6 1
init: function()
in assets/js/mod/list-feature.js
8 4 0
$()
in assets/js/mod/search-key.js
7 3 1
init: function()
in assets/js/mod/list-collapsing.js
30 2 0
function hasClass()
in assets/js/main.js
5 2 1
var CollapsingList = function()
in assets/js/mod/list-collapsing.js
4 1 1
$()
in assets/js/mod/list-collapsing.js
3 1 1
var VersionSwitcher = function()
in assets/js/mod/version-switcher.js
4 1 1
init: function()
in assets/js/mod/version-switcher.js
3 1 0
$()
in assets/js/mod/version-switcher.js
9 1 1
var MobileMenuExport = function()
in assets/js/mod/mobile-menu.js
4 1 1
init: function()
in assets/js/mod/mobile-menu.js
10 1 0