dart-lang / appengine
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 2,966 units with 21,289 lines of code in units (15.6% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (569 lines of code)
    • 35 medium complex units (1,905 lines of code)
    • 100 simple units (3,093 lines of code)
    • 2,827 very simple units (15,722 lines of code)
0% | 2% | 8% | 14% | 73%
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
dart0% | 2% | 8% | 14% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src/grpc_api/dart0% | 2% | 8% | 14% | 74%
lib/src/grpc_api_impl0% | 0% | 36% | 5% | 57%
lib/src0% | 0% | 0% | 35% | 64%
lib/src/server0% | 0% | 0% | 20% | 79%
lib/src/api_impl0% | 0% | 0% | 0% | 100%
lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
factory Version()
in lib/src/grpc_api/dart/google/appengine/v1beta/version.pb.dart
165 41 41
factory Version()
in lib/src/grpc_api/dart/google/appengine/v1/version.pb.dart
161 40 40
factory RequestLog()
in lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pb.dart
137 34 34
factory Service()
in lib/src/grpc_api/dart/google/api/service.pb.dart
106 26 14
factory FileOptions()
in lib/src/grpc_api/dart/google/protobuf/descriptor.pb.dart
90 22 9
static _QueryPageImpl fromQueryResult()
in lib/src/grpc_api_impl/datastore_impl.dart
60 18 7
Value encodeValue()
in lib/src/grpc_api_impl/datastore_impl.dart
42 18 2
factory Instance()
in lib/src/grpc_api/dart/google/appengine/v1beta/instance.pb.dart
73 18 18
factory Instance()
in lib/src/grpc_api/dart/google/appengine/v1/instance.pb.dart
73 18 18
factory LogEntry()
in lib/src/grpc_api/dart/google/logging/v2/log_entry.pb.dart
69 17 17
factory HttpRequest()
in lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pb.dart
65 16 16
factory HttpRequest()
in lib/src/grpc_api/dart/google/logging/type/http_request.pb.dart
65 16 16
factory AutomaticScaling()
in lib/src/grpc_api/dart/google/appengine/v1beta/version.pb.dart
61 15 15
factory Application()
in lib/src/grpc_api/dart/google/appengine/v1beta/application.pb.dart
61 15 15
factory Application()
in lib/src/grpc_api/dart/google/appengine/v1/application.pb.dart
61 15 15
factory Value()
in lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pb.dart
57 14 14
factory Value()
in lib/src/grpc_api/dart/google/datastore/v1/entity.pb.dart
57 14 14
factory AutomaticScaling()
in lib/src/grpc_api/dart/google/appengine/v1/version.pb.dart
57 14 14
factory Type()
in lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pb.dart
57 14 14
Object? decodeValue()
in lib/src/grpc_api_impl/datastore_impl.dart
29 13 1