Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼298.56ms] Passed 4 tests
A check of server-side resources used by Store Locator for WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.55 | 57.38 ▲7.03 |
Dashboard /wp-admin | 3.96 ▲0.56 | 36.12 ▲3.91 |
Posts /wp-admin/edit.php | 4.19 ▲0.55 | 38.76 ▲2.55 |
Add New Post /wp-admin/post-new.php | 7.52 ▲0.52 | 92.88 ▼1,205.48 |
Media Library /wp-admin/upload.php | 3.91 ▲0.62 | 30.17 ▲4.80 |
Edit Store /wp-admin/admin.php?page=edit-evdpl-store | 4.01 | 31.46 |
Dashboard /wp-admin/admin.php?page=store-locator-dashboard | 3.84 | 28.13 |
Manage Categories /wp-admin/admin.php?page=manage-esl-categories | 3.86 | 64.77 |
Store Locator Settings /wp-admin/admin.php?page=store-locator-settings | 4.09 | 29.69 |
Add New Store /wp-admin/admin.php?page=create-evdpl-store | 4.18 | 29.32 |
Manage Stores /wp-admin/admin.php?page=manage-evdpl-store | 3.86 | 23.33 |
Server storage [IO: ▲6.12MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 191 new files
Database: 10 new tables, no new options
New tables |
---|
wp_evdpl_configs |
wp_evdpl_stores_view |
wp_evdpl_markers |
wp_evdpl_countries |
wp_evdpl_stores |
wp_evdpl_stores_categories |
wp_evdpl_categories |
wp_evdpl_brands |
wp_evdpl_settings |
wp_evdpl_storelogos |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Store Locator for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,974 ▲220 | 17.62 ▲1.55 | 28.34 ▲22.21 | 2.60 ▼0.40 |
Dashboard /wp-admin | 2,952 ▲91 | 6.15 ▼0.10 | 118.25 ▼15.39 | 154.58 ▼2.60 |
Posts /wp-admin/edit.php | 2,751 ▲57 | 3.24 ▲0.00 | 66.74 ▲5.32 | 139.68 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,793 ▲142 | 21.03 ▲1.80 | 462.65 ▲50.50 | 156.16 ▼5.54 |
Media Library /wp-admin/upload.php | 1,759 ▲61 | 5.55 ▲0.04 | 145.02 ▲0.98 | 182.74 ▼13.52 |
Edit Store /wp-admin/admin.php?page=edit-evdpl-store | 858 | 1.97 | 36.29 | 53.46 |
Dashboard /wp-admin/admin.php?page=store-locator-dashboard | 1,538 | 3.21 | 64.54 | 153.60 |
Manage Categories /wp-admin/admin.php?page=manage-esl-categories | 3,063 | 4.01 | 100.78 | 206.89 |
Store Locator Settings /wp-admin/admin.php?page=store-locator-settings | 3,733 | 3.12 | 73.91 | 187.40 |
Add New Store /wp-admin/admin.php?page=create-evdpl-store | 5,673 | 7.31 | 152.10 | 333.52 |
Manage Stores /wp-admin/admin.php?page=manage-evdpl-store | 3,406 | 4.01 | 100.57 | 221.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 10 tables
- wp_evdpl_categories
- wp_evdpl_configs
- wp_evdpl_stores_view
- wp_evdpl_brands
- wp_evdpl_countries
- wp_evdpl_stores_categories
- wp_evdpl_settings
- wp_evdpl_markers
- wp_evdpl_storelogos
- wp_evdpl_stores
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/store-locator-for-wp/admin/partials/user_setting.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/store-locator-for-wp/public/partials/template-frontend.php:19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/store-locator-for-wp/public/partials/template-frontend.php on line 8
- > PHP Notice
Undefined variable: all_configs in wp-content/plugins/store-locator-for-wp/public/partials/template-frontend.php on line 12
- > PHP Notice
Undefined variable: all_configs in wp-content/plugins/store-locator-for-wp/public/partials/template-frontend.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/store-locator-for-wp/admin/partials/add_store.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/store-locator-for-wp/admin/partials/info_box.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/store-locator-for-wp/admin/partials/manage_store.php:27
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/store-locator-for-wp/public/partials/template-frontend.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/store-locator-for-wp/public/partials/template-frontend.php on line 14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=manage-esl-categories
- > Network (severe)
wp-content/plugins/store-locator-for-wp/public/svg/electronics-store.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=create-evdpl-store
- > Network (severe)
http://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
store-locator-for-wp/store-locator-for-wp.php 92% from 13 tests
"Store Locator for WP" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 267 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected27,454 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 534 | 252 | 18,211 |
PHP | 19 | 819 | 937 | 4,263 |
JavaScript | 11 | 579 | 284 | 2,361 |
PO File | 10 | 939 | 1,194 | 2,193 |
SVG | 22 | 78 | 0 | 426 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 41.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 293.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 6 | 6.74% |
▷ Public methods | 81 | 91.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.99% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
86 PNG files occupy 3.36MB with 1.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
admin/images/custom-map.png | 213.36KB | 95.29KB | ▼ 55.34% |
admin/images/asl-tmpl-2-1.png | 101.45KB | 36.82KB | ▼ 63.71% |
admin/images/pro/pro-5.png | 29.43KB | 10.69KB | ▼ 63.67% |
public/icon/arts_entertainment.png | 3.83KB | 1.22KB | ▼ 68.24% |