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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.45MB] [CPU: ▼0.78ms] Passed 4 tests
An overview of server-side resources used by MyParcel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 47.79 ▲0.20 |
Dashboard /wp-admin | 3.80 ▲0.49 | 49.60 ▼2.49 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 50.42 ▼1.79 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 93.00 ▲0.96 |
Media Library /wp-admin/upload.php | 3.67 ▲0.43 | 45.47 ▲7.22 |
Server storage [IO: ▲5.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 285 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
myparcel_notice_persisted |
woocommerce_myparcel_version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MyParcel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.33 ▼0.30 | 1.86 ▲0.08 | 44.14 ▲2.08 |
Dashboard /wp-admin | 2,201 ▲24 | 5.60 ▼0.01 | 88.39 ▼4.96 | 42.71 ▲2.21 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.95 ▼0.04 | 35.95 ▲0.08 | 39.69 ▲2.43 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.27 ▲5.25 | 674.33 ▲37.26 | 56.79 ▼18.22 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.22 ▲0.10 | 101.57 ▲4.87 | 42.79 ▼0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- myparcel_notice_persisted
- woocommerce_myparcel_version
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 79× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Model\\BaseModel' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Model/Account/Account.php:10
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Validator\\AbstractValidator' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Validator/Consignment/DHLParcelConnectConsignmentValidator.php:14
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Model\\Carrier\\AbstractCarrier' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Model/Carrier/CarrierDHLEuroplus.php:10
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Services\\Web\\AbstractWebService' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Services/Web/Webhook/AbstractWebhookWebService.php:10
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Model\\BaseModel' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Model/Fulfilment/Product.php:10
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Rule\\Rule' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Rule/Consignment/RestrictCountriesRule.php:9
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Model\\Carrier\\AbstractCarrier' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Model/Carrier/CarrierDHLForYou.php:10
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Support\\Collection' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Collection/Fulfilment/OrderCollection.php:23
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Services\\Web\\AbstractWebService' not found in wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Services/Web/AccountWebService.php:9
- > PHP Fatal error
Uncaught Error: Class 'MyParcelNL\\Sdk\\src\\Model\\Recipient' not found in wp-content/plugins/woocommerce-myparcel/includes/adapter/RecipientFromWCOrder.php:16
- > 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 97% 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
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== woocommerce-myparcel ===
)
woocommerce-myparcel/woocommerce-myparcel.php Passed 13 tests
The entry point to "MyParcel" version 4.21.0 is a PHP file that has certain tags in its header comment area
118 characters long description:
Export your WooCommerce orders to MyParcel (https://myparcel.nl/) and print labels directly from the WooCommerce admin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected35,018 lines of code in 279 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 4,939 | 10,902 | 21,114 |
PO File | 9 | 3,501 | 0 | 9,015 |
XML | 13 | 0 | 0 | 3,496 |
CSS | 9 | 88 | 50 | 661 |
YAML | 11 | 45 | 0 | 302 |
Markdown | 3 | 152 | 0 | 167 |
JSON | 4 | 1 | 0 | 159 |
SVG | 6 | 0 | 1 | 96 |
JavaScript | 6 | 0 | 10 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 2 | |
Traits | 10 | |
Classes | 191 | |
▷ Abstract classes | 14 | 7.33% |
▷ Concrete classes | 177 | 92.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,673 | |
▷ Static methods | 274 | 16.38% |
▷ Public methods | 1,318 | 78.78% |
▷ Protected methods | 79 | 4.72% |
▷ Private methods | 276 | 16.50% |
Functions | 85 | |
▷ Named functions | 1 | 1.18% |
▷ Anonymous functions | 84 | 98.82% |
Constants | 419 | |
▷ Global constants | 3 | 0.72% |
▷ Class constants | 416 | 99.28% |
▷ Public constants | 357 | 85.82% |
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
No PNG images were found in this plugin