apple / ccs-pykerberos
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 45 units with 1,160 lines of code in units (53.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (469 lines of code)
    • 8 simple units (455 lines of code)
    • 32 very simple units (236 lines of code)
0% | 0% | 40% | 39% | 20%
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% | 41% | 40% | 17%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 42% | 40% | 16%
pysrc0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
support0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
100 18 3
119 16 2
78 13 4
87 11 4
int create_krb5_ccache()
in src/kerberosgss.c
85 11 4
61 10 2
40 10 1
int change_user_krb5pwd()
in src/kerberospw.c
82 10 3
61 9 6
54 9 1
68 8 1
29 7 1
int create_krb5_ccache()
in src/kerberosgss.c
60 6 4
16 5 1
47 5 2
static void set_gss_error()
in src/kerberosgss.c
39 5 2
29 3 4
38 3 5
def checkPassword()
in pysrc/kerberos.py
1 1 4
def changePassword()
in pysrc/kerberos.py
1 1 3