microsoft / ftl-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 188 units with 4,267 lines of code in units (69.1% of code).
    • 1 very complex units (234 lines of code)
    • 0 complex units (0 lines of code)
    • 18 medium complex units (1,749 lines of code)
    • 22 simple units (853 lines of code)
    • 147 very simple units (1,431 lines of code)
5% | 0% | 40% | 19% | 33%
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
c5% | 0% | 40% | 19% | 33%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ftl_app19% | 0% | 39% | 17% | 23%
libftl0% | 0% | 47% | 23% | 28%
ftl_app/win320% | 0% | 71% | 0% | 28%
libftl/posix0% | 0% | 0% | 21% | 78%
libftl/win320% | 0% | 0% | 0% | 100%
libftl/gettimeofday0% | 0% | 0% | 0% | 100%
libftl/hmac0% | 0% | 0% | 0% | 100%
ftl_app/posix0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
234 76 3
261 25 1
ftl_status_t _ingest_connect()
in libftl/handshake.c
91 24 1
87 22 3
111 22 1
int nalu_parse_sps()
in ftl_app/nalu.c
153 21 2
ftl_status_t _log_response()
in libftl/handshake.c
64 21 2
87 17 1
int nalu_parse_pps()
in ftl_app/nalu.c
97 17 2
int nalu_read()
in ftl_app/nalu.c
101 17 2
int media_send_video()
in libftl/media.c
94 17 5
int getopt()
in ftl_app/win32/xgetopt.c
53 16 3
123 15 4
ftl_status_t media_init()
in libftl/media.c
85 14 1
73 13 1
86 13 1
64 13 1
int H264_Decode_Nalu()
in ftl_app/decode.c
49 11 3
70 11 1
43 10 1