facebook / react-native-deprecated-modules
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 104 units with 1,357 lines of code in units (37.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (77 lines of code)
    • 4 medium complex units (311 lines of code)
    • 7 simple units (197 lines of code)
    • 92 very simple units (772 lines of code)
0% | 5% | 22% | 14% | 56%
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
js0% | 5% | 22% | 14% | 56%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
deprecated-react-native-listview0% | 9% | 18% | 9% | 62%
deprecated-react-native-ios-mapview0% | 0% | 76% | 0% | 23%
deprecated-react-native-prop-types0% | 0% | 0% | 45% | 54%
deprecated-react-native-swipeablelistview0% | 0% | 0% | 0% | 100%
deprecated-react-native-ios-adsupport0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
77 29 1
83 25 1
76 22 0
127 22 0
25 11 1
30 10 1
53 8 6
52 8 6
18 7 1
17 6 1
17 6 0
10 6 1
14 5 0
16 5 1
14 5 0
16 5 1
10 5 0
17 4 1
12 4 1
12 4 1
21 4 1
10 4 2
10 4 1
9 4 0
26 4 3
31 4 0
9 4 0
12 3 1
5 3 0
7 3 0
5 3 1
5 3 0
13 3 2
19 3 4
6 3 1
8 3 0
8 2 1
10 2 0
5 2 1
3 2 0
20 2 0
6 2 0
5 2 1
4 2 1
4 2 1
5 2 1
4 2 1
4 2 1
5 2 1
4 2 1