File Complexity Overall
  • There are 18 files with units, with 791 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)
    • 1 slightly complex files (McCabe index sum 26-50; 164 lines of code)
    • 17 simple files (McCabe index sum 1-25; 627 lines of code)
  • 2 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 20% | 79%
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
java0% | 0% | 0% | 20% | 79%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 20% | 79%
Most Complex Files (Top 18)

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
UnicastDisposableCachingSubject.java
in src/main/java/com/netflix/prana/http/api
164 21 27 16 4
DefaultContext.java
in src/main/java/com/netflix/prana/internal
87 10 17 20 4
ProxyHandler.java
in src/main/java/com/netflix/prana/http/api
126 3 12 10 5
HostsHandler.java
in src/main/java/com/netflix/prana/http/api
38 2 7 18 6
HealthCheckHandler.java
in src/main/java/com/netflix/prana/http/api
77 2 4 5 3
Main.java
in src/main/java/com/netflix/prana
53 1 4 8 4
PranaConfig.java
in src/main/java/com/netflix/prana/config
19 3 3 16 1
DynamicPropertiesHandler.java
in src/main/java/com/netflix/prana/http/api
26 2 3 12 2
MainModule.java
in src/main/java/com/netflix/prana
34 3 3 9 1
StatusHandler.java
in src/main/java/com/netflix/prana/http/api
23 2 2 9 1
Utils.java
in src/main/java/com/netflix/prana/http/api
12 1 2 17 2
PingHandler.java
in src/main/java/com/netflix/prana/http/api
19 2 2 11 1
AbstractRequestHandler.java
in src/main/java/com/netflix/prana/http/api
21 2 2 10 1
SimpleRouter.java
in src/main/java/com/netflix/prana/http/api
26 2 2 8 1
EurekaHostService.java
in src/main/java/com/netflix/prana/service
16 2 2 13 1
HandlersModule.java
in src/main/java/com/netflix/prana/http/api
12 1 1 8 1
NIWSCommand.java
in src/main/java/com/netflix/prana/http/api
29 1 1 3 1
ServiceModule.java
in src/main/java/com/netflix/prana/service
9 1 1 11 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...