Benchmarks
Plugin footprint 83% 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.78MB] [CPU: ▼1.26ms] Passed 4 tests
A check of server-side resources used by Themify Store Locator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.78 | 42.88 ▲1.83 |
Dashboard /wp-admin | 4.17 ▲0.86 | 52.39 ▼0.11 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 51.61 ▼0.02 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 91.52 ▼6.73 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 39.66 ▲3.82 |
Manage Locations /wp-admin/edit.php?post_type=themify_storelocator | 4.09 | 40.10 |
Add New /wp-admin/post-new.php?post_type=themify_storelocator | 4.23 | 62.01 |
Categories /wp-admin/edit-tags.php?taxonomy=store_category&post_type=themify_storelocator | 4.00 | 44.14 |
Settings /wp-admin/edit.php?post_type=themify_storelocator&page=themify-sl-setting | 3.93 | 36.79 |
About /wp-admin/edit.php?post_type=themify_storelocator&page=themify-sl-about | 3.93 | 37.95 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Themify Store Locator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲123 | 13.26 ▼1.12 | 1.95 ▲0.33 | 42.06 ▼6.08 |
Dashboard /wp-admin | 2,254 ▲63 | 5.83 ▼0.07 | 97.96 ▼6.31 | 38.25 ▼1.70 |
Posts /wp-admin/edit.php | 2,137 ▲45 | 1.98 ▼0.06 | 34.20 ▼4.59 | 33.58 ▼3.97 |
Add New Post /wp-admin/post-new.php | 6,505 ▲4,977 | 20.37 ▲2.12 | 910.79 ▲308.48 | 38.53 ▼18.31 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.19 ▼0.03 | 97.30 ▼14.69 | 41.42 ▼6.09 |
Manage Locations /wp-admin/edit.php?post_type=themify_storelocator | 1,109 | 1.96 | 32.86 | 33.22 |
Add New /wp-admin/post-new.php?post_type=themify_storelocator | 3,180 | 11.33 | 306.34 | 211.41 |
Categories /wp-admin/edit-tags.php?taxonomy=store_category&post_type=themify_storelocator | 1,499 | 3.50 | 43.30 | 27.55 |
Settings /wp-admin/edit.php?post_type=themify_storelocator&page=themify-sl-setting | 932 | 2.04 | 24.95 | 31.12 |
About /wp-admin/edit.php?post_type=themify_storelocator&page=themify-sl-about | 1,047 | 2.02 | 23.63 | 30.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/themify-store-locator/store_locator.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Themify_Store_Locator' not found in wp-content/plugins/themify-store-locator/template/single-loop.php:3
- > PHP Notice
Undefined variable: the_query in wp-content/plugins/themify-store-locator/template/archive-loop.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/themify-store-locator/template/archive-loop.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/themify-store-locator/views/shortcode-fields.php:2
- > PHP Notice
Undefined variable: layout in wp-content/plugins/themify-store-locator/template/archive-loop.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/themify-store-locator/views/config-for-include.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=themify_storelocator
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?key=&_=1696220496943 208: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=themify_storelocator
- > Console-api (severe) in unknown
http://maps.googleapis.com/maps/api/js?key=&_=1696220496943 128:245 "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 93% from 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: shortcode, location, map, google-map, store
themify-store-locator/store_locator.php 85% from 13 tests
The main PHP script in "Themify Store Locator" version 1.1.8 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("themify-store-locator.php" instead of "store_locator.php")
- Domain Path: The domain path folder does not exist ("/languages")
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
Good job! No executable or dangerous file extensions detected8,722 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 441 | 455 | 3,269 |
CSS | 13 | 35 | 60 | 2,776 |
JavaScript | 25 | 332 | 258 | 2,617 |
HTML | 1 | 0 | 0 | 59 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 73.50 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 8 | 10.53% |
▷ Public methods | 69 | 90.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.21% |
Functions | 51 | |
▷ Named functions | 50 | 98.04% |
▷ Anonymous functions | 1 | 1.96% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
7 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/X_icon.png | 1.87KB | 1.86KB | 0.31% |
includes/themify-metabox/img/ddbtn-blank.png | 0.07KB | 0.09KB | 0.00% |
includes/themify-metabox/img/icon-delete.png | 0.45KB | 0.46KB | 0.00% |
includes/themify-metabox/img/ddbtn-check.png | 0.14KB | 0.23KB | 0.00% |
includes/themify-metabox/img/ddbtn-cross.png | 0.18KB | 0.27KB | 0.00% |