Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.50ms] Passed 4 tests
This is a short check of server-side resources used by Custom WP Store Locator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 38.75 ▼6.67 |
Dashboard /wp-admin | 3.53 ▲0.22 | 56.79 ▲7.82 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 48.95 ▲2.12 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 84.59 ▼8.50 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 41.20 ▲3.05 |
Add New /wp-admin/post-new.php?post_type=csl_locations | 3.55 | 55.68 |
Locations /wp-admin/edit.php?post_type=csl_locations | 3.49 | 40.22 |
Settings /wp-admin/admin.php?page=store_plugin_settings | 3.62 | 47.15 |
Location Categories /wp-admin/edit-tags.php?taxonomy=csl_locations_categories&post_type=csl_locations | 3.44 | 41.54 |
About /wp-admin/admin.php?page=store_plugin | 3.45 | 38.86 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 16 new options
New WordPress options |
---|
csl_map_api_key |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
csl_fullwidth_include_loc |
csl_autocompletesearchbox |
csl_location_default_sorting |
db_upgraded |
csl_map_default_radius |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom WP Store Locator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲248 | 15.28 ▲1.25 | 30.65 ▲28.71 | 41.84 ▼11.76 |
Dashboard /wp-admin | 2,268 ▲80 | 5.99 ▲0.11 | 141.71 ▲19.08 | 55.79 ▲14.61 |
Posts /wp-admin/edit.php | 2,165 ▲73 | 2.66 ▲0.60 | 42.57 ▼7.44 | 37.69 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,730 ▲202 | 23.21 ▲0.11 | 648.58 ▼22.98 | 38.74 ▼18.60 |
Media Library /wp-admin/upload.php | 1,461 ▲73 | 5.29 ▲1.10 | 111.78 ▼0.32 | 43.87 ▼9.36 |
Add New /wp-admin/post-new.php?post_type=csl_locations | 2,625 | 9.59 | 276.39 | 191.30 |
Locations /wp-admin/edit.php?post_type=csl_locations | 1,154 | 2.80 | 58.00 | 37.73 |
Settings /wp-admin/admin.php?page=store_plugin_settings | 2,316 | 3.65 | 74.85 | 42.10 |
Location Categories /wp-admin/edit-tags.php?taxonomy=csl_locations_categories&post_type=csl_locations | 1,338 | 2.88 | 60.83 | 37.22 |
About /wp-admin/admin.php?page=store_plugin | 1,044 | 3.67 | 72.60 | 36.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 16 options in the database
- csl_include_cat
- csl_custom_map_marker
- widget_theysaidso_widget
- csl_fullwidth_include_loc
- widget_recent-posts
- csl_country_restriction
- csl_map_default_radius
- csl_location_default_sorting
- csl_map_api_key
- csl_map_type
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=store_plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=store_plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 46 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=store_plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=store_plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/custom-store-locator/custom-store-locator.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-store-locator/inc/Csl-functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-store-locator/inc/layout/default-right-map.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/custom-store-locator/templates/adminsettings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-store-locator/inc/layout/full-width-map.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-store-locator/templates/admin.php:7
- > PHP Notice
Undefined variable: csl_autocompletesearchbox in wp-content/plugins/custom-store-locator/inc/layout/default-right-map.php on line 6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=store_plugin
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&libraries=geometry%2Cplaces&ver=6.3.1 243: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"
- > GET request to /wp-admin/post-new.php?post_type=csl_locations
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key&libraries=geometry%2Cplaces&ver=6.3.1 161:248 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: store locator, store list, wordpress store locator, wp store, store map...
custom-store-locator/custom-store-locator.php Passed 13 tests
The main file in "Custom WP Store Locator" v. 1.4.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
This is store locator plugin which provide search stores and other functionality.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin6,155 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 12 | 851 | 891 | 2,224 |
PHP | 18 | 181 | 264 | 1,637 |
JavaScript | 4 | 543 | 609 | 1,452 |
CSS | 4 | 31 | 14 | 817 |
JSON | 2 | 0 | 0 | 18 |
SVG | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 5 | 12.50% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.50% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pin.png | 2.65KB | 1.33KB | ▼ 49.69% |
assets/images/direction-icon.png | 7.09KB | 3.49KB | ▼ 50.85% |
assets/images/current-location.png | 4.44KB | 2.97KB | ▼ 33.04% |