File Complexity Overall
  • There are 73 files with units, with 10,812 lines of code.
    • 1 very complex files (McCabe index sum 251+; 1,598 lines of code)
    • 6 complex files (McCabe index sum 126-250; 3,612 lines of code)
    • 7 medium complex files (McCabe index sum 51-125; 2,164 lines of code)
    • 6 slightly complex files (McCabe index sum 26-50; 917 lines of code)
    • 53 simple files (McCabe index sum 1-25; 2,521 lines of code)
  • 59 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system14% | 33% | 20% | 8% | 23%
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
js19% | 44% | 26% | 4% | 3%
java0% | 0% | 0% | 19% | 80%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
pytheas-core15% | 35% | 21% | 8% | 18%
pytheas-api0% | 0% | 0% | 0% | 100%
pytheas-helloworld0% | 0% | 0% | 0% | 100%
pytheas-karyon0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

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
d3.layout.js
in pytheas-core/src/main/resources/js/d3
1598 155 422 26 14
d3.geo.js
in pytheas-core/src/main/resources/js/d3
785 102 206 26 8
jsondiffpatch.js
in pytheas-core/src/main/resources/js
477 24 162 34 36
science.stats.js
in pytheas-core/src/main/resources/js/d3/lib/science
624 49 158 25 20
d3.geom.js
in pytheas-core/src/main/resources/js/d3
672 38 156 23 20
utils.js
in pytheas-core/src/main/resources/js
303 32 155 51 12
d3.chart.js
in pytheas-core/src/main/resources/js/d3
751 50 126 17 14
d3.time.js
in pytheas-core/src/main/resources/js/d3
523 60 97 19 7
diff.js
in pytheas-core/src/main/resources/js
248 19 78 31 20
form2js.js
in pytheas-core/src/main/resources/js/form2js
229 8 76 33 27
exporting.src.js
in pytheas-core/src/main/resources/js/Highcharts/modules
542 31 62 11 8
DT_bootstrap.js
in pytheas-core/src/main/resources/js/bootstrap/js
215 17 61 28 12
js2form.js
in pytheas-core/src/main/resources/js/form2js
235 6 57 24 20
json2.js
in pytheas-core/src/main/resources/js
172 7 51 30 29
mootools-adapter.src.js
in pytheas-core/src/main/resources/js/Highcharts/adapters
156 17 43 28 5
jsondiffpatch.html.js
in pytheas-core/src/main/resources/js
134 5 43 32 25
AbstractExplorerModule.java
in pytheas-core/src/main/java/com/netflix/explorers
208 22 37 18 12
FreemarkerTemplateProvider.java
in pytheas-core/src/main/java/com/netflix/explorers/providers
215 8 32 15 19
d3.csv.js
in pytheas-core/src/main/resources/js/d3
80 7 26 33 11
ExplorersManagerImpl.java
in pytheas-core/src/main/java/com/netflix/explorers
124 18 26 21 3
RequestContext.java
in pytheas-core/src/main/java/com/netflix/explorers/context
76 14 20 26 7
RemoteExplorerModule.java
in pytheas-core/src/main/java/com/netflix/explorers
84 19 19 23 1
AppConfigGlobalModelContext.java
in pytheas-core/src/main/java/com/netflix/explorers
140 15 19 14 5
EmptyExplorer.java
in pytheas-api/src/main/java/com/netflix/explorers/model
80 19 19 24 1
DynaTreeNode.java
in pytheas-api/src/main/java/com/netflix/explorers/model
82 14 19 23 3
PropertiesGlobalModelContext.java
in pytheas-core/src/main/java/com/netflix/explorers
128 15 18 14 4
RestKey.java
in pytheas-core/src/main/java/com/netflix/explorers/rest
48 6 17 35 10
MenuItem.java
in pytheas-api/src/main/java/com/netflix/explorers/model
64 12 16 25 2
highcharts.js
in pytheas-core/src/main/resources/js/Highcharts
166 2 14 8 13
EventChannel.java
in pytheas-core/src/main/java/com/netflix/explorers/sse
58 8 14 24 5
OutboundEvent.java
in pytheas-core/src/main/java/com/netflix/explorers/sse
58 10 13 22 3
ExplorerResource.java
in pytheas-core/src/main/java/com/netflix/explorers/jersey
93 5 12 13 3
ExplorerInfoEntity.java
in pytheas-api/src/main/java/com/netflix/explorers/model
49 11 11 22 1
HelloWorldResource.java
in pytheas-helloworld/src/main/java/com/netflix/explorers/helloworld/resources
58 2 9 16 8
ViewableResource.java
in pytheas-core/src/main/java/com/netflix/explorers/jersey
62 6 9 15 3
WebApplicationExceptionMapper.java
in pytheas-core/src/main/java/com/netflix/explorers/providers
64 3 9 14 7
EntityNotFoundException.java
in pytheas-api/src/main/java/com/netflix/explorers/model
40 9 9 23 1
CrossLink.java
in pytheas-api/src/main/java/com/netflix/explorers/model
35 9 9 26 1
ExplorerKaryonServerBootstrap.java
in pytheas-karyon/src/main/java/com/netflix/explorers/karyon
70 3 9 13 6
header.js
in pytheas-core/src/main/resources/layout/bootstrap
53 4 8 15 4
OutboundEventWriter.java
in pytheas-core/src/main/java/com/netflix/explorers/sse
49 3 8 16 6
header.js
in pytheas-core/src/main/resources/layout/main
24 3 6 25 4
StaticResourceServlet.java
in pytheas-core/src/main/java/com/netflix/explorers/web
56 2 6 11 3
ExplorerContextInjectable.java
in pytheas-core/src/main/java/com/netflix/explorers/providers
49 4 6 12 2
EmbeddedContentResource.java
in pytheas-core/src/main/java/com/netflix/explorers/resources
84 1 6 7 6
EventChannelWriter.java
in pytheas-core/src/main/java/com/netflix/explorers/sse
47 3 5 11 3
IndexRedirectFilter.java
in pytheas-core/src/main/java/com/netflix/explorers/web
32 4 5 16 2
ExplorerManagerContextInjectable.java
in pytheas-core/src/main/java/com/netflix/explorers/providers
36 4 5 14 2
ToJsonMethod.java
in pytheas-core/src/main/java/com/netflix/explorers/providers
33 2 5 15 4
JsonMessageBodyWriter.java
in pytheas-core/src/main/java/com/netflix/explorers/providers
38 4 5 13 2
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...