aws / amazon-freertos-ble-android-sdk
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 106 units with 1,329 lines of code in units (59.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (274 lines of code)
    • 5 simple units (173 lines of code)
    • 97 very simple units (882 lines of code)
0% | 0% | 20% | 13% | 66%
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
java0% | 0% | 20% | 13% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
amazonfreertossdk0% | 0% | 25% | 15% | 58%
amazonfreertossdk/mqttproxy0% | 0% | 0% | 0% | 100%
amazonfreertossdk/networkconfig0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void onCharacteristicRead()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
105 22 3
private void processBleCommandQueue()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
75 20 0
private void handleMqttTxMessage()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
58 14 1
private void handleNwTxMessage()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
36 14 1
private void connectToIoT()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
50 10 1
private void processIncomingQueue()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
42 9 0
private void enableService()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
22 8 2
private void registerBondStateCallback()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
28 6 0
public void onConnectionStateChange()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
31 6 3
public boolean decode()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/networkconfig/ListNetworkResp.java
29 5 1
public boolean decode()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/mqttproxy/Subscribe.java
27 5 1
private void subscribeToIoT()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
32 5 1
private void publishToIoT()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
26 5 1
public boolean decode()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/mqttproxy/Connect.java
21 4 1
public boolean decode()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/mqttproxy/Publish.java
25 4 1
public boolean decode()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/mqttproxy/Unsubscribe.java
22 4 1
private void unsubscribeToIoT()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
15 4 1
private void sendDataToDevice()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
19 4 4
private static void describeGattServices()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
11 4 1
private static String bytesToHexString()
in amazonfreertossdk/src/main/java/software/amazon/freertos/amazonfreertossdk/AmazonFreeRTOSDevice.java
11 4 1