Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.05ms] Passed 4 tests
An overview of server-side resources used by bpost shipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.11 ▼7.78 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.49 ▼8.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 47.46 ▼1.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 81.70 ▼14.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 35.01 ▼0.26 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 513 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for bpost shipping
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲48 | 14.30 ▼0.05 | 1.60 ▼0.03 | 40.89 ▼3.84 |
Dashboard /wp-admin | 2,197 ▲23 | 5.49 ▼0.19 | 84.04 ▼14.88 | 38.03 ▼4.97 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.02 ▲0.02 | 40.25 ▲1.79 | 37.11 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,531 ▼14 | 22.96 ▼2.51 | 624.60 ▼23.44 | 50.37 ▼13.03 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.23 ▲0.05 | 100.17 ▼8.41 | 43.46 ▼2.21 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 318× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/tests/Bpost/Order/Box/Openinghour/DayTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/bpost-shipping/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:31
- > PHP Fatal error
Uncaught Error: Class 'Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\Option' not found in wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/src/Bpost/Order/Box/Option/Messaging.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/bpost-shipping/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'Bpost\\BpostApiClient\\Exception\\BpostLogicException' not found in wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/src/Exception/BpostLogicException/BpostInvalidPatternException.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/tests/Bpost/Order/Box/Option/SignatureTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/bpost-shipping/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/tests/Exception/ApiResponseException/BpostInvalidResponseExceptionTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/bpost-shipping/vendor/monolog/monolog/src/Monolog/Logger.php:34
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/bpost-shipping/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== bpost-shipping ===
)
bpost-shipping/bpost-shipping.php 85% from 13 tests
The main PHP file in "bpost shipping" ver. 3.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 161 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected38,868 lines of code in 482 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 447 | 6,941 | 14,018 | 30,950 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 0 | 13 | 2,330 |
Markdown | 15 | 502 | 0 | 1,681 |
JavaScript | 5 | 145 | 18 | 719 |
JSON | 5 | 1 | 0 | 406 |
YAML | 3 | 10 | 0 | 59 |
XML | 2 | 8 | 1 | 52 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 79 | |
Interfaces | 13 | |
Traits | 5 | |
Classes | 462 | |
▷ Abstract classes | 16 | 3.46% |
▷ Concrete classes | 446 | 96.54% |
▷ Final classes | 3 | 0.67% |
Methods | 2,489 | |
▷ Static methods | 158 | 6.35% |
▷ Public methods | 2,020 | 81.16% |
▷ Protected methods | 230 | 9.24% |
▷ Private methods | 239 | 9.60% |
Functions | 89 | |
▷ Named functions | 9 | 10.11% |
▷ Anonymous functions | 80 | 89.89% |
Constants | 259 | |
▷ Global constants | 8 | 3.09% |
▷ Class constants | 251 | 96.91% |
▷ Public constants | 224 | 89.24% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/bpost_logo_4c_c.png | 47.31KB | 19.47KB | ▼ 58.84% |
public/images/icon-print-label.png | 2.84KB | 0.15KB | ▼ 94.88% |
public/images/bpost-logo.png | 2.34KB | 1.83KB | ▼ 21.72% |