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.01MB] [CPU: ▼3.78ms] Passed 4 tests
This is a short check of server-side resources used by Checkout Location Picker for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.02 ▼0.40 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.35 ▼3.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.00 ▲2.95 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.88 ▼10.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.71 ▼1.30 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Checkout Location Picker for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.42 ▲0.02 | 1.80 ▲0.03 | 40.92 ▼4.20 |
Dashboard /wp-admin | 2,211 ▲34 | 5.63 ▼0.03 | 90.52 ▼7.13 | 42.27 ▼5.10 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.00 ▲0.02 | 40.16 ▲5.67 | 37.28 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.11 ▲0.13 | 691.86 ▼25.98 | 65.97 ▲6.72 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.27 ▲0.04 | 101.36 ▼5.09 | 41.08 ▼1.40 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sg-checkout-location-picker/public/partials/sg-checkout-location-picker-public-shipping-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sg-checkout-location-picker/public/partials/sg-checkout-location-picker-public-map-options.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/sg-checkout-location-picker/admin/partials/sg-checkout-location-picker-admin-metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sevengits\\is_admin() in wp-content/plugins/sg-checkout-location-picker/plugin-deactivation-survey/deactivate-feedback-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/sg-checkout-location-picker/admin/partials/sg-checkout-location-picker-admin-shipping-display.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sg-checkout-location-picker/public/partials/sg-checkout-location-picker-public-billing-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/sg-checkout-location-picker/admin/partials/sg-checkout-location-picker-admin-billing-display.php:24
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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: checkout googlemap, multiple addresses, woocommerce address autocomplete, woocommerce geolocation map, address to map...
sg-checkout-location-picker/sg-checkout-location-picker.php 92% from 13 tests
The main PHP script in "Checkout Location Picker for WooCommerce" version 1.0.21 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,879 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 285 | 981 | 1,136 |
CSS | 7 | 108 | 55 | 347 |
JavaScript | 5 | 60 | 67 | 310 |
PO File | 2 | 16 | 16 | 68 |
Markdown | 1 | 7 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 35 | 68.63% |
▷ Protected methods | 8 | 15.69% |
▷ Private methods | 8 | 15.69% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin