awslabs / pidgin-chime
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 498 units with 8,010 lines of code in units (44.7% of code).
    • 0 very long units (0 lines of code)
    • 11 long units (703 lines of code)
    • 125 medium size units (3,631 lines of code)
    • 154 small units (2,293 lines of code)
    • 208 very small units (1,383 lines of code)
0% | 8% | 45% | 28% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 8% | 45% | 28% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
chime0% | 8% | 48% | 27% | 15%
prpl0% | 10% | 37% | 30% | 21%
gst-chime0% | 0% | 100% | 0% | 0%
fs-app-transmitter0% | 0% | 63% | 19% | 16%
ROOT0% | 0% | 44% | 37% | 17%
evolution-plugin0% | 0% | 100% | 0% | 0%
chimeseen0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static void do_send_rt_packet()
in chime/chime-call-audio.c
75 15 2
73 17 5
static gboolean audio_receive_rt_msg()
in chime/chime-call-audio.c
72 22 3
66 4 2
static gboolean parse_regnode()
in chime/chime-connection.c
65 22 2
65 1 1
static gboolean audio_receive_data_msg()
in chime/chime-call-audio.c
59 21 3
static void connect_dtls()
in chime/chime-call-transport.c
59 7 2
57 5 2
56 14 5
56 5 2
50 1 1
void init_msgs()
in prpl/messages.c
49 14 6
static void on_screenws_message()
in chime/chime-call-screen.c
49 11 4
49 16 4
48 8 3
static void chime_conversation_class_init()
in chime/chime-conversation.c
48 1 1
45 3 1
static void soup_msg_cb()
in chime/chime-connection.c
45 12 3
void chime_call_transport_disconnect()
in chime/chime-call-transport.c
44 12 2