opensearch-project / opensearch-php
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 256 files with 13,059 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,689 lines of code)
    • 6 medium size files (2,011 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (983 lines of code)
    • 240 very small files (8,376 lines of code)
0% | 12% | 15% | 7% | 64%
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% | 13% | 15% | 6% | 64%
twig0% | 0% | 0% | 54% | 45%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/OpenSearch0% | 55% | 36% | 0% | 7%
src/OpenSearch/Namespaces0% | 37% | 14% | 17% | 31%
src/OpenSearch/Connections0% | 90% | 0% | 0% | 9%
util0% | 0% | 76% | 15% | 8%
src/OpenSearch/Endpoints0% | 0% | 0% | 2% | 97%
util/docstheme0% | 0% | 0% | 95% | 4%
src/OpenSearch/ConnectionPool0% | 0% | 0% | 32% | 67%
src/OpenSearch/Common0% | 0% | 0% | 0% | 100%
src/OpenSearch/Helper0% | 0% | 0% | 0% | 100%
src/OpenSearch/Serializers0% | 0% | 0% | 0% | 100%
util/docstheme/pages0% | 0% | 0% | 0% | 100%
util/docstheme/layout0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Client.php
in src/OpenSearch
608 57
IndicesNamespace.php
in src/OpenSearch/Namespaces
555 54
Connection.php
in src/OpenSearch/Connections
526 31
Endpoint.php
in util
485 28
ActionTest.php
in util
445 30
ClientBuilder.php
in src/OpenSearch
405 37
YamlTests.php
in util
254 8
CatNamespace.php
in src/OpenSearch/Namespaces
214 25
GenerateEndpoints.php
in util
208 6
AbstractEndpoint.php
in src/OpenSearch/Endpoints
185 17
twig
macros.twig
in util/docstheme
150 -
GenerateDocExamples.php
in util
150 6
ClusterNamespace.php
in src/OpenSearch/Namespaces
137 15
SnapshotNamespace.php
in src/OpenSearch/Namespaces
128 11
NamespaceEndpoint.php
in util
125 9
SniffingConnectionPool.php
in src/OpenSearch/ConnectionPool
108 7
Transport.php
in src/OpenSearch
86 6
DataFrameTransformDeprecatedNamespace.php
in src/OpenSearch/Namespaces
83 8
Stats.php
in src/OpenSearch/Endpoints/Nodes
82 6
Search.php
in src/OpenSearch/Endpoints
81 4
ClientEndpoint.php
in util
81 2
UpdateByQuery.php
in src/OpenSearch/Endpoints
77 4
DeleteByQuery.php
in src/OpenSearch/Endpoints
75 4
SearchResponseIterator.php
in src/OpenSearch/Helper/Iterators
75 9
Submit.php
in src/OpenSearch/Endpoints/AsyncSearch
73 4
SearchHitIterator.php
in src/OpenSearch/Helper/Iterators
68 8
Bulk.php
in src/OpenSearch/Endpoints
67 5
Msearch.php
in src/OpenSearch/Endpoints
64 5
CloneSnapshot.php
in src/OpenSearch/Endpoints/Snapshot
63 7
Rollover.php
in src/OpenSearch/Endpoints/Indices
62 6
MsearchTemplate.php
in src/OpenSearch/Endpoints
62 5
NodesNamespace.php
in src/OpenSearch/Namespaces
62 5
Index.php
in src/OpenSearch/Endpoints
60 4
TermVectors.php
in src/OpenSearch/Endpoints
60 4
Update.php
in src/OpenSearch/Endpoints
60 4
Explain.php
in src/OpenSearch/Endpoints
60 4
StaticConnectionPool.php
in src/OpenSearch/ConnectionPool
60 4
GetFieldMapping.php
in src/OpenSearch/Endpoints/Indices
59 4
SmartSerializer.php
in src/OpenSearch/Serializers
59 3
Info.php
in src/OpenSearch/Endpoints/Nodes
57 5
Bulk.php
in src/OpenSearch/Endpoints/Monitoring
56 5
Usage.php
in src/OpenSearch/Endpoints/Nodes
56 5
Create.php
in src/OpenSearch/Endpoints
55 4
Mount.php
in src/OpenSearch/Endpoints/SearchableSnapshots
54 6
Restore.php
in src/OpenSearch/Endpoints/Snapshot
54 6
Create.php
in src/OpenSearch/Endpoints/Snapshot
54 6
IngestNamespace.php
in src/OpenSearch/Namespaces
54 5
Stats.php
in src/OpenSearch/Endpoints/Indices
53 4
Count.php
in src/OpenSearch/Endpoints
53 4
PutAlias.php
in src/OpenSearch/Endpoints/Indices
52 5
Files With Most Units (Top 20)
File# lines# units
Client.php
in src/OpenSearch
608 57
IndicesNamespace.php
in src/OpenSearch/Namespaces
555 54
ClientBuilder.php
in src/OpenSearch
405 37
Connection.php
in src/OpenSearch/Connections
526 31
ActionTest.php
in util
445 30
Endpoint.php
in util
485 28
CatNamespace.php
in src/OpenSearch/Namespaces
214 25
AbstractEndpoint.php
in src/OpenSearch/Endpoints
185 17
ClusterNamespace.php
in src/OpenSearch/Namespaces
137 15
SnapshotNamespace.php
in src/OpenSearch/Namespaces
128 11
SearchResponseIterator.php
in src/OpenSearch/Helper/Iterators
75 9
NamespaceEndpoint.php
in util
125 9
DataFrameTransformDeprecatedNamespace.php
in src/OpenSearch/Namespaces
83 8
SearchHitIterator.php
in src/OpenSearch/Helper/Iterators
68 8
YamlTests.php
in util
254 8
CloneSnapshot.php
in src/OpenSearch/Endpoints/Snapshot
63 7
SniffingConnectionPool.php
in src/OpenSearch/ConnectionPool
108 7
Transport.php
in src/OpenSearch
86 6
Mount.php
in src/OpenSearch/Endpoints/SearchableSnapshots
54 6
Rollover.php
in src/OpenSearch/Endpoints/Indices
62 6
Files With Long Lines (Top 20)

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

File# lines# units# long lines
Connection.php
in src/OpenSearch/Connections
526 31 7
ClientBuilder.php
in src/OpenSearch
405 37 5
twig
macros.twig
in util/docstheme
150 - 3
Transport.php
in src/OpenSearch
86 6 2
Endpoint.php
in util
485 28 2
DeleteTransform.php
in src/OpenSearch/Endpoints/DataFrameTransformDeprecated
35 4 1
GetTransformStats.php
in src/OpenSearch/Endpoints/DataFrameTransformDeprecated
37 4 1
UpdateTransform.php
in src/OpenSearch/Endpoints/DataFrameTransformDeprecated
43 5 1
StartTransform.php
in src/OpenSearch/Endpoints/DataFrameTransformDeprecated
35 4 1
ClearScroll.php
in src/OpenSearch/Endpoints
47 5 1
AbstractEndpoint.php
in src/OpenSearch/Endpoints
185 17 1
Scroll.php
in src/OpenSearch/Endpoints
47 5 1
StaticConnectionPool.php
in src/OpenSearch/ConnectionPool
60 4 1
AbstractConnectionPool.php
in src/OpenSearch/ConnectionPool
36 1 1
StaticNoPingConnectionPool.php
in src/OpenSearch/ConnectionPool
46 4 1
SniffingConnectionPool.php
in src/OpenSearch/ConnectionPool
108 7 1
SimpleConnectionPool.php
in src/OpenSearch/ConnectionPool
21 3 1
ConnectionFactory.php
in src/OpenSearch/Connections
32 2 1
ConnectionInterface.php
in src/OpenSearch/Connections
19 - 1
YamlTests.php
in util
254 8 1