microsoft / donuts.node
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 169 units with 2,170 lines of code in units (63.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (56 lines of code)
    • 12 medium complex units (520 lines of code)
    • 11 simple units (296 lines of code)
    • 145 very simple units (1,298 lines of code)
0% | 2% | 23% | 13% | 59%
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
js0% | 2% | 24% | 13% | 59%
cc0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
core0% | 13% | 37% | 4% | 44%
remote0% | 0% | 36% | 8% | 54%
modularity0% | 0% | 25% | 25% | 49%
settings0% | 0% | 28% | 52% | 18%
core/logging0% | 0% | 8% | 21% | 70%
remote/proxy0% | 0% | 0% | 18% | 81%
weak0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
remote/pattern0% | 0% | 0% | 0% | 100%
ipc0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
format()
in core/utils.js
56 28 2
format()
in core/utils.js
93 24 2
constructor()
in remote/communicator.js
72 15 2
isSerializable()
in core/utils.js
30 14 1
toDataInfo()
in remote/data-info-manager.js
34 14 2
constructor()
in remote/object-remoting-proxy.js
68 14 4
defaultStringifier()
in core/utils.js
29 13 2
realizeDataInfo()
in remote/data-info-manager.js
40 13 1
toObjectDataInfo()
in remote/data-info-manager.js
35 13 1
register()
in modularity/module-manager.js
30 12 1
async initializeModulesAync()
in modularity/module-manager.js
42 12 1
formatProperties()
in core/logging/loggers/console.js
21 11 1
async setAsync()
in settings/settings.js
26 11 2
generateProperties()
in core/logging/log.js
29 10 1
loadModuleInfos()
in modularity/module-manager.js
34 10 2
realizeObjectDataInfo()
in remote/data-info-manager.js
42 9 1
constructor()
in settings/file-settings.js
29 8 3
async writeAsync()
in core/logging/loggers/console.js
24 7 3
getPropertyValue()
in core/utils.js
18 7 3
constructor()
in modularity/object-remoting-host-router.js
38 7 2