Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.58ms] Passed 4 tests
An overview of server-side resources used by SamedayCourier Shipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.04 ▲1.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.91 ▼5.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.05 ▼1.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.60 ▼6.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.49 ▼0.68 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 162 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
SamedayCourier Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.42 ▼0.19 | 1.96 ▼0.15 | 45.55 ▼0.34 |
Dashboard /wp-admin | 2,195 ▲21 | 5.57 ▲0.04 | 93.74 ▼2.53 | 47.30 ▲2.20 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.06 | 42.14 ▲5.46 | 35.77 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.01 ▼0.08 | 602.87 ▼91.56 | 48.27 ▼9.28 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.21 ▲0.02 | 101.21 ▼2.09 | 43.62 ▼0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- 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
- 65× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sameday\\HttpClients\\SamedayHttpClientInterface' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/HttpClients/SamedayStreamHttpClient.php:13
- > PHP Fatal error
Trait 'Sameday\\Objects\\Traits\\SamedayObjectIdTrait' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Objects/Service/DeliveryTypeObject.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Sameday\\Objects\\PostAwb\\Request\\EntityObject' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Objects/PostAwb/Request/ThirdPartyPickupEntityObject.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Sameday\\Requests\\SamedayRequestInterface' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Requests/SamedayDeleteAwbRequest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Sameday\\Objects\\AwbStatusHistory\\HistoryObject' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Objects/AwbStatusHistory/ParcelObject.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Sameday\\Responses\\SamedayResponseInterface' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Responses/SamedayPutParcelSizeResponse.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Sameday\\Responses\\SamedayResponseInterface' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Responses/SamedayPaginatedResponseInterface.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Sameday\\Responses\\SamedayResponseInterface' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Responses/SamedayPutAwbCODAmountResponse.php:14
- > PHP Fatal error
Uncaught Error: Class 'Sameday\\Exceptions\\SamedayServerException' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Exceptions/SamedayAuthorizationException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Sameday\\Objects\\PostAwb\\Request\\EntityObject' not found in wp-content/plugins/samedaycourier-shipping/lib/sameday-courier/src/Sameday/Objects/PostAwb/Request/AwbRecipientEntityObject.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
1 plugin tags: shipping
samedaycourier-shipping/samedaycourier-shipping.php 85% from 13 tests
The entry point to "SamedayCourier Shipping" version 1.7.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/ro")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin8,335 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 1,800 | 4,038 | 7,481 |
PO File | 1 | 127 | 140 | 307 |
JavaScript | 4 | 57 | 27 | 277 |
CSS | 1 | 9 | 7 | 134 |
Markdown | 3 | 25 | 0 | 98 |
JSON | 1 | 0 | 0 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 1.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 8 | |
Traits | 6 | |
Classes | 98 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 98 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 587 | |
▷ Static methods | 75 | 12.78% |
▷ Public methods | 561 | 95.57% |
▷ Protected methods | 4 | 0.68% |
▷ Private methods | 22 | 3.75% |
Functions | 52 | |
▷ Named functions | 18 | 34.62% |
▷ Anonymous functions | 34 | 65.38% |
Constants | 45 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 45 | 100.00% |
▷ Public constants | 37 | 82.22% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
31 PNG files occupy 0.86MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 28.16KB | 14.13KB | ▼ 49.81% |
icon.png | 22.89KB | 7.68KB | ▼ 66.45% |
assets/screenshots/samedaycourier-settings.PNG | 34.41KB | 16.74KB | ▼ 51.36% |
assets/screenshots/samedaycourier-generate-awb-form.PNG | 41.13KB | 19.54KB | ▼ 52.50% |
assets/screenshots/screenshot-3.png | 12.13KB | 5.87KB | ▼ 51.62% |