ajaxorg / ace-builds
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 8,664 units with 139,651 lines of code in units (76.9% of code).
    • 10 very complex units (1,232 lines of code)
    • 29 complex units (5,489 lines of code)
    • 426 medium complex units (17,741 lines of code)
    • 997 simple units (23,897 lines of code)
    • 7,202 very simple units (91,292 lines of code)
<1% | 3% | 12% | 17% | 65%
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
js<1% | 3% | 12% | 17% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src<1% | 5% | 9% | 15% | 68%
src-noconflict1% | 2% | 11% | 17% | 67%
src/snippets0% | 0% | 39% | 29% | 31%
src-noconflict/snippets0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
this.vbsBlock = function()
in src/mode-vbscript.js
220 80 4
this.vbsBlock = function()
in src-noconflict/mode-vbscript.js
220 80 4
54 76 1
EntityParser.replaceEntityNumbers = function()
in src-noconflict/worker-html.js
54 76 1
this.rubyBlock = function()
in src/mode-ruby.js
138 61 4
this.rubyBlock = function()
in src-noconflict/mode-ruby.js
138 61 4
function lex()
in src/worker-lua.js
70 59 0
function lex()
in src-noconflict/worker-lua.js
70 59 0
134 56 0
var XmlBehaviour = function()
in src-noconflict/mode-xml.js
134 56 0
evalInput: function()
in src/keybinding-vim.js
143 44 2
evalInput: function()
in src-noconflict/keybinding-vim.js
143 44 2
137 42 5
function parseElementStartPart()
in src-noconflict/worker-xml.js
137 42 5
handleKeyboard: function()
in src/keybinding-vim.js
65 39 5
handleKeyboard: function()
in src-noconflict/keybinding-vim.js
65 39 5
97 35 3
EntityParser.consumeEntity = function()
in src-noconflict/worker-html.js
97 35 3
define()
in src/worker-html.js
3012 34 5
function readEscapeSequence()
in src/worker-lua.js
39 34 0