hhvm / hack-router
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 43 files with 1,146 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (252 lines of code)
    • 41 very small files (894 lines of code)
0% | 0% | 0% | 21% | 78%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
php0% | 0% | 0% | 21% | 78%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
router/PrefixMatching0% | 0% | 0% | 80% | 19%
PatternParser0% | 0% | 0% | 48% | 51%
request-parameters0% | 0% | 0% | 0% | 100%
router0% | 0% | 0% | 0% | 100%
uri-patterns0% | 0% | 0% | 0% | 100%
http-exceptions0% | 0% | 0% | 0% | 100%
Longest Files (Top 43)
File# lines# units
PrefixMap.php
in src/router/PrefixMatching
143 9
Parser.php
in src/PatternParser
109 3
BaseRouter.php
in src/router
83 4
RequestParametersBase.php
in src/request-parameters
76 6
UriBuilderBase.php
in src/uri-patterns
75 3
74 4
RequestParameterGetters.php
in src/request-parameters
56 7
UriPattern.php
in src/uri-patterns
52 10
38 3
PrefixMapOrResponder.php
in src/router/PrefixMatching
35 6
UriBuilderSetters.php
in src/uri-patterns
33 3
StringRequestParameter.php
in src/request-parameters
32 3
EnumRequestParameter.php
in src/request-parameters
31 5
ParameterNode.php
in src/PatternParser
26 5
HttpMethod.php
in src/router
23 -
PatternNode.php
in src/PatternParser
21 4
tokenize.php
in src/PatternParser
20 1
UriPatternLiteral.php
in src/uri-patterns
17 3
LiteralNode.php
in src/PatternParser
16 4
MethodNotAllowedException.php
in src/http-exceptions
15 2
OptionalNode.php
in src/PatternParser
15 4
UriParameter.php
in src/request-parameters
13 1
IntRequestParameter.php
in src/request-parameters
13 2
12 2
RequestParameter.php
in src/request-parameters
10 2
TokenType.php
in src/PatternParser
10 -
8 1
8 1
UriBuilderGetPath.php
in src/uri-patterns
8 1
TypedUriParameter.php
in src/request-parameters
8 1
IResolver.php
in src/router
8 -
UriBuilderWithPath.php
in src/uri-patterns
6 -
UriBuilder.php
in src/uri-patterns
6 -
TypedRequestParameter.php
in src/request-parameters
6 -
Node.php
in src/PatternParser
6 -
HasUriPattern.php
in src/uri-patterns
5 -
HasFastRouteFragment.php
in src/uri-patterns
5 -
RequestParameters.php
in src/request-parameters
5 -
UriPatternPart.php
in src/uri-patterns
4 -
HttpException.php
in src/http-exceptions
4 -
NotFoundException.php
in src/http-exceptions
4 -
InternalServerErrorException.php
in src/http-exceptions
4 -
Token.php
in src/PatternParser
3 -
Files With Most Units (Top 28)
File# lines# units
UriPattern.php
in src/uri-patterns
52 10
PrefixMap.php
in src/router/PrefixMatching
143 9
RequestParameterGetters.php
in src/request-parameters
56 7
RequestParametersBase.php
in src/request-parameters
76 6
PrefixMapOrResponder.php
in src/router/PrefixMatching
35 6
EnumRequestParameter.php
in src/request-parameters
31 5
ParameterNode.php
in src/PatternParser
26 5
PatternNode.php
in src/PatternParser
21 4
LiteralNode.php
in src/PatternParser
16 4
OptionalNode.php
in src/PatternParser
15 4
74 4
BaseRouter.php
in src/router
83 4
UriBuilderBase.php
in src/uri-patterns
75 3
UriBuilderSetters.php
in src/uri-patterns
33 3
UriPatternLiteral.php
in src/uri-patterns
17 3
StringRequestParameter.php
in src/request-parameters
32 3
Parser.php
in src/PatternParser
109 3
38 3
IntRequestParameter.php
in src/request-parameters
13 2
RequestParameter.php
in src/request-parameters
10 2
MethodNotAllowedException.php
in src/http-exceptions
15 2
12 2
8 1
8 1
UriBuilderGetPath.php
in src/uri-patterns
8 1
UriParameter.php
in src/request-parameters
13 1
TypedUriParameter.php
in src/request-parameters
8 1
tokenize.php
in src/PatternParser
20 1
Files With Long Lines (Top 0)

There are 0 files with lines longer than 120 characters. In total, there are 0 long lines.

File# lines# units# long lines
Correlations

File Size vs. Commits (all time): 44 points

