Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
Server metrics [RAM: ▼1.92MB] [CPU: ▼61.52ms] Passed 4 tests
A check of server-side resources used by Wuunder Shipping Module
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.21 ▼40.30 |
Dashboard /wp-admin | 2.10 ▼1.25 | 6.88 ▼61.44 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.61 ▼44.32 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.61 ▼100.03 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.25 ▼28.39 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Wuunder Shipping Module: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.34 ▼0.01 | 1.79 ▼0.09 | 42.52 ▼5.04 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.00 | 86.71 ▼3.22 | 38.97 ▼5.02 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.03 ▲0.02 | 39.58 ▲2.30 | 36.38 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 18.03 ▼5.07 | 622.33 ▼37.82 | 59.66 ▼6.32 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.02 | 103.66 ▲0.04 | 43.95 ▲0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Api\\Config\\Config' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Api/Config/BookingConfig.php:5
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Model\\Model' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopModel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Api\\ApiResponse' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Api/ParcelshopApiResponse.php:7
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Api\\ApiResponse' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Api/ShipmentApiResponse.php:7
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Http\\Request' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Http/GetRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Model\\Model' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Model/ParcelshopsModel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Model\\Model' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Model/ShipmentModel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Api\\ApiResponse' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Api/BookingApiResponse.php:5
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Api\\Config\\Config' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ParcelshopsConfig.php:5
- > PHP Fatal error
Uncaught Error: Class 'Wuunder\\Api\\Config\\Config' not found in wp-content/plugins/wuunder-for-woocommerce/vendor/wuunder/connector-php/src/Wuunder/Api/Config/ShipmentConfig.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #0, #0, #0, #0, #0, #0, #0 in wuunder-for-woocommerce/assets to your readme.txt
wuunder-for-woocommerce/woocommerce-wuunder.php 92% from 13 tests
The main PHP file in "Wuunder Shipping Module" ver. 2.7.25 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wuunder-for-woocommerce.php" instead of "woocommerce-wuunder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,775 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 626 | 582 | 2,918 |
Markdown | 3 | 210 | 0 | 358 |
PO File | 5 | 49 | 59 | 163 |
JavaScript | 1 | 27 | 3 | 146 |
JSON | 3 | 0 | 0 | 123 |
CSS | 4 | 7 | 10 | 40 |
SVG | 1 | 0 | 1 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 22 | 13.17% |
▷ Public methods | 150 | 89.82% |
▷ Protected methods | 3 | 1.80% |
▷ Private methods | 14 | 8.38% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/retour-download-icon.png | 2.57KB | 0.95KB | ▼ 63.13% |
assets/images/parcelshop/search.png | 3.05KB | 2.10KB | ▼ 31.13% |
assets/images/parcelshop/POSTNL-locator.png | 3.56KB | 2.20KB | ▼ 38.15% |
assets/images/shipping-icon.png | 1.79KB | 0.95KB | ▼ 47.10% |
assets/images/retour-in-transit.png | 3.03KB | 1.23KB | ▼ 59.61% |