awslabs / pidgin-chime
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 498 units with 8,010 lines of code in units (44.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 15 medium complex units (761 lines of code)
    • 69 simple units (1,873 lines of code)
    • 414 very simple units (5,376 lines of code)
0% | 0% | 9% | 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
c0% | 0% | 9% | 23% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
chime0% | 0% | 10% | 26% | 62%
prpl0% | 0% | 7% | 19% | 72%
fs-app-transmitter0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
gst-chime0% | 0% | 0% | 0% | 100%
evolution-plugin0% | 0% | 0% | 0% | 100%
chimeseen0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static gboolean audio_receive_rt_msg()
in chime/chime-call-audio.c
72 22 3
static gboolean parse_regnode()
in chime/chime-connection.c
65 22 2
static gboolean audio_receive_data_msg()
in chime/chime-call-audio.c
59 21 3
73 17 5
49 16 4
static void do_send_rt_packet()
in chime/chime-call-audio.c
75 15 2
void init_msgs()
in prpl/messages.c
49 14 6
56 14 5
static void on_websocket_message()
in chime/chime-juggernaut.c
38 13 4
void chime_call_transport_disconnect()
in chime/chime-call-transport.c
44 12 2
static void soup_msg_cb()
in chime/chime-connection.c
45 12 3
28 11 2
25 11 4
static void on_screenws_message()
in chime/chime-call-screen.c
49 11 4
34 11 3
27 10 3
43 10 3
20 10 3
19 10 3
static void schedule_meeting_cb()
in chime/chime-meeting.c
35 10 4