kubernetes / dashboard
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,447 units with 16,041 lines of code in units (34.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (73 lines of code)
    • 13 medium complex units (635 lines of code)
    • 69 simple units (1,820 lines of code)
    • 1,364 very simple units (13,513 lines of code)
0% | <1% | 3% | 11% | 84%
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
go0% | <1% | 4% | 11% | 84%
ts0% | 0% | 2% | 12% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/app/backend0% | <1% | 4% | 11% | 84%
src/app/frontend0% | 0% | 2% | 12% | 84%
cypress/pages0% | 0% | 0% | 0% | 100%
cypress/plugins0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func getPodStatus()
in src/app/backend/resource/pod/common.go
73 29 1
private _initBreadcrumbs()
in src/app/frontend/common/components/breadcrumbs/component.ts
51 17 0
func evalValueFrom()
in src/app/backend/resource/pod/detail.go
49 16 5
func DeployAppFromFile()
in src/app/backend/resource/deployment/deploy.go
56 15 2
func main()
in src/app/backend/dashboard.go
93 15 0
func NewGenericResponse()
in src/app/backend/errors/errors.go
53 14 2
func NewResourceController()
in src/app/backend/resource/controller/controller.go
43 13 3
func()
in src/app/backend/resource/logs/logs.go
28 13 1
func getPodStatusPhase()
in src/app/backend/resource/pod/common.go
30 13 2
func getMyPodsFromCache()
in src/app/backend/integration/metric/heapster/selector.go
25 13 2
func getMyPodsFromCache()
in src/app/backend/integration/metric/sidecar/selector.go
25 13 2
func DeployApp()
in src/app/backend/resource/deployment/deploy.go
89 11 2
func GetPodPersistentVolumeClaims()
in src/app/backend/resource/persistentvolumeclaim/common.go
43 11 4
func()
in src/app/backend/integration/metric/sidecar/client.go
50 11 1
private _getBreadcrumbLabel()
in src/app/frontend/common/components/breadcrumbs/component.ts
15 10 2
func()
in src/app/backend/client/verber.go
24 10 1
func getNodeAllocatedResources()
in src/app/backend/resource/node/detail.go
57 10 2
func evalEnvFrom()
in src/app/backend/resource/pod/detail.go
54 10 3
private _getAllocation()
in src/app/frontend/resource/cluster/node/detail/component.ts
43 9 0
private updateResourcesRatio_()
in src/app/frontend/common/resources/groupedlist.ts
71 9 2