aws-amplify / aws-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 626 units with 12,199 lines of code in units (3.8% of code).
    • 2 very complex units (402 lines of code)
    • 6 complex units (671 lines of code)
    • 23 medium complex units (1,297 lines of code)
    • 58 simple units (2,467 lines of code)
    • 537 very simple units (7,362 lines of code)
3% | 5% | 10% | 20% | 60%
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
c12% | 18% | 29% | 22% | 18%
swift0% | 1% | 2% | 23% | 73%
m0% | 0% | 31% | 17% | 50%
py0% | 0% | 0% | 10% | 89%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
AWSCognitoIdentityProvider12% | 17% | 29% | 21% | 19%
AWSIoTFreeRTOSOTATests0% | 8% | 0% | 2% | 88%
AWSCore0% | 0% | 17% | 9% | 72%
AWSAuthSDK0% | 0% | 10% | 10% | 79%
AWSIoT0% | 0% | 28% | 18% | 53%
AWSIoTTests0% | 0% | 2% | 54% | 43%
AWSS3Tests0% | 0% | 0% | 20% | 79%
AWSTranscribeTests0% | 0% | 0% | 67% | 32%
AWSTranscribeStreamingTests0% | 0% | 0% | 100% | 0%
CircleciScripts0% | 0% | 0% | 10% | 89%
AWSAPIGatewayTests0% | 0% | 0% | 0% | 100%
AWSComprehendTests0% | 0% | 0% | 0% | 100%
AWSLocation0% | 0% | 0% | 0% | 100%
AWSChimeSDKMessaging0% | 0% | 0% | 0% | 100%
AWSDynamoDBTests0% | 0% | 0% | 0% | 100%
AWSKinesisVideoArchivedMediaTests0% | 0% | 0% | 0% | 100%
AWSRekognitionTests0% | 0% | 0% | 0% | 100%
AWSCognitoAuth0% | 0% | 0% | 0% | 100%
AWSChimeSDKIdentity0% | 0% | 0% | 0% | 100%
AWSKinesisVideo0% | 0% | 0% | 0% | 100%
AWSConnectParticipant0% | 0% | 0% | 0% | 100%
AWSKinesisVideoTests0% | 0% | 0% | 0% | 100%
AWSTranslateTests0% | 0% | 0% | 0% | 100%
AWSTranscribeStreaming0% | 0% | 0% | 0% | 100%
AWSLex0% | 0% | 0% | 0% | 100%
AWSS30% | 0% | 0% | 0% | 100%
AWSLocationTests0% | 0% | 0% | 0% | 100%
AWSTextractTests0% | 0% | 0% | 0% | 100%
AWSSimpleDB0% | 0% | 0% | 0% | 100%
AWSPinpoint0% | 0% | 0% | 0% | 100%
AWSKinesisVideoSignaling0% | 0% | 0% | 0% | 100%
AWSPolly0% | 0% | 0% | 0% | 100%
AWSKinesis0% | 0% | 0% | 0% | 100%
AWSDynamoDB0% | 0% | 0% | 0% | 100%
AWSAPIGateway0% | 0% | 0% | 0% | 100%
AWSAllTestsHost0% | 0% | 0% | 0% | 100%
AWSLambda0% | 0% | 0% | 0% | 100%
AWSConnectTests0% | 0% | 0% | 0% | 100%
AWSConnectParticipantTests0% | 0% | 0% | 0% | 100%
AWSKinesisVideoSignalingTests0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int aws_mp_toom_mul()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
196 60 3
int aws_mp_exptmod_fast()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
206 58 5
int aws_s_mp_exptmod()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
162 49 5
int aws_mp_invmod_slow()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
111 39 3
int aws_mp_div()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
135 36 4
int aws_mp_prime_next_prime()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
95 32 3
func decodeContainer()
in AWSIoTFreeRTOSOTATests/Support/SwiftCBOR/Decoder/UnkeyedDecodingContainer.swift
83 27 0
int aws_fast_mp_invmod()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
85 26 3
int aws_mp_karatsuba_mul()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
86 22 3
int aws_mp_exteuclid()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
39 22 5
initializationQueue.sync()
in AWSAuthSDK/Sources/AWSMobileClient/AWSMobileClient.swift
108 22 1
int aws_mp_prime_random_ex()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
54 21 6
int mp_div()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
55 21 4
int aws_mp_karatsuba_sqr()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
71 19 2
int aws_mp_n_root()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
66 18 3
int aws_mp_is_square()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
47 18 2
int aws_mp_jacobi()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
58 17 3
int aws_mp_gcd()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
60 17 3
int aws_mp_div_d()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
58 15 4
int aws_mp_prime_miller_rabin()
in AWSCognitoIdentityProvider/Internal/JKBigInteger/LibTomMath/tommath.c
51 15 3