awslabs / aws-elasticache-cluster-client-memcached-for-php
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 150 units with 2,919 lines of code in units (52.3% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (192 lines of code)
    • 9 medium complex units (719 lines of code)
    • 16 simple units (671 lines of code)
    • 124 very simple units (1,337 lines of code)
0% | 6% | 24% | 22% | 45%
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% | 6% | 25% | 23% | 44%
php0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
fastlz0% | 58% | 34% | 0% | 7%
ROOT0% | 0% | 23% | 26% | 50%
server-example0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
192 44 3
int php_memc_set_option()
in php_memcached.c
121 25 3
80 24 6
113 20 4
static PHP_METHOD()
in php_memcached.c
90 20 2
81 18 3
62 17 3
zend_bool s_configure_from_ini_values()
in php_memcached_session.c
54 16 2
71 12 3
static PHP_METHOD()
in php_memcached.c
47 12 2
uint64_t s_zval_to_uint64()
in php_memcached.c
27 10 1
38 10 6
56 10 4
void s_handle_memcached_event()
in php_memcached_server.c
55 9 3
44 8 1
51 8 6
44 8 2
zend_bool s_lock_session()
in php_memcached_session.c
34 7 2
static PHP_INI_MH()
in php_memcached.c
25 7 1
49 7 3