aws-quickstart / quickstart-mongodb-atlas-resources
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 162 units with 3,005 lines of code in units (68.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (667 lines of code)
    • 23 simple units (931 lines of code)
    • 132 very simple units (1,407 lines of code)
0% | 0% | 22% | 30% | 46%
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% | 0% | 22% | 30% | 46%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cfn-resources/cluster0% | 0% | 59% | 11% | 28%
cfn-resources/database-user0% | 0% | 25% | 59% | 14%
cfn-resources/testutil0% | 0% | 55% | 0% | 44%
cfn-resources/network-peering0% | 0% | 12% | 67% | 19%
cfn-resources/cloud-provider-snapshot-restore-jobs0% | 0% | 22% | 12% | 65%
cfn-resources/project0% | 0% | 0% | 57% | 42%
cfn-resources/network-container0% | 0% | 0% | 55% | 44%
cfn-resources/project-ip-access-list0% | 0% | 0% | 17% | 82%
cfn-resources/cloud-provider-snapshots0% | 0% | 0% | 21% | 78%
cfn-resources/encryption-at-rest0% | 0% | 0% | 22% | 77%
cfn-resources/util0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func Create()
in cfn-resources/cluster/cmd/resource/resource.go
146 23 3
func Test()
in cfn-resources/testutil/testutil.go
92 20 2
func Read()
in cfn-resources/cluster/cmd/resource/resource.go
123 18 3
func Update()
in cfn-resources/cluster/cmd/resource/resource.go
105 18 3
func Create()
in cfn-resources/database-user/cmd/resource/resource.go
96 14 3
func validateOrCreateNetworkContainer()
in cfn-resources/network-peering/cmd/resource/resource.go
55 12 3
func Create()
in cfn-resources/cloud-provider-snapshot-restore-jobs/cmd/resource/resource.go
50 11 3
func Create()
in cfn-resources/network-peering/cmd/resource/resource.go
61 10 3
func Update()
in cfn-resources/network-peering/cmd/resource/resource.go
60 10 3
func Update()
in cfn-resources/database-user/cmd/resource/resource.go
73 9 3
func Read()
in cfn-resources/network-peering/cmd/resource/resource.go
55 8 3
func Delete()
in cfn-resources/project/cmd/resource/resource.go
46 7 3
func Read()
in cfn-resources/database-user/cmd/resource/resource.go
64 7 3
func snapshotIsReady()
in cfn-resources/cloud-provider-snapshots/cmd/resource/resource.go
18 6 5
func wrap()
in cfn-resources/cloud-provider-snapshots/cmd/main.go
28 6 2
func Delete()
in cfn-resources/network-peering/cmd/resource/resource.go
41 6 3
func List()
in cfn-resources/network-peering/cmd/resource/resource.go
47 6 3
func wrap()
in cfn-resources/network-peering/cmd/main.go
28 6 2
func Read()
in cfn-resources/project/cmd/resource/resource.go
49 6 3
func wrap()
in cfn-resources/project/cmd/main.go
28 6 2