Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.91MB] [CPU: ▲3.25ms] Passed 4 tests
An overview of server-side resources used by Store Locator WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.87 | 42.33 ▼0.63 |
Dashboard /wp-admin | 4.23 ▲0.93 | 57.82 ▲9.14 |
Posts /wp-admin/edit.php | 4.28 ▲0.93 | 54.99 ▲7.64 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 92.35 ▲1.51 |
Media Library /wp-admin/upload.php | 4.16 ▲0.93 | 39.62 ▲4.47 |
ASL Settings /wp-admin/admin.php?page=asl-settings | 4.77 | 49.62 |
Edit Store /wp-admin/admin.php?page=edit-agile-store | 4.03 | 38.06 |
Import/Export (Pro) /wp-admin/admin.php?page=import-store-list | 4.12 | 39.25 |
Agile Store Locator UI Customizer /wp-admin/options-writing.php?page=sl-ui-customizer | 3.95 | 28.87 |
Markers (Pro) /wp-admin/admin.php?page=manage-store-markers | 4.08 | 38.94 |
Categories /wp-admin/admin.php?page=manage-asl-categories | 4.09 | 38.64 |
Manage Stores /wp-admin/admin.php?page=manage-agile-store | 4.37 | 40.42 |
Logos (Pro) /wp-admin/admin.php?page=manage-store-logos | 4.09 | 37.98 |
Dashboard /wp-admin/admin.php?page=agile-dashboard | 4.17 | 40.46 |
Leads Manager /wp-admin/options-writing.php?page=sl-lead-manager | 3.95 | 33.28 |
Server storage [IO: ▲9.56MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 427 new files
Database: 12 new tables, 7 new options
New tables |
---|
wp_asl_countries |
wp_asl_storelogos |
wp_asl_stores |
wp_asl_categories |
wp_asl_stores_view |
wp_asl_settings |
wp_asl_configs |
wp_asl_brands |
wp_asl_specials |
wp_asl_stores_meta |
... |
New WordPress options |
---|
asl-migrate |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Store Locator WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲78 | 14.36 ▲0.01 | 1.87 ▼0.01 | 39.06 ▼5.34 |
Dashboard /wp-admin | 2,271 ▲94 | 5.59 ▼0.06 | 96.37 ▼4.37 | 45.08 ▼1.14 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 1.95 ▼0.01 | 39.24 ▲1.97 | 35.84 ▲0.52 |
Add New Post /wp-admin/post-new.php | 6,421 ▲4,894 | 27.49 ▲4.18 | 833.63 ▲198.65 | 37.24 ▼5.52 |
Media Library /wp-admin/upload.php | 1,476 ▲82 | 4.32 ▲0.13 | 96.77 ▼3.95 | 42.05 ▼0.38 |
ASL Settings /wp-admin/admin.php?page=asl-settings | 10,579 | 6.54 | 140.39 | 161.44 |
Edit Store /wp-admin/admin.php?page=edit-agile-store | 734 | 1.51 | 6.91 | 19.07 |
Import/Export (Pro) /wp-admin/admin.php?page=import-store-list | 1,386 | 2.41 | 48.82 | 50.05 |
Agile Store Locator UI Customizer /wp-admin/options-writing.php?page=sl-ui-customizer | 28 | 0.41 | 0.08 | 3.79 |
Markers (Pro) /wp-admin/admin.php?page=manage-store-markers | 1,354 | 2.32 | 45.10 | 36.45 |
Categories /wp-admin/admin.php?page=manage-asl-categories | 2,799 | 3.15 | 78.95 | 78.50 |
Manage Stores /wp-admin/admin.php?page=manage-agile-store | 3,980 | 3.37 | 91.95 | 70.98 |
Logos (Pro) /wp-admin/admin.php?page=manage-store-logos | 1,344 | 2.32 | 42.24 | 33.86 |
Dashboard /wp-admin/admin.php?page=agile-dashboard | 1,836 | 3.23 | 100.57 | 94.90 |
Leads Manager /wp-admin/options-writing.php?page=sl-lead-manager | 28 | 0.41 | 0.07 | 3.49 |
Uninstaller [IO: ▲0.59MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 12 tables
- wp_asl_configs
- wp_asl_stores_meta
- wp_asl_settings
- wp_asl_markers
- wp_asl_categories
- wp_asl_storelogos
- wp_asl_brands
- wp_asl_countries
- wp_asl_specials
- wp_asl_stores
- ...
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- asl-migrate
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 79× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: layout in wp-content/plugins/agile-store-locator/public/partials/template-frontend-0.php on line 51
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/agile-store-locator/admin/partials/customize_map.php:5
- > PHP Notice
Trying to get property 'address' of non-object in wp-content/plugins/agile-store-locator/public/partials/asl-store-page.php on line 3
- > PHP Notice
Undefined variable: store_categories in wp-content/plugins/agile-store-locator/public/partials/asl-store-page.php on line 67
- > PHP Fatal error
Uncaught Error: Call to undefined function asl_esc_lbl() in wp-content/plugins/agile-store-locator/public/partials/asl-store-page.php:85
- > PHP Notice
Undefined index: full_height in wp-content/plugins/agile-store-locator/public/partials/template-frontend-0.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/agile-store-locator/admin/partials/markers.php:27
- > PHP Notice
Undefined variable: all_configs in wp-content/plugins/agile-store-locator/public/partials/asl-store-page.php on line 14
- > PHP Notice
Trying to get property 'title' of non-object in wp-content/plugins/agile-store-locator/public/partials/asl-store-page.php on line 28
- > PHP Notice
Undefined variable: all_configs in wp-content/plugins/agile-store-locator/public/partials/template-frontend-0.php on line 8
- > PHP Notice
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)
There are user-side issues you should fix
- > GET request to /wp-admin/options-writing.php?page=sl-ui-customizer
- > Network (severe)
wp-admin/options-writing.php?page=sl-ui-customizer - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/options-writing.php?page=sl-lead-manager
- > Network (severe)
wp-admin/options-writing.php?page=sl-lead-manager - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #6 is missing in agile-store-locator/assets to your readme.txt
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
agile-store-locator/agile-store-locator.php 85% from 13 tests
The primary PHP file in "Store Locator WordPress" version 1.4.18 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 254 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin60,905 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 13 | 7,670 | 10,938 | 17,356 |
JSON | 2 | 0 | 0 | 12,469 |
PHP | 81 | 4,510 | 3,855 | 12,468 |
JavaScript | 17 | 3,373 | 7,516 | 10,237 |
CSS | 15 | 451 | 171 | 7,770 |
SVG | 33 | 75 | 3 | 387 |
HTML | 7 | 0 | 0 | 182 |
Markdown | 1 | 12 | 0 | 36 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 243.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 52 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 380 | |
▷ Static methods | 132 | 34.74% |
▷ Public methods | 332 | 87.37% |
▷ Protected methods | 19 | 5.00% |
▷ Private methods | 29 | 7.63% |
Functions | 14 | |
▷ Named functions | 3 | 21.43% |
▷ Anonymous functions | 11 | 78.57% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
225 PNG files occupy 3.97MB with 1.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/map/Flat Map/53-flat-map.png | 61.48KB | 52.88KB | ▼ 14.00% |
public/icon/route.png | 3.98KB | 1.27KB | ▼ 68.17% |
admin/images/new/tmpl-0.png | 13.31KB | 13.37KB | 0.00% |
public/icon/food.png | 3.49KB | 1.15KB | ▼ 67.17% |
public/icon/default_13.png | 5.43KB | 1.60KB | ▼ 70.56% |