microsoft / redux-dynamic-modules
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 70 units with 2,116 lines of code in units (82.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (238 lines of code)
    • 6 simple units (215 lines of code)
    • 61 very simple units (1,663 lines of code)
0% | 0% | 11% | 10% | 78%
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
ts0% | 0% | 13% | 10% | 75%
js0% | 0% | 0% | 10% | 89%
tsx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
packages/redux-dynamic-modules-core0% | 0% | 16% | 5% | 78%
packages/redux-dynamic-modules-saga0% | 0% | 0% | 88% | 11%
packages/typescript-example0% | 0% | 0% | 25% | 75%
packages/widgets-example0% | 0% | 0% | 0% | 100%
packages/redux-dynamic-modules-react0% | 0% | 0% | 0% | 100%
packages/redux-dynamic-modules-observable0% | 0% | 0% | 0% | 100%
packages/todo-example0% | 0% | 0% | 0% | 100%
packages/counter-example0% | 0% | 0% | 0% | 100%
packages/redux-dynamic-modules-thunk0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function getModuleManager()
in packages/redux-dynamic-modules-core/src/Managers/ModuleManager.ts
145 22 3
export function getObjectRefCounter()
in packages/redux-dynamic-modules-core/src/Utils/RefCounter.ts
58 16 2
export function getStringRefCounter()
in packages/redux-dynamic-modules-core/src/Utils/RefCounter.ts
35 11 0
export function getMap()
in packages/redux-dynamic-modules-core/src/Utils/ComparableMap.ts
42 10 2
export function sagaEquals()
in packages/redux-dynamic-modules-saga/src/SagaComparer.ts
26 10 2
export function getReducerManager()
in packages/redux-dynamic-modules-core/src/Managers/ReducerManager.ts
44 8 2
function registerValidSW()
in packages/typescript-example/src/serviceWorker.js
33 8 2
export function getSagaExtension()
in packages/redux-dynamic-modules-saga/src/SagaExtension.ts
38 7 2
export function getSagaManager()
in packages/redux-dynamic-modules-saga/src/SagaManager.ts
32 6 1
export function settingsReducer()
in packages/typescript-example/src/SettingsModule/SettingsReduder.ts
21 5 2
export function register()
in packages/typescript-example/src/serviceWorker.js
22 5 1
export function register()
in packages/widgets-example/src/serviceWorker.js
22 5 1
function registerValidSW()
in packages/widgets-example/src/serviceWorker.js
29 5 2
export function getRefCountedReducerManager()
in packages/redux-dynamic-modules-core/src/Managers/ReducerManager.ts
24 4 1
function getCombinedReducer()
in packages/redux-dynamic-modules-core/src/Managers/ReducerManager.ts
11 4 2
export function createStore()
in packages/redux-dynamic-modules-core/src/ModuleStore.ts
140 4 2
export function createStore()
in packages/redux-dynamic-modules-core/src/ModuleStore.ts
136 4 3
export function createStore()
in packages/redux-dynamic-modules-core/src/ModuleStore.ts
131 4 4
export function createStore()
in packages/redux-dynamic-modules-core/src/ModuleStore.ts
125 4 5
export function createStore()
in packages/redux-dynamic-modules-core/src/ModuleStore.ts
118 4 6