Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.34ms] Passed 4 tests
Analyzing server-side resources used by Distance Rate Shipping For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.33 ▼0.70 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.25 ▼7.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.90 ▼12.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.86 ▼19.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.91 ▼1.38 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Distance Rate Shipping For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.35 | 2.15 ▲0.36 | 42.45 ▼3.55 |
Dashboard /wp-admin | 2,195 ▲27 | 5.61 ▼0.06 | 86.12 ▼13.74 | 36.34 ▼16.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 34.98 ▼2.48 | 31.81 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.26 ▼4.75 | 617.19 ▲7.01 | 82.50 ▲20.23 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▼0.02 | 101.61 ▼6.71 | 43.67 ▼0.78 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- 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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/distance-rate-shipping-for-woocommerce/woocommerce/class-distance-rate-shipping-method.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/distance-rate-shipping-for-woocommerce/backend/src/main-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/distance-rate-shipping-for-woocommerce/backend/src/settings-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: distance based shipping woocommerce, woocommerce table rate shipping, woocommerce distance rate shipping
distance-rate-shipping-for-woocommerce/distance-rate-shipping-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Distance Rate Shipping For WooCommerce" version 1.0.0
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.1" instead of "5.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,045 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 178 | 802 | 934 |
YAML | 1 | 7 | 0 | 64 |
XML | 2 | 4 | 12 | 47 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 69 | 98.57% |
▷ Protected methods | 1 | 1.43% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin