Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼17.44ms] Passed 4 tests
This is a short check of server-side resources used by WP Multi Store Locator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 44.44 ▲7.99 |
Dashboard /wp-admin | 3.82 ▲0.47 | 31.64 ▼30.54 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 34.47 ▼10.90 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 68.71 ▼26.26 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 32.07 ▼2.05 |
Maps /wp-admin/edit.php?post_type=maps | 3.87 | 33.98 |
Sales Managers List /wp-admin/edit.php?post_type=sales_manager | 3.87 | 31.34 |
Store Categories /wp-admin/edit-tags.php?taxonomy=store_locator_category&post_type=store_locator | 3.82 | 32.74 |
Stores List /wp-admin/edit.php?post_type=store_locator | 3.87 | 35.19 |
Settings /wp-admin/edit.php?post_type=store_locator&page=store_locator_settings_page | 4.21 | 49.73 |
Store Tags /wp-admin/edit-tags.php?taxonomy=store_locator_tag&post_type=store_locator | 3.82 | 32.52 |
Server storage [IO: ▲1.21MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 77 new files
Database: 3 new tables, 10 new options
New tables |
---|
store_locator_transactions |
store_locator_state |
store_locator_country |
New WordPress options |
---|
db_upgraded |
placeholder_settings |
store_locator_map |
widget_theysaidso_widget |
can_compress_scripts |
widget_wp_store_locator_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
store_locator_grid |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Multi Store Locator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,999 ▲238 | 13.46 ▼1.27 | 9.34 ▲7.64 | 44.74 ▲1.94 |
Dashboard /wp-admin | 2,293 ▲112 | 5.54 ▼0.21 | 82.82 ▼21.14 | 39.66 ▼4.72 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.09 ▲0.06 | 39.94 ▲3.02 | 34.08 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 23.53 ▲0.48 | 602.49 ▼21.93 | 71.97 ▲29.55 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.20 ▲0.01 | 100.40 ▼6.19 | 44.49 ▼1.13 |
Maps /wp-admin/edit.php?post_type=maps | 1,147 | 2.10 | 32.81 | 36.95 |
Sales Managers List /wp-admin/edit.php?post_type=sales_manager | 1,130 | 2.05 | 37.74 | 34.55 |
Store Categories /wp-admin/edit-tags.php?taxonomy=store_locator_category&post_type=store_locator | 1,600 | 4.21 | 82.04 | 36.32 |
Stores List /wp-admin/edit.php?post_type=store_locator | 1,138 | 2.05 | 37.08 | 33.11 |
Settings /wp-admin/edit.php?post_type=store_locator&page=store_locator_settings_page | 1,084 | 3.74 | 76.53 | 27.09 |
Store Tags /wp-admin/edit-tags.php?taxonomy=store_locator_tag&post_type=store_locator | 1,487 | 4.05 | 58.00 | 35.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 3 tables
- store_locator_country
- store_locator_state
- store_locator_transactions
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- store_locator_grid
- placeholder_settings
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_wp_store_locator_widget
- store_locator_map
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=store_locator_tag&post_type=store_locator
- > Notice in wp-content/plugins/wp-multi-store-locator/inc/class-stores-backend.php+42
Undefined index: page
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-multi-store-locator/templates/single-store_locator.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multi-store-locator/inc/class-multi-maps-backend.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-multi-store-locator/inc/store_locator_widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-multi-store-locator/inc/class-general-settings.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=store_locator_tag&post_type=store_locator
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: store shortcode, store sales manager, store categories, store locator, search store
wp-multi-store-locator/store-locator.php 77% from 13 tests
The main file in "WP Multi Store Locator" v. 2.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-multi-store-locator.php" instead of "store-locator.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 335 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin23,196 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 2,712 | 1,757 | 14,403 |
CSS | 7 | 269 | 220 | 4,737 |
PHP | 11 | 143 | 137 | 3,849 |
PO File | 1 | 96 | 7 | 207 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 85.62 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 10.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 1 | 1.45% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/yellow.png | 0.94KB | 0.51KB | ▼ 45.57% |
assets/img/aubergine.png | 1.16KB | 1.12KB | ▼ 3.21% |
assets/img/purple.png | 0.96KB | 0.55KB | ▼ 42.10% |
assets/img/silver.png | 1.17KB | 1.15KB | ▼ 1.34% |
assets/img/orange.png | 0.92KB | 0.51KB | ▼ 44.64% |