aws / connect-rtc-js
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 1,196 units with 11,315 lines of code in units (93.8% of code).
    • 2 very complex units (1,031 lines of code)
    • 4 complex units (352 lines of code)
    • 38 medium complex units (1,711 lines of code)
    • 70 simple units (1,469 lines of code)
    • 1,082 very simple units (6,752 lines of code)
9% | 3% | 15% | 12% | 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
js9% | 3% | 15% | 12% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
release11% | 3% | 17% | 13% | 54%
src/js0% | 0% | 6% | 9% | 84%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
290 81 1
packetsCount: parseInt()
in release/connect-rtc.js
741 60 1
141 43 0
bytesReceived: parseInt()
in release/connect-rtc.js
108 32 1
75 27 1
var $export = function()
in release/connect-rtc.js
28 26 3
module.exports = function()
in release/connect-rtc.js
111 24 2
var shimConstraints_ = function()
in release/connect-rtc.js
50 24 2
impl = function()
in release/connect-rtc.js
80 24 0
function transformSdp()
in release/connect-rtc.js
73 23 2
module.exports = function()
in release/connect-rtc.js
30 22 7
83 22 0
_buildMediaConstraints()
in src/js/rtc_session.js
67 20 0
48 20 1
67 20 0
var constraintsToChrome_ = function()
in release/connect-rtc.js
38 18 1
var constraintsToFF37_ = function()
in release/connect-rtc.js
43 17 1
value: function()
in release/connect-rtc.js
69 17 0
function extractMediaStatsFromStats()
in release/connect-rtc.js
34 17 3
function makeInvokeMethod()
in release/connect-rtc.js
55 16 3