fbsamples / f8app
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 593 units with 7,326 lines of code in units (53.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (172 lines of code)
    • 23 simple units (646 lines of code)
    • 566 very simple units (6,508 lines of code)
0% | 0% | 2% | 8% | 88%
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% | 0% | 2% | 8% | 88%
java0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
js/tabs0% | 0% | 2% | 2% | 95%
js/common0% | 0% | 3% | 18% | 77%
js/store0% | 0% | 45% | 0% | 54%
js/reducers0% | 0% | 0% | 33% | 66%
js/rating0% | 0% | 0% | 19% | 80%
js0% | 0% | 0% | 24% | 75%
js/video0% | 0% | 0% | 12% | 87%
js/actions0% | 0% | 0% | 0% | 100%
server/parse-server0% | 0% | 0% | 0% | 100%
js/filter0% | 0% | 0% | 0% | 100%
js/login0% | 0% | 0% | 0% | 100%
android/app0% | 0% | 0% | 0% | 100%
server/graphql0% | 0% | 0% | 0% | 100%
ios/F820170% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
filterSessions()
in js/tabs/schedule/F8ScheduleGantt.js
44 18 1
groupSessionsIntoRows()
in js/tabs/schedule/F8ScheduleGantt.js
24 14 1
function track()
in js/store/track.js
37 13 1
getTheme()
in js/common/F8Button.js
67 11 0
render()
in js/common/F8Header.js
68 10 0
renderEmptySessionsList()
in js/tabs/schedule/MyScheduleView.js
54 9 2
render: function()
in js/F8Navigator.js
28 9 0
function notifications()
in js/reducers/notifications.js
23 9 2
componentWillReceiveProps()
in js/common/F8ScrollingHeader.js
16 8 1
navigate()
in js/common/F8WebView.js
9 8 1
handleHorizontalScroll()
in js/common/ViewPager.js
26 8 1
function fromParseSessions()
in js/reducers/sessions.js
24 8 1
function config()
in js/reducers/config.js
17 8 2
handleActionSelected()
in js/common/F8Header.js
18 7 1
async logIn()
in js/common/LoginButton.js
16 7 0
export function sessionsHappeningNow()
in js/common/convertTimes.js
19 7 2
render()
in js/common/F8WebView.js
55 7 0
function user()
in js/reducers/user.js
34 7 2
renderColumns()
in js/tabs/schedule/F8GanttGrid.js
35 6 2
renderActions()
in js/video/VideoControls.js
23 6 0