aws-quickstart / quickstart-aem-opencloud
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 5,266 units with 50,112 lines of code in units (70.1% of code).
    • 1 very complex units (128 lines of code)
    • 46 complex units (4,101 lines of code)
    • 213 medium complex units (8,764 lines of code)
    • 458 simple units (9,799 lines of code)
    • 4,548 very simple units (27,320 lines of code)
<1% | 8% | 17% | 19% | 54%
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
py<1% | 8% | 17% | 19% | 54%
h0% | 0% | 27% | 29% | 43%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
functions/source/generateAemSslCertificate<1% | 5% | 12% | 17% | 64%
functions/source/syncEditPackerConfig0% | 10% | 22% | 21% | 45%
functions/source/syncEditStackFacts0% | 10% | 22% | 21% | 45%
functions/source/syncEditStackConfig0% | 10% | 22% | 21% | 45%
functions/source/ACMCert0% | 79% | 0% | 0% | 20%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lex()
in functions/source/generateAemSslCertificate/pycparser/ply/lex.py
128 54 6
def lr_parse_table()
in functions/source/generateAemSslCertificate/pycparser/ply/yacc.py
139 41 1
def construct_yaml_int()
in functions/source/syncEditStackFacts/ruamel/yaml/constructor.py
85 38 2
def construct_yaml_int()
in functions/source/syncEditStackConfig/ruamel/yaml/constructor.py
85 38 2
def construct_yaml_int()
in functions/source/syncEditPackerConfig/ruamel/yaml/constructor.py
85 38 2
def parsegen()
in functions/source/generateAemSslCertificate/pycparser/ply/cpp.py
107 38 3
def _generate_cpy_function_decl()
in functions/source/generateAemSslCertificate/cffi/recompiler.py
139 37 3
def fetch_more_tokens()
in functions/source/syncEditStackFacts/ruamel/yaml/scanner.py
53 36 1
def fetch_more_tokens()
in functions/source/syncEditStackConfig/ruamel/yaml/scanner.py
53 36 1
def fetch_more_tokens()
in functions/source/syncEditPackerConfig/ruamel/yaml/scanner.py
53 36 1
def new_primitive_type()
in functions/source/generateAemSslCertificate/cffi/backend_ctypes.py
137 36 2
def represent_scalar_float()
in functions/source/syncEditStackFacts/ruamel/yaml/representer.py
70 35 2
def represent_scalar_float()
in functions/source/syncEditStackConfig/ruamel/yaml/representer.py
70 35 2
def represent_scalar_float()
in functions/source/syncEditPackerConfig/ruamel/yaml/representer.py
70 35 2
def _parse_constant()
in functions/source/generateAemSslCertificate/cffi/cparser.py
64 35 3
def parse_node()
in functions/source/syncEditStackFacts/ruamel/yaml/parser.py
137 34 3
def parse_node()
in functions/source/syncEditStackConfig/ruamel/yaml/parser.py
137 34 3
def parse_node()
in functions/source/syncEditPackerConfig/ruamel/yaml/parser.py
137 34 3
def analyze_scalar()
in functions/source/syncEditStackFacts/ruamel/yaml/emitter.py
130 31 2
def analyze_scalar()
in functions/source/syncEditStackConfig/ruamel/yaml/emitter.py
130 31 2