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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.21ms] Passed 4 tests
A check of server-side resources used by Store Locator Software for Website
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.84 ▼3.73 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.67 ▲4.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.01 | 50.39 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.38 ▼9.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 38.83 ▲1.20 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Store Locator Software for Website
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 13.36 ▼0.91 | 9.52 ▲7.46 | 43.09 ▼4.29 |
Dashboard /wp-admin | 2,216 ▲39 | 5.57 ▼0.00 | 84.72 ▼15.57 | 39.18 ▼5.70 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 1.99 ▲0.03 | 34.33 ▼6.80 | 36.53 ▼8.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.66 ▲0.54 | 686.91 ▼22.01 | 52.05 ▼4.38 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.20 ▼0.02 | 95.20 ▼10.42 | 43.49 ▼3.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/store-locator-software-for-website/templates/frontpage/nopinpointkeyfound.php
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant PINPOINT_PLUGIN_PATH - assumed 'PINPOINT_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/store-locator-software-for-website/library/pinpoint-actions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function getPinPointLocatorData() in wp-content/plugins/store-locator-software-for-website/templates/pinpoint-storelists.php:6
- > PHP Warning
include_once(): Failed opening 'PINPOINT_PLUGIN_PATHlibrary/pinpoint-server.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/store-locator-software-for-website/library/pinpoint-actions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function getPinPointLocatorData() in wp-content/plugins/store-locator-software-for-website/templates/pinpoint-editstore.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/store-locator-software-for-website/templates/frontpage/showpinpointfrontend.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/store-locator-software-for-website/library/pinpoint-adminpage.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/store-locator-software-for-website/library/frontpage/performaction.php:2
- > PHP Warning
Use of undefined constant PINPOINT_PLUGIN_PATH - assumed 'PINPOINT_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/store-locator-software-for-website/library/pinpoint-adminpage.php on line 4
- > PHP Notice
Undefined variable: pinPointAccessKey in wp-content/plugins/store-locator-software-for-website/templates/pinpoint-addnewstore.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function getPinPointLocatorData() in wp-content/plugins/store-locator-software-for-website/templates/frontpage/showsearchform.php:6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: google, store, software, multiple store locator, product...
store-locator-software-for-website/wp_pinpoint_store_locator_plugin.php 85% from 13 tests
This is the main PHP file of "Store Locator Software for Website" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("store-locator-software-for-website.php" instead of "wp_pinpoint_store_locator_plugin.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 321 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,284 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 78 | 15 | 1,127 |
CSS | 2 | 3 | 1 | 103 |
JavaScript | 1 | 3 | 0 | 54 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
4 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Settings.png | 13.59KB | 7.64KB | ▼ 43.79% |
assets/Store Listing.png | 59.06KB | 32.86KB | ▼ 44.36% |
assets/Add New Store.png | 26.39KB | 13.66KB | ▼ 48.25% |
assets/Show On Frontend.png | 10.33KB | 5.80KB | ▼ 43.84% |