aws / amazon-chime-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 519 units with 4,649 lines of code in units (34.4% 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)
    • 8 simple units (224 lines of code)
    • 511 very simple units (4,425 lines of code)
0% | 0% | 0% | 4% | 95%
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% | 4% | 95%
m0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
AmazonChimeSDKDemo/AmazonChimeSDKDemo0% | 0% | 0% | 11% | 88%
AmazonChimeSDKDemo/AmazonChimeSDKDemo/utils0% | 0% | 0% | 30% | 69%
AmazonChimeSDK/AmazonChimeSDK/internal0% | 0% | 0% | 3% | 96%
AmazonChimeSDK/AmazonChimeSDKTests/internal0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDKTests/audiovideo0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDKTests/session0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDK/ingestion0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDKTests/ingestion0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDKTests/device0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDKTests/analytics0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDKTests/utils0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDK/utils0% | 0% | 0% | 0% | 100%
AmazonChimeSDKDemo/AmazonChimeSDKDemo/data0% | 0% | 0% | 0% | 100%
AmazonChimeSDKDemo/AmazonChimeSDKDemoBroadcast0% | 0% | 0% | 0% | 100%
AmazonChimeSDKDemo/AmazonChimeSDKDemoObjC0% | 0% | 0% | 0% | 100%
AmazonChimeSDK/AmazonChimeSDK/audiovideo0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func audioSessionDidStopWithStatus()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/MeetingModel.swift
21 7 1
func videoTileDidAdd()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/MeetingModel.swift
28 7 1
func videoTileDidRemove()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/MeetingModel.swift
27 7 1
func pickerView()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/DeviceSelectionViewController.swift
25 7 3
func pickerView()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/DeviceSelectionViewController.swift
26 7 3
func pickerView()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/LiveTranscriptionOptionsViewController.swift
31 7 3
func onVideoFrameReceived()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/utils/MetalVideoProcessor.swift
44 6 1
func getVideoRotation()
in AmazonChimeSDK/AmazonChimeSDK/internal/utils/CMCampleBufferExtensions.swift
22 6 0
func pickerView()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/JoiningViewController.swift
15 5 3
func onVideoFrameReceived()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/utils/CoreImageVideoProcessor.swift
25 5 1
func onTileButtonClicked()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/VideoModel.swift
19 5 2
func requestRecordPermission()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/MeetingModule.swift
22 5 1
func requestVideoPermission()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/MeetingModule.swift
21 5 1
func pickerView()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/DeviceSelectionViewController.swift
17 5 2
func didReceive()
in AmazonChimeSDK/AmazonChimeSDK/internal/video/DefaultVideoClientController.swift
31 5 6
func joinMeeting()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/JoiningViewController.swift
25 4 2
func updateCell()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/VideoTileCell.swift
33 4 4
func getVideoTileDisplayName()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/MeetingModel.swift
15 4 1
func updateCell()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/RosterTableCell.swift
16 4 2
func prepareMeeting()
in AmazonChimeSDKDemo/AmazonChimeSDKDemo/MeetingModule.swift
52 4 6