Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼7.77ms] Passed 4 tests
An overview of server-side resources used by Product Geolocation for WooCommerce - Set Your Store Products Location with Google Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 41.46 ▲1.49 |
Dashboard /wp-admin | 3.80 ▲0.46 | 48.71 ▼11.15 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 45.10 ▼5.24 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 81.64 ▼16.19 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 40.14 ▲5.77 |
Product Geolocation /wp-admin/admin.php?page=product-geolocation-for-woo | 3.63 | 32.83 |
Help /wp-admin/admin.php?page=product-geolocation-for-woo-help | 3.63 | 33.36 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wp_wpg_admin_settings_general |
wp_wpg_admin_settings_shop_page |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
product_geolocation_for_woo_version |
wp_wpg_admin_settings_single_product |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Geolocation for WooCommerce - Set Your Store Products Location with Google Map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.60 ▼0.79 | 1.67 ▼0.14 | 46.26 ▲8.09 |
Dashboard /wp-admin | 2,248 ▲60 | 5.81 ▼0.07 | 103.40 ▲0.11 | 42.33 ▼1.88 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.06 ▲0.08 | 36.73 ▲1.53 | 32.71 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 22.85 ▼0.43 | 639.05 ▼15.73 | 53.96 ▲2.19 |
Media Library /wp-admin/upload.php | 1,430 ▲48 | 4.32 ▲0.09 | 98.33 ▲2.19 | 40.77 ▼3.80 |
Product Geolocation /wp-admin/admin.php?page=product-geolocation-for-woo | 1,106 | 1.96 | 30.69 | 35.72 |
Help /wp-admin/admin.php?page=product-geolocation-for-woo-help | 1,377 | 9.42 | 298.30 | 72.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 10 options
- widget_theysaidso_widget
- wp_wpg_admin_settings_single_product
- widget_recent-posts
- product_geolocation_for_woo_version
- wp_wpg_admin_settings_shop_page
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- wp_wpg_admin_settings_general
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/product-geolocation-for-woo/templates/html-geolocation-for-shop.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-geolocation-for-woo/templates/admin/product-panel-tab.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-geolocation-for-woo/templates/html-geolocation-for-single-product.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/product-geolocation-for-woo/templates/html-shop-product-geolocation-data.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/product-geolocation-for-woo/templates/admin/product-tabs-data.php:10
- > PHP Notice
Undefined variable: enable_search in wp-content/plugins/product-geolocation-for-woo/templates/html-geolocation-for-shop.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
5 plugin tags: geolocation, woocommerce, woocommerce-geolocation, wc-geolocation, product-geolocation
product-geolocation-for-woo/product-geolocation-for-woo.php Passed 13 tests
The main PHP script in "Product Geolocation for WooCommerce - Set Your Store Products Location with Google Map" version 1.0.0 is automatically included on every request by WordPress
110 characters long description:
Set your WooCommerce products location wise. Single product page locaton tabs, shop page search location wise.
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
Everything looks great! No dangerous files found in this plugin2,868 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 422 | 1,209 | 1,771 |
JavaScript | 5 | 268 | 499 | 870 |
CSS | 2 | 0 | 7 | 215 |
SVG | 1 | 0 | 1 | 7 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 126 | |
▷ Static methods | 19 | 15.08% |
▷ Public methods | 122 | 96.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.17% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 7 | |
▷ Global constants | 7 | 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
4 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpr-wpg-gmap-cluster-icon.png | 124.95KB | 51.42KB | ▼ 58.85% |
assets/images/searchicon.png | 0.84KB | 0.46KB | ▼ 45.23% |
assets/images/wpr-wpg-gmap-icon.png | 19.41KB | 7.84KB | ▼ 59.62% |
assets/images/drop-down-arow.png | 1.08KB | 0.21KB | ▼ 80.43% |