awslabs / amazon-kinesis-video-streams-webrtc-sdk-ios
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 115 units with 1,107 lines of code in units (52.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (199 lines of code)
    • 111 very simple units (908 lines of code)
0% | 0% | 0% | 17% | 82%
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
swift0% | 0% | 0% | 17% | 82%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
KVSiOSApp0% | 0% | 0% | 28% | 71%
AWSKinesisVideoWebRTCDemoAppTests0% | 0% | 0% | 0% | 100%
AWSKinesisVideoWebRTCDemoAppUITests0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func getSignedWSSUrl()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
76 8 4
func webRTCClient()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
20 8 2
func application()
in Swift/KVSiOSApp/AppDelegate.swift
55 8 2
func websocketDidReceiveMessage()
in Swift/KVSiOSApp/SignalingClient.swift
48 7 2
func connectAsRole()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
59 5 2
func handlePendingIceCandidates()
in Swift/KVSiOSApp/WebRTCClient.swift
12 3 1
func checkAndAddIceCandidate()
in Swift/KVSiOSApp/WebRTCClient.swift
21 3 2
func createChannel()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
23 3 1
func retrieveChannelARN()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
23 3 1
func configureAudioSession()
in Swift/KVSiOSApp/WebRTCClient.swift
17 2 0
func shutdown()
in Swift/KVSiOSApp/WebRTCClient.swift
11 2 0
func set()
in Swift/KVSiOSApp/WebRTCClient.swift
7 2 3
func showSignInError()
in Swift/KVSiOSApp/SignInViewController.swift
10 2 1
init()
in Swift/KVSiOSApp/VideoViewController.swift
12 2 4
func sha256()
in Swift/KVSiOSApp/KVSSigner.swift
6 2 0
func updateConnectionLabel()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
9 2 0
func getSingleMasterChannelEndpointRole()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
6 2 0
func setRemoteSenderClientId()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
5 2 0
func signalClient()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
11 2 3
func signalClient()
in Swift/KVSiOSApp/ChannelConfigurationViewController.swift
8 2 3