aws / session-manager-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 279 units with 3,189 lines of code in units (72.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (273 lines of code)
    • 23 simple units (751 lines of code)
    • 252 very simple units (2,165 lines of code)
0% | 0% | 8% | 23% | 67%
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% | 8% | 23% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/datachannel0% | 0% | 10% | 23% | 65%
src/sessionmanagerplugin0% | 0% | 8% | 22% | 68%
src/message0% | 0% | 16% | 38% | 45%
src/ssmclicommands0% | 0% | 15% | 48% | 35%
src/communicator0% | 0% | 0% | 26% | 73%
src/version0% | 0% | 0% | 26% | 73%
src/log0% | 0% | 0% | 3% | 96%
src/encryption0% | 0% | 0% | 0% | 100%
src/jsonutil0% | 0% | 0% | 0% | 100%
src/websocketutil0% | 0% | 0% | 0% | 100%
src/retry0% | 0% | 0% | 0% | 100%
src/sdkutil0% | 0% | 0% | 0% | 100%
src/ssmcli-main0% | 0% | 0% | 0% | 100%
src/sessionmanagerplugin-main0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in src/datachannel/streaming.go
89 20 1
func ValidateInputAndStartSession()
in src/sessionmanagerplugin/session/session.go
72 17 2
func()
in src/message/messageparser.go
71 12 1
func()
in src/ssmclicommands/startsession.go
41 11 1
func ParseCliCommand()
in src/ssmclicommands/inputhandler.go
45 10 1
func()
in src/message/messageparser.go
51 10 1
func()
in src/communicator/websocketchannel.go
44 9 1
func()
in src/ssmclicommands/startsession.go
51 9 1
func putUuid()
in src/message/messageparser.go
32 9 4
func()
in src/sessionmanagerplugin/session/shellsession/shellsession_windows.go
35 9 1
func()
in src/sessionmanagerplugin/session/portsession/muxportforwarding.go
49 9 1
func getUuid()
in src/message/messageparser.go
29 8 3
func()
in src/message/messageparser.go
23 8 1
func()
in src/datachannel/streaming.go
54 8 1
func ValidateInput()
in src/ssmclicommands/inputhandler.go
33 7 2
func()
in src/version/versionutil.go
24 7 1
func putString()
in src/message/messageparser.go
16 7 5
func()
in src/datachannel/streaming.go
47 7 1
func()
in src/datachannel/streaming.go
26 7 1
func()
in src/datachannel/streaming.go
29 7 1