microsoft / TailwindTraders
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 113 units with 1,282 lines of code in units (4.5% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (314 lines of code)
    • 2 medium complex units (67 lines of code)
    • 10 simple units (234 lines of code)
    • 97 very simple units (667 lines of code)
0% | 24% | 5% | 18% | 52%
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% | 24% | 5% | 18% | 52%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Documents/assets/smoothscroll0% | 47% | 13% | 12% | 26%
Documents/assets/theme/js0% | 9% | 0% | 21% | 68%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function keydown()
in Documents/assets/smoothscroll/smooth-scroll.js
74 36 1
(function ()()
in Documents/assets/smoothscroll/smooth-scroll.js
111 29 1
function wheel()
in Documents/assets/smoothscroll/smooth-scroll.js
53 29 1
(function($)()
in Documents/assets/theme/js/script.js
76 27 1
var step = function()
in Documents/assets/smoothscroll/smooth-scroll.js
45 13 1
function overflowingAncestor()
in Documents/assets/smoothscroll/smooth-scroll.js
22 12 1
function init()
in Documents/assets/smoothscroll/smooth-scroll.js
34 10 0
$()
in Documents/assets/theme/js/script.js
22 9 1
function scrollArray()
in Documents/assets/smoothscroll/smooth-scroll.js
29 7 3
$()
in Documents/assets/theme/js/script.js
25 7 1
$()
in Documents/assets/theme/js/script.js
21 6 1
$()
in Documents/assets/theme/js/script.js
18 6 1
$()
in Documents/assets/theme/js/script.js
11 6 1
function checkIfInView()
in Documents/assets/theme/js/script.js
21 6 0
function initClientCarousel()
in Documents/assets/theme/js/script.js
30 6 1
$()
in Documents/assets/theme/js/script.js
23 6 1
function directionCheck()
in Documents/assets/smoothscroll/smooth-scroll.js
10 5 2
function isTouchpad()
in Documents/assets/smoothscroll/smooth-scroll.js
16 5 1
function isInsideYoutubeVideo()
in Documents/assets/smoothscroll/smooth-scroll.js
12 5 1
$.isMobile = function()
in Documents/assets/theme/js/script.js
16 5 1