opensearch-project / index-management-dashboards-plugin
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 197 units with 4,901 lines of code in units (23.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (100 lines of code)
    • 11 simple units (493 lines of code)
    • 184 very simple units (4,308 lines of code)
0% | 0% | 2% | 10% | 87%
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
tsx0% | 0% | 2% | 10% | 86%
ts0% | 0% | 0% | 8% | 91%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
public/pages0% | 0% | 2% | 11% | 85%
server/utils0% | 0% | 0% | 72% | 27%
server/routes0% | 0% | 0% | 0% | 100%
server/clusters0% | 0% | 0% | 0% | 100%
server/services0% | 0% | 0% | 0% | 100%
public0% | 0% | 0% | 0% | 100%
server0% | 0% | 0% | 0% | 100%
public/services0% | 0% | 0% | 0% | 100%
public/utils0% | 0% | 0% | 0% | 100%
public/temporary0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
_next()
in public/pages/CreateRollup/containers/CreateRollupForm/CreateRollupForm.tsx
52 19 0
render()
in public/pages/VisualCreatePolicy/containers/CreateState/CreateState.tsx
48 12 0
render()
in public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx
96 10 0
export function getURLQueryParams()
in public/pages/ManagedIndices/utils/helpers.ts
11 7 1
export function getURLQueryParams()
in public/pages/Indices/utils/helpers.ts
11 7 1
render()
in public/pages/Transforms/components/TransformStatus/TransformStatus.tsx
53 7 0
render()
in public/pages/RollupDetails/containers/RollupDetails/RollupDetails.tsx
120 6 0
export function getURLQueryParams()
in public/pages/Policies/utils/helpers.ts
10 6 1
export function getURLQueryParams()
in public/pages/Transforms/utils/helpers.ts
10 6 1
render()
in public/pages/CreateTransform/containers/CreateTransformForm/CreateTransformForm.tsx
137 6 0
export function getURLQueryParams()
in public/pages/Rollups/utils/helpers.ts
10 6 1
28 6 1
export function getSearchString()
in server/utils/helpers.ts
7 6 4
render()
in public/pages/VisualCreatePolicy/containers/CreateAction/CreateAction.tsx
61 5 0
export default function PercentilePanel()
in public/pages/CreateTransform/components/TransformOptions/Panels/PercentilePanel/PercentilePanel.tsx
55 5 4
render()
in public/pages/CreateTransform/components/ReviewDefinition/ReviewDefinition.tsx
90 5 0
render()
in public/pages/CreateRollup/components/AdvancedAggregation/AdvancedAggregation.tsx
114 5 0
constructor()
in public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx
79 4 1
constructor()
in public/pages/VisualCreatePolicy/containers/CreateState/CreateState.tsx
17 4 1
render()
in public/pages/CreateRollup/containers/CreateRollupForm/CreateRollupForm.tsx
161 4 0