83% slp-extenders

Code Review | Store Locator Plus® | Extenders

WordPress plugin Store Locator Plus® | Extenders scored 83% from 54 tests.

About plugin

  • Plugin page: slp-extenders
  • Plugin version: 6.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2020
  • Latest release: Dec 29, 2022
  • Number of updates: 16
  • Update frequency: every 48.7 days
  • Top authors: DeBAAT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 526 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.60 ▼2.03
Dashboard /wp-admin3.31 ▲0.0145.52 ▼6.46
Posts /wp-admin/edit.php3.36 ▲0.0047.53 ▼1.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.40 ▼17.59
Media Library /wp-admin/upload.php3.23 ▲0.0036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.361.71 ▲0.1539.50 ▲0.28
Dashboard /wp-admin2,203 ▲155.80 ▼0.0594.05 ▼7.3338.01 ▼0.34
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0334.22 ▼5.6534.90 ▼2.84
Add New Post /wp-admin/post-new.php1,513 ▼2017.65 ▼5.52641.68 ▲43.1356.95 ▲7.35
Media Library /wp-admin/upload.php1,388 ▼34.09 ▼0.11104.36 ▼0.5345.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP1348,37718,61735,308
JavaScript83582002,705
CSS20131133802
PO File1353759702

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 code0.60
Average class complexity74.68
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes00.00%
Methods1,404
▷ Static methods19613.96%
▷ Public methods99370.73%
▷ Protected methods201.42%
▷ Private methods39127.85%
Functions103
▷ Named functions103100.00%
▷ Anonymous functions00.00%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.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
FileSize - originalSize - compressedSavings
images/event-icons/Commerce.png3.09KB2.08KB▼ 32.59%
images/event-icons/Red pin.png2.41KB1.86KB▼ 23.03%
images/event-icons/Sticker.png2.86KB1.94KB▼ 32.33%
images/event-icons/Goods.png2.44KB1.76KB▼ 27.89%
images/event-icons/User group.png3.15KB1.80KB▼ 42.76%