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.00MB] [CPU: ▼7.84ms] Passed 4 tests
An overview of server-side resources used by 5Post - Shipping for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.94 ▼5.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.79 ▼8.49 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.81 ▼1.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.26 ▼16.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.02 ▲0.18 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 225 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for 5Post - Shipping for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.19 | 1.74 ▼0.14 | 46.13 ▼5.27 |
Dashboard /wp-admin | 2,209 ▲18 | 4.84 ▼0.03 | 106.22 ▼7.82 | 40.48 ▼5.87 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.01 | 34.24 ▼3.32 | 35.26 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.50 ▼5.77 | 675.37 ▼15.36 | 55.47 ▲3.25 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.08 | 97.82 ▼14.79 | 41.11 ▼7.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fivepost/lib/Api/Entity/AbstractEntity.php
- > /wp-content/plugins/fivepost/lib/Api/Entity/Response/AbstractResponse.php
- > /wp-content/plugins/fivepost/lib/Api/Adapter/AdapterInterface.php
- > /wp-content/plugins/fivepost/lib/Api/Entity/Request/AbstractRequest.php
- > /wp-content/plugins/fivepost/lib/Api/Client/ClientInterface.php
- > /wp-content/plugins/fivepost/lib/Api/Entity/AbstractCollection.php
- > /wp-content/plugins/fivepost/lib/Fivepost/Handler/Enumerations.php
- 140× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\Request\\AbstractRequest' not found in wp-content/plugins/fivepost/lib/Api/Entity/Request/OrdersMake.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\AbstractEntity' not found in wp-content/plugins/fivepost/lib/Api/Entity/Request/Part/CreateOrder/Cargo.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\AbstractEntity' not found in wp-content/plugins/fivepost/lib/Api/Entity/Request/Part/CreateOrder/Barcode.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\Request\\AbstractRequest' not found in wp-content/plugins/fivepost/lib/Api/Entity/Request/CancelOrderById.php:11
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\AbstractEntity' not found in wp-content/plugins/fivepost/lib/Api/Entity/Response/Part/PickupPoint/Rate.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Logger\\Route' not found in wp-content/plugins/fivepost/lib/Api/Logger/InlineRoute.php:12
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Fivepost\\Entity\\AbstractResult' not found in wp-content/plugins/fivepost/lib/Fivepost/Entity/CancelOrderByNumberResult.php:16
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\AbstractCollection' not found in wp-content/plugins/fivepost/lib/Api/Entity/Response/Part/OrdersMake/CargoList.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\AbstractCollection' not found in wp-content/plugins/fivepost/lib/Api/Entity/Response/Part/OrdersMake/ErrorList.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Fivepost\\Api\\Entity\\AbstractEntity' not found in wp-content/plugins/fivepost/lib/Api/Entity/UniversalPart/WorkingTime.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #1 (/assets/screenshot/screenshot-4.jpg) image required
fivepost/fivepost.php 85% from 13 tests
The principal PHP file in "5Post - Shipping for WooCommerce" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 432 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin13,981 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 189 | 2,826 | 6,832 | 12,209 |
JavaScript | 3 | 71 | 29 | 666 |
PO File | 1 | 256 | 14 | 540 |
CSS | 2 | 58 | 1 | 455 |
Markdown | 2 | 36 | 0 | 85 |
JSON | 1 | 1 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 440.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 6 | |
Traits | 2 | |
Classes | 171 | |
▷ Abstract classes | 7 | 4.09% |
▷ Concrete classes | 164 | 95.91% |
▷ Final classes | 0 | 0.00% |
Methods | 1,225 | |
▷ Static methods | 26 | 2.12% |
▷ Public methods | 1,181 | 96.41% |
▷ Protected methods | 22 | 1.80% |
▷ Private methods | 22 | 1.80% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 25 | |
▷ Global constants | 3 | 12.00% |
▷ Class constants | 22 | 88.00% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/png/POSTAMAT_inactive_orig1.png | 35.17KB | 14.40KB | ▼ 59.07% |
assets/images/png/POSTAMAT_inactive.png | 6.02KB | 2.71KB | ▼ 54.94% |
assets/images/png/POSTAMAT_inactive_orig.png | 35.86KB | 14.02KB | ▼ 60.90% |
assets/images/png/TOBACCO_inactive.png | 8.34KB | 3.34KB | ▼ 59.90% |
assets/images/png/TOBACCO_inactive_orig1.png | 34.80KB | 12.83KB | ▼ 63.14% |