Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.47ms] Passed 4 tests
Analyzing server-side resources used by Automated DB Schenker Shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.33 ▲6.96 |
Dashboard /wp-admin | 3.31 ▼0.04 | 41.64 ▼22.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.32 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.28 ▼2.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.28 ▲3.22 |
Server storage [IO: ▲8.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,338 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Automated DB Schenker Shipping: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.69 ▲0.36 | 2.06 ▲0.10 | 41.75 ▼0.84 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.09 | 84.16 ▼5.03 | 39.21 ▼4.35 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.00 | 38.63 ▼1.41 | 35.51 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.07 ▼0.24 | 650.13 ▲11.78 | 62.03 ▲7.50 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.18 ▲0.00 | 97.70 ▲0.76 | 41.70 ▼0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 693× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php:23
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Api/Distribution/Exemplar.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/gax/tests/Tests/Unit/FixedSizeCollectionTest.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Prophecy\\Argument\\Token\\TokenInterface' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/cloud-core/src/Testing/ArrayHasSameValuesToken.php:14
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/auth/src/Credentials/UserRefreshCredentials.php:35
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Api/Expr/V1alpha1/SourcePosition.php:16
- > PHP Fatal error
Uncaught Error: Class 'Grpc\\Gcp\\GcpBaseCall' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/grpc-gcp/src/GCPBidiStreamingCall.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/google/gax/tests/Tests/Unit/BidiStreamTest.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
automated-db-schenker-shipping/hitshipo_dbs_basic.php 77% from 13 tests
This is the main PHP file of "Automated DB Schenker Shipping" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0.1" instead of "2.6")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("automated-db-schenker-shipping.php" instead of "hitshipo_dbs_basic.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please fix the following items
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/automated-db-schenker-shipping/controllors/classes/gtrans/vendor/bin/google-cloud-batch.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,188 | 16,201 | 71,364 | 73,247 |
Markdown | 42 | 1,668 | 0 | 5,164 |
JSON | 36 | 4 | 0 | 3,250 |
XSLT | 2 | 23 | 20 | 209 |
XML | 6 | 1 | 5 | 182 |
Bourne Shell | 9 | 46 | 81 | 172 |
YAML | 4 | 10 | 0 | 98 |
Protocol Buffers | 2 | 14 | 38 | 62 |
Python | 1 | 17 | 43 | 46 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 141)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 528.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 141.00 |
Code structure | ||
---|---|---|
Namespaces | 165 | |
Interfaces | 52 | |
Traits | 58 | |
Classes | 1,051 | |
▷ Abstract classes | 18 | 1.71% |
▷ Concrete classes | 1,033 | 98.29% |
▷ Final classes | 15 | 1.45% |
Methods | 6,433 | |
▷ Static methods | 562 | 8.74% |
▷ Public methods | 5,702 | 88.64% |
▷ Protected methods | 235 | 3.65% |
▷ Private methods | 496 | 7.71% |
Functions | 290 | |
▷ Named functions | 76 | 26.21% |
▷ Anonymous functions | 214 | 73.79% |
Constants | 584 | |
▷ Global constants | 3 | 0.51% |
▷ Class constants | 581 | 99.49% |
▷ Public constants | 561 | 96.56% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin