File Complexity Overall
  • There are 41 files with units, with 2,704 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 615 lines of code)
    • 39 simple files (McCabe index sum 1-25; 2,089 lines of code)
  • 56 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 22% | 77%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
rb0% | 0% | 0% | 34% | 65%
scala0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
Coding Challenges0% | 0% | 0% | 22% | 77%
Most Complex Files (Top 41)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
web-server.rb
in Coding Challenges/Challenges Timeline/20180726 Iterated Prisoners Dilemma/game-server
333 20 32 10 6
web-server.rb
in Coding Challenges/Challenges Timeline/20180913 Travelling Optimization on Map of Energy Points/game-server
282 14 27 10 4
UserFleet.rb
in Coding Challenges/Space-Battle/game-server/library
146 16 23 16 4
Test.rb
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/Bug Tracking/Investigation For Adam/Case3
121 12 23 19 5
index.js
in Coding Challenges/Challenges Timeline/20180712 Red Circles On Images/solutions/markrichards
72 6 22 31 8
GameLibrary.rb
in Coding Challenges/Space-Battle/game-server
96 10 20 21 6
web-server.rb
in Coding Challenges/Challenges Timeline/20180907 The Travelling Salesman/game-server
275 14 20 7 3
Main.scala
in Coding Challenges/Challenges Timeline/20180913 Travelling Optimization on Map of Energy Points/users-codes/afisher/src/main/scala/com/adamnfish/tec...
80 8 18 23 4
Test.rb
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/Bug Tracking/Investigation For Adam/Case1
89 8 15 17 4
Test.rb
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/Bug Tracking/Investigation For Adam/Case2
88 8 15 17 4
embed.go
in Coding Challenges/Challenges Timeline/20181025 PNG Store/submissions/desbo
82 5 14 17 5
pngstore.go
in Coding Challenges/Challenges Timeline/20181025 PNG Store/submissions/desbo
45 2 9 20 6
Sha.scala
in Coding Challenges/Challenges Timeline/20180830 Hashes Of String Permulations/users-submissions/Alex D
81 6 9 11 3
Main.scala
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/users-codes/afisher/src/main/scala/com/adamnfish/packing
64 7 9 14 3
sequence-score.rb
in Coding Challenges/Challenges Timeline/20180719 Movie Seating
55 6 9 16 4
sophie.py
in Coding Challenges/Challenges Timeline/20180913 Travelling Optimization on Map of Energy Points/users-codes
80 7 8 10 2
Api.scala
in Coding Challenges/Challenges Timeline/20180913 Travelling Optimization on Map of Energy Points/users-codes/afisher/src/main/scala/com/adamnfish/tec...
40 2 7 18 5
index.js
in Coding Challenges/Challenges Timeline/20180712 Red Circles On Images/solutions/Francis
31 3 6 19 4
Api.scala
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/users-codes/afisher/src/main/scala/com/adamnfish/packing
32 2 6 19 4
UserKeys.rb
in Coding Challenges/Space-Battle/game-server/library
23 4 5 22 2
extract.go
in Coding Challenges/Challenges Timeline/20181025 PNG Store/submissions/desbo
33 1 5 15 5
Visualise.scala
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/users-codes/afisher/src/main/scala/com/adamnfish/packing
77 1 5 6 5
MapUtils.rb
in Coding Challenges/Space-Battle/game-server/library
20 3 4 20 2
20180830.py
in Coding Challenges/Challenges Timeline/20180830 Hashes Of String Permulations/users-submissions/Sophie
19 3 4 21 2
slingshot.js
in Coding Challenges/Challenges Timeline/20181108 Gravitational Slingshot/submissions/sam
62 3 4 6 2
MapUtils.rb
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/Bug Tracking/Investigation For Adam/Case1
20 3 4 20 2
MapUtils.rb
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/Bug Tracking/Investigation For Adam/Case2
20 3 4 20 2
MapUtils.rb
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/Bug Tracking/Investigation For Adam/Case3
20 3 4 20 2
index.js
in Coding Challenges/Challenges Timeline/20180823 RPN Transforms/users submissions/rich
43 2 4 9 2
Throttling.rb
in Coding Challenges/Space-Battle/game-server/library
11 1 3 27 3
Leaderboard.rb
in Coding Challenges/Space-Battle/game-server/library
26 3 3 12 1
challenge.ts
in Coding Challenges/Challenges Timeline/20180830 Hashes Of String Permulations/users-submissions/jon-h
42 1 3 7 3
PointFilesReader.rb
in Coding Challenges/Leaderboard
28 2 3 11 2
leaderboard.rb
in Coding Challenges/Leaderboard
26 3 3 12 1
Navigation.rb
in Coding Challenges/Space-Battle/game-server/library
12 2 2 17 1
ScoringUtils.rb
in Coding Challenges/Space-Battle/game-server/library
10 2 2 20 1
SophieNum.py
in Coding Challenges/Challenges Timeline/20180816 Sophie Transform
14 2 2 14 1
Serialisation.scala
in Coding Challenges/Challenges Timeline/20180927 Space Battle X001 Non Overlapping Disks/users-codes/afisher/src/main/scala/com/adamnfish/packing
21 2 2 10 1
Anakin.Skywalker.rb
in Coding Challenges/Challenges Timeline/20180726 Iterated Prisoners Dilemma/Anakin.Skywalker
65 2 2 3 1
BombsUtils.rb
in Coding Challenges/Space-Battle/game-server/library
5 1 1 20 1
Serialisation.scala
in Coding Challenges/Challenges Timeline/20180913 Travelling Optimization on Map of Energy Points/users-codes/afisher/src/main/scala/com/adamnfish/tec...
15 1 1 7 1
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...