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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.89ms] Passed 4 tests
A check of server-side resources used by Store Locator Plus® | Extenders
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.60 ▼2.03 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.52 ▼6.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.53 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.40 ▼17.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.56 ▲4.65 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 407 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
fs_active_plugins |
fs_gdpr |
db_upgraded |
fs_debug_mode |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
fs_accounts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Store Locator Plus® | Extenders
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.36 | 1.71 ▲0.15 | 39.50 ▲0.28 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▼0.05 | 94.05 ▼7.33 | 38.01 ▼0.34 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.00 ▼0.03 | 34.22 ▼5.65 | 34.90 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,513 ▼20 | 17.65 ▼5.52 | 641.68 ▲43.13 | 56.95 ▲7.35 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.09 ▼0.11 | 104.36 ▼0.53 | 45.23 ▼1.24 |
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 10 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- fs_gdpr
- fs_active_plugins
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(SLPLUS_PLUGINDIR/include/base_class.userinterface.php): failed to open stream: No such file or directory in wp-content/plugins/slp-extenders/include/module/ui/SLP_Extenders_UI_User_Managed.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'SLPLUS_PLUGINDIR/include/base_class.userinterface.php' (include_path='.:/usr/share/php') in wp-content/plugins/slp-extenders/include/module/ui/SLP_Extenders_UI.php on line 3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/slp-extenders/include/base/loader.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/slp-extenders/include/base/loader.php:5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/slp-extenders/include/module/adminui/SLP_Extenders_AdminUI_UserManager_Table.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/slp-extenders/include/module/adminui/SLP_Extenders_AdminUI_UserManager_Table.php on line 2
- > PHP Warning
Use of undefined constant SLPLUS_PLUGINDIR - assumed 'SLPLUS_PLUGINDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/slp-extenders/include/module/ui/SLP_Extenders_UI_User_Managed.php on line 2
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/slp-extenders/include/base/loader.php on line 3
- > PHP Warning
require_once(SLPLUS_PLUGINDIR/include/base_class.userinterface.php): failed to open stream: No such file or directory in wp-content/plugins/slp-extenders/include/module/ui/SLP_Extenders_UI.php on line 3
- > PHP Warning
Use of undefined constant SLPLUS_PLUGINDIR - assumed 'SLPLUS_PLUGINDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/slp-extenders/include/module/ui/SLP_Extenders_UI.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in slp-extenders/assets to your readme.txt
slp-extenders/slp-extenders.php 92% from 13 tests
Analyzing the main PHP file in "Store Locator Plus® | Extenders" version 6.1.1
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 158 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
Everything looks great! No dangerous files found in this plugin39,517 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 8,377 | 18,617 | 35,308 |
JavaScript | 8 | 358 | 200 | 2,705 |
CSS | 20 | 131 | 133 | 802 |
PO File | 1 | 353 | 759 | 702 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 74.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,404 | |
▷ Static methods | 196 | 13.96% |
▷ Public methods | 993 | 70.73% |
▷ Protected methods | 20 | 1.42% |
▷ Private methods | 391 | 27.85% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
192 PNG files occupy 0.63MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/event-icons/Commerce.png | 3.09KB | 2.08KB | ▼ 32.59% |
images/event-icons/Red pin.png | 2.41KB | 1.86KB | ▼ 23.03% |
images/event-icons/Sticker.png | 2.86KB | 1.94KB | ▼ 32.33% |
images/event-icons/Goods.png | 2.44KB | 1.76KB | ▼ 27.89% |
images/event-icons/User group.png | 3.15KB | 1.80KB | ▼ 42.76% |