src/request-parameters/RequestParametersBase.php x: 13 commits (all time) y: 76 lines of code src/router/PrefixMatching/PrefixMap.php x: 15 commits (all time) y: 143 lines of code src/router/PrefixMatchingResolver.php x: 15 commits (all time) y: 74 lines of code src/PatternParser/ParameterNode.php x: 9 commits (all time) y: 26 lines of code src/router/PrefixMatching/PrefixMapOrResponder.php x: 6 commits (all time) y: 35 lines of code src/uri-patterns/UriPattern.php x: 12 commits (all time) y: 52 lines of code src/router/UnknownRouterException.php x: 9 commits (all time) y: 12 lines of code src/uri-patterns/UriBuilderBase.php x: 9 commits (all time) y: 75 lines of code src/router/BaseRouter.php x: 29 commits (all time) y: 83 lines of code src/http-exceptions/MethodNotAllowedException.php x: 7 commits (all time) y: 15 lines of code src/router/SimpleRegexpResolver.php x: 10 commits (all time) y: 38 lines of code src/uri-patterns/UriBuilderSetters.php x: 6 commits (all time) y: 33 lines of code src/PatternParser/tokenize.php x: 5 commits (all time) y: 20 lines of code src/request-parameters/EnumRequestParameter.php x: 7 commits (all time) y: 31 lines of code src/router/HttpMethod.php x: 7 commits (all time) y: 23 lines of code src/PatternParser/LiteralNode.php x: 9 commits (all time) y: 16 lines of code src/PatternParser/Node.php x: 6 commits (all time) y: 6 lines of code src/PatternParser/Parser.php x: 5 commits (all time) y: 109 lines of code src/PatternParser/PatternNode.php x: 7 commits (all time) y: 21 lines of code src/PatternParser/Token.php x: 3 commits (all time) y: 3 lines of code src/PatternParser/TokenType.php x: 3 commits (all time) y: 10 lines of code src/request-parameters/IntRequestParameter.php x: 6 commits (all time) y: 13 lines of code src/request-parameters/RequestParameter.php x: 6 commits (all time) y: 10 lines of code src/request-parameters/StringRequestParameter.php x: 7 commits (all time) y: 32 lines of code src/request-parameters/TypedRequestParameter.php x: 4 commits (all time) y: 6 lines of code src/request-parameters/TypedUriParameter.php x: 5 commits (all time) y: 8 lines of code src/uri-patterns/GetUriBuilderFromUriPattern.php x: 4 commits (all time) y: 8 lines of code src/uri-patterns/HasFastRouteFragment.php x: 5 commits (all time) y: 5 lines of code src/uri-patterns/UriBuilderWithPath.php x: 5 commits (all time) y: 6 lines of code src/uri-patterns/UriPatternLiteral.php x: 5 commits (all time) y: 17 lines of code src/uri-patterns/UriPatternPart.php x: 5 commits (all time) y: 4 lines of code src/http-exceptions/HttpException.php x: 4 commits (all time) y: 4 lines of code src/http-exceptions/NotFoundException.php x: 6 commits (all time) y: 4 lines of code src/request-parameters/RequestParameterGetters.php x: 6 commits (all time) y: 56 lines of code src/request-parameters/RequestParameters.php x: 3 commits (all time) y: 5 lines of code src/router/IResolver.php x: 2 commits (all time) y: 8 lines of code src/http-exceptions/HTTPException.php x: 2 commits (all time) y: 4 lines of code
143.0
lines of code
  min: 3.0
  average: 26.14
  25th percentile: 6.0
  median: 13.0
  75th percentile: 32.75
  max: 143.0
0 29.0
commits (all time)
min: 2.0 | average: 6.89 | 25th percentile: 5.0 | median: 6.0 | 75th percentile: 7.0 | max: 29.0

File Size vs. Contributors (all time): 44 points

src/request-parameters/RequestParametersBase.php x: 3 contributors (all time) y: 76 lines of code src/router/PrefixMatching/PrefixMap.php x: 3 contributors (all time) y: 143 lines of code src/router/PrefixMatchingResolver.php x: 4 contributors (all time) y: 74 lines of code src/PatternParser/ParameterNode.php x: 2 contributors (all time) y: 26 lines of code src/router/PrefixMatching/PrefixMapOrResponder.php x: 2 contributors (all time) y: 35 lines of code src/uri-patterns/UriPattern.php x: 3 contributors (all time) y: 52 lines of code src/router/UnknownRouterException.php x: 4 contributors (all time) y: 12 lines of code src/uri-patterns/UriBuilderBase.php x: 2 contributors (all time) y: 75 lines of code src/router/BaseRouter.php x: 6 contributors (all time) y: 83 lines of code src/http-exceptions/MethodNotAllowedException.php x: 3 contributors (all time) y: 15 lines of code src/router/SimpleRegexpResolver.php x: 3 contributors (all time) y: 38 lines of code src/uri-patterns/UriBuilderSetters.php x: 2 contributors (all time) y: 33 lines of code src/PatternParser/tokenize.php x: 2 contributors (all time) y: 20 lines of code src/request-parameters/EnumRequestParameter.php x: 2 contributors (all time) y: 31 lines of code src/router/HttpMethod.php x: 4 contributors (all time) y: 23 lines of code src/PatternParser/LiteralNode.php x: 2 contributors (all time) y: 16 lines of code src/PatternParser/Node.php x: 2 contributors (all time) y: 6 lines of code src/PatternParser/OptionalNode.php x: 2 contributors (all time) y: 15 lines of code src/PatternParser/Parser.php x: 2 contributors (all time) y: 109 lines of code src/PatternParser/PatternNode.php x: 2 contributors (all time) y: 21 lines of code src/PatternParser/Token.php x: 2 contributors (all time) y: 3 lines of code src/PatternParser/TokenType.php x: 2 contributors (all time) y: 10 lines of code src/request-parameters/IntRequestParameter.php x: 2 contributors (all time) y: 13 lines of code src/request-parameters/StringRequestParameter.php x: 2 contributors (all time) y: 32 lines of code src/request-parameters/TypedUriParameter.php x: 2 contributors (all time) y: 8 lines of code src/uri-patterns/HasFastRouteFragment.php x: 2 contributors (all time) y: 5 lines of code src/uri-patterns/UriPatternLiteral.php x: 2 contributors (all time) y: 17 lines of code src/uri-patterns/UriPatternPart.php x: 2 contributors (all time) y: 4 lines of code src/request-parameters/RequestParameterGetters.php x: 2 contributors (all time) y: 56 lines of code src/router/IResolver.php x: 1 contributors (all time) y: 8 lines of code src/http-exceptions/HTTPException.php x: 1 contributors (all time) y: 4 lines of code
143.0
lines of code
  min: 3.0
  average: 26.14
  25th percentile: 6.0
  median: 13.0
  75th percentile: 32.75
  max: 143.0
0 6.0
contributors (all time)
min: 1.0 | average: 2.3 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 6.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".