Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.06ms] Passed 4 tests
An overview of server-side resources used by Shipping Zones by Drawing for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.68 ▼4.20 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.97 ▼17.64 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.95 ▲5.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.03 ▼11.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.66 ▲5.51 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shipping Zones by Drawing for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.01 | 1.59 ▼0.13 | 38.23 ▼4.59 |
Dashboard /wp-admin | 2,195 ▲27 | 5.62 ▲0.04 | 91.59 ▼9.92 | 42.06 ▼5.12 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.97 ▼0.02 | 38.71 ▲2.61 | 34.62 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.56 ▲0.35 | 603.53 ▼60.10 | 47.73 ▼8.07 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.17 ▼0.05 | 94.90 ▼11.53 | 42.20 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shipping-zones-by-drawing-for-woocommerce/includes/shortcode-map-template.php
- > /wp-content/plugins/shipping-zones-by-drawing-for-woocommerce/includes/admin-map-template.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: token in wp-content/plugins/shipping-zones-by-drawing-for-woocommerce/includes/shortcode-map-template.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: shipping, map, woocommerce, restrict, radius...
shipping-zones-by-drawing-for-woocommerce/shipping-zones-by-drawing.php 77% from 13 tests
The main PHP script in "Shipping Zones by Drawing for WooCommerce" version 2.8.12 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("shipping-zones-by-drawing-for-woocommerce.php" instead of "shipping-zones-by-drawing.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected9,726 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 776 | 133 | 3,098 |
SVG | 2 | 0 | 0 | 3,031 |
JavaScript | 13 | 78 | 30 | 2,534 |
JSON | 1 | 0 | 0 | 982 |
CSS | 8 | 10 | 7 | 81 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 46.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 6.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 89 | |
▷ Static methods | 23 | 25.84% |
▷ Public methods | 86 | 96.63% |
▷ Protected methods | 2 | 2.25% |
▷ Private methods | 1 | 1.12% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin