fbsamples / fbrell
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 91 units with 1,319 lines of code in units (73.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (94 lines of code)
    • 9 simple units (309 lines of code)
    • 80 very simple units (916 lines of code)
0% | 0% | 7% | 23% | 69%
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
go0% | 0% | 8% | 24% | 67%
js0% | 0% | 0% | 19% | 80%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
rellenv0% | 0% | 33% | 13% | 52%
og0% | 0% | 9% | 35% | 55%
oauth0% | 0% | 0% | 76% | 24%
og/viewog0% | 0% | 0% | 26% | 73%
public/js0% | 0% | 0% | 19% | 80%
rellenv/empcheck0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
view0% | 0% | 0% | 0% | 100%
web0% | 0% | 0% | 0% | 100%
adminweb0% | 0% | 0% | 0% | 100%
rellenv/appns0% | 0% | 0% | 0% | 100%
rellenv/viewcontext0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in rellenv/context.go
71 20 1
23 12 1
func()
in og/og.go
47 10 1
func()
in rellenv/context.go
28 9 1
func()
in og/og.go
37 9 1
func()
in og/viewog/og.go
28 8 1
init: function()
in public/js/rell.js
41 7 0
func()
in oauth/oauth.go
37 6 1
func()
in oauth/oauth.go
39 6 1
func()
in rellenv/empcheck/empcheck.go
28 6 1
func()
in og/viewog/og.go
24 6 1
func()
in rellenv/appns/appns.go
22 5 1
evalScripts: function()
in public/js/rell.js
12 5 1
func main()
in main.go
119 5 0
func()
in oauth/oauth.go
18 4 1
setCurrentViewMode: function()
in public/js/rell.js
10 4 0
func()
in og/viewog/og.go
17 4 1
14 4 1
func()
in og/og.go
11 4 1
func()
in og/og.go
14 4 1