Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.54ms] Passed 4 tests
This is a short check of server-side resources used by Store Locator Plus® | Gravity Forms Locations
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.00 ▼0.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.03 ▼3.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.23 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.68 ▲4.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.08 ▲8.01 |
Server storage [IO: ▲3.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 208 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
fs_gdpr |
widget_theysaidso_widget |
can_compress_scripts |
fs_active_plugins |
widget_recent-posts |
fs_debug_mode |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Store Locator Plus® | Gravity Forms Locations: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼1.07 | 1.75 ▼0.18 | 43.44 ▲0.50 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼1.04 | 109.52 ▲7.78 | 39.62 ▼3.04 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.06 | 39.81 ▼3.88 | 36.36 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,528 ▼1 | 18.12 ▼0.16 | 662.26 ▲23.90 | 65.20 ▲5.19 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▲0.03 | 107.35 ▲6.42 | 47.00 ▲3.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- fs_debug_mode
- theysaidso_admin_options
- db_upgraded
- fs_gdpr
- fs_accounts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- fs_active_plugins
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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-gravity-forms-locations/include/module/ajax/SLP_Gravity_Forms_Locations_Ajax.php on line 4
- > 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-gravity-forms-locations/include/module/ui/SLP_Gravity_Forms_Locations_UI.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/slp-gravity-forms-locations/include/base/loader.php:5
- > 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-gravity-forms-locations/include/module/ui/SLP_Gravity_Forms_Locations_UI.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'DebugMyPluginPanel' not found in wp-content/plugins/slp-gravity-forms-locations/include/class.dmppanels.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/slp-gravity-forms-locations/include/slp-gfl-meta-box-config.php:3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/slp-gravity-forms-locations/include/base/loader.php on line 3
- > PHP Warning
require_once(SLPLUS_PLUGINDIR/include/base_class.ajax.php): failed to open stream: No such file or directory in wp-content/plugins/slp-gravity-forms-locations/include/module/ajax/SLP_Gravity_Forms_Locations_Ajax.php on line 4
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/slp-gravity-forms-locations/include/base/loader.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'SLPLUS_PLUGINDIR/include/base_class.activation.php' (include_path='.:/usr/share/php') in wp-content/plugins/slp-gravity-forms-locations/include/module/activation/SLP_Gravity_Forms_Locations_Activation.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
7 plugin tags: integration, gravity forms integration, google maps, locations, gravity forms...
slp-gravity-forms-locations/slp-gravity-forms-locations.php Passed 13 tests
"Store Locator Plus® | Gravity Forms Locations" version 6.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
126 characters long description:
SLP Gravity Forms Locations is an add-on pack for Store Locator Plus that supports adding basic locations using Gravity Forms.
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 plugin35,419 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 8,298 | 17,987 | 34,747 |
JavaScript | 4 | 75 | 100 | 346 |
PO File | 1 | 133 | 313 | 270 |
CSS | 14 | 10 | 12 | 56 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 77.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,332 | |
▷ Static methods | 195 | 14.64% |
▷ Public methods | 934 | 70.12% |
▷ Protected methods | 19 | 1.43% |
▷ Private methods | 379 | 28.45% |
Functions | 112 | |
▷ Named functions | 112 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 1.56KB | 0.59KB | ▼ 62.31% |
freemius/assets/img/slp-gravity-forms-locations.png | 64.50KB | 22.53KB | ▼ 65.08% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/edit-form-icon.png | 27.18KB | 10.27KB | ▼ 62.21% |