awslabs / amazon-kinesis-data-generator
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 248 units with 2,963 lines of code in units (5.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (183 lines of code)
    • 17 simple units (436 lines of code)
    • 228 very simple units (2,344 lines of code)
0% | 0% | 6% | 14% | 79%
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% | 0% | 6% | 14% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
web/js0% | 0% | 6% | 15% | 77%
setup0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function Fake()
in web/js/faker.js
78 16 1
function rnd()
in web/js/faker.js
32 14 2
function Faker()
in web/js/faker.js
73 11 1
password = function()
in web/js/faker.js
34 10 4
self.mask = function()
in web/js/faker.js
13 9 3
this.findName = function()
in web/js/faker.js
22 8 3
function updateStreamsList()
in web/js/producer.js
34 7 2
function updateFirehoseList()
in web/js/producer.js
34 7 2
46 7 2
self.price = function()
in web/js/faker.js
11 7 4
self.color = function()
in web/js/faker.js
15 7 3
this.number = function()
in web/js/faker.js
24 7 1
22 7 2
$()
in web/js/producer.js
11 6 1
function createDataConstant()
in web/js/producer.js
30 6 0
function generatePeriodicData()
in web/js/producer.js
30 6 5
16 6 1
self.userName = function()
in web/js/faker.js
19 6 2
function Random()
in web/js/faker.js
62 6 2
(function (root)()
in web/js/faker.js
13 6 1