Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.42ms] Passed 4 tests
A check of server-side resources used by Shipping Method for Hermes Germany and WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.83 ▼2.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.77 ▼3.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.85 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.14 ▼2.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.21 ▲0.70 |
Server storage [IO: ▲2.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Shipping Method for Hermes Germany and WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.37 | 4.84 ▲3.11 | 42.84 ▼5.61 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼0.14 | 122.10 ▲20.72 | 44.87 ▲0.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.03 | 38.88 ▲2.53 | 35.16 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,544 ▲2 | 18.12 ▼0.37 | 577.41 ▼33.88 | 49.70 ▼5.74 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.02 | 93.96 ▼2.71 | 42.07 ▼0.81 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 39× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'WPRuby\\Hermes\\DVDoug\\BoxPacker\\Item' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/includes/class-wpruby-hermes-item.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPRuby\\Hermes\\DVDoug\\BoxPacker\\Test\\TestItem' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/vendor/dvdoug/boxpacker/tests/Test/ConstrainedTestItem.php:14
- > PHP Fatal error
Uncaught Error: Interface 'WPRuby\\Hermes\\Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/vendor/dvdoug/boxpacker/src/OrientatedItemSorter.php:18
- > PHP Fatal error
Uncaught Error: Class 'WPRuby\\Hermes\\DVDoug\\BoxPacker\oBoxesAvailableException' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/vendor/dvdoug/boxpacker/src/ItemTooLargeException.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/includes/class-wpruby-hermes-calculate-shipping-price.php:5
- > PHP Fatal error
Uncaught Error: Interface 'WPRuby\\Hermes\\Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/vendor/dvdoug/boxpacker/src/Packer.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/wpruby-hermes-shipping-for-woocommerce.php:20
- > PHP Fatal error
Uncaught Error: Interface 'WPRuby\\Hermes\\Psr\\Log\\LoggerInterface' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPRuby\\Hermes\\DVDoug\\BoxPacker\\Test\\TestItem' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/vendor/dvdoug/boxpacker/tests/Test/TestConstrainedTestItem.php:14
- > PHP Fatal error
Uncaught Error: Interface 'WPRuby\\Hermes\\DVDoug\\BoxPacker\\Item' not found in wp-content/plugins/shipping-method-for-hermes-germany-and-wc/vendor/dvdoug/boxpacker/src/ConstrainedPlacementItem.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: germany, admin, shipping method, woocommerce, woocommerce extension...
shipping-method-for-hermes-germany-and-wc/wpruby-hermes-shipping-for-woocommerce.php 85% from 13 tests
The entry point to "Shipping Method for Hermes Germany and WooCommerce" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shipping-method-for-hermes-germany-and-wc.php" instead of "wpruby-hermes-shipping-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin5,301 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 1,019 | 2,614 | 4,441 |
JSON | 1 | 0 | 0 | 335 |
Cucumber | 2 | 20 | 0 | 148 |
reStructuredText | 7 | 88 | 183 | 136 |
YAML | 3 | 9 | 1 | 102 |
PO File | 1 | 34 | 40 | 81 |
Python | 1 | 39 | 92 | 40 |
XML | 1 | 3 | 0 | 16 |
INI | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 6 | |
Traits | 2 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 366 | |
▷ Static methods | 12 | 3.28% |
▷ Public methods | 336 | 91.80% |
▷ Protected methods | 5 | 1.37% |
▷ Private methods | 25 | 6.83% |
Functions | 16 | |
▷ Named functions | 1 | 6.25% |
▷ Anonymous functions | 15 | 93.75% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 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
No PNG images were found in this plugin