73% store-locator-le

Code Review | Store Locator Plus® for WordPress

WordPress plugin Store Locator Plus® for WordPress scored73%from 54 tests.

About plugin

  • Plugin page: store-locator-le
  • Plugin version: 2311.17.01
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4.1
  • WordPress version: 6.3.1
  • First release: May 19, 2011
  • Latest release: Nov 21, 2023
  • Number of updates: 590
  • Update frequency: every 7.8 days
  • Top authors: charlestonsw (88.98%)cybersprocket (11.19%)

Code review

54 tests

User reviews

190 reviews

Install metrics

5,000+ active /692,865 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲2.21MB] [CPU: ▲130.80ms] 75% from 4 tests

This is a short check of server-side resources used by Store Locator Plus® for WordPress
Please have a look at the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,467.04ms on /wp-admin/admin.php?page=slp_experience)
PageMemory (MB)CPU Time (ms)
Home /5.09 ▲1.62182.98 ▲141.78
Dashboard /wp-admin5.76 ▲2.41185.27 ▲123.71
Posts /wp-admin/edit.php5.81 ▲2.45177.41 ▲128.36
Add New Post /wp-admin/post-new.php8.31 ▲2.42227.12 ▲129.36
Media Library /wp-admin/upload.php5.62 ▲2.38174.66 ▲141.94
Info /wp-admin/admin.php?page=slp_info5.59187.22
General /wp-admin/admin.php?page=slp_general5.77168.94
Settings /wp-admin/admin.php?page=slp_experience7.431,467.04
Locations /wp-admin/admin.php?page=slp_manage_locations5.84184.90

Server storage [IO: ▲10.58MB] [DB: ▲0.40MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 360 new files
Database: 2 new tables, 9 new options
New tables
wp_store_locator
wp_slp_extendo_meta
New WordPress options
theysaidso_admin_options
csl-slplus-options
csl-slplus-installed_base_version
widget_theysaidso_widget
can_compress_scripts
csl-slplus-options_nojs
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Store Locator Plus® for WordPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13214.26 ▼0.451.69 ▲0.0343.41 ▼2.02
Dashboard /wp-admin2,290 ▲1105.64 ▼0.0190.53 ▼7.7041.05 ▼4.07
Posts /wp-admin/edit.php2,198 ▲982.01 ▲0.0555.39 ▲15.4738.03 ▲2.75
Add New Post /wp-admin/post-new.php1,715 ▲18921.51 ▼1.39589.24 ▼96.9156.99 ▼1.80
Media Library /wp-admin/upload.php1,492 ▲954.27 ▲0.1199.75 ▼0.3944.38 ▼0.04
Info /wp-admin/admin.php?page=slp_info1,5966.02107.61118.21
General /wp-admin/admin.php?page=slp_general1,7383.6874.65170.66
Settings /wp-admin/admin.php?page=slp_experience4,9795.1595.58217.76
Locations /wp-admin/admin.php?page=slp_manage_locations2,10013.67258.6799.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.40MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_slp_extendo_meta
    • wp_store_locator
  • The uninstall procedure has failed, leaving 9 options in the database
    • can_compress_scripts
    • db_upgraded
    • csl-slplus-options_nojs
    • csl-slplus-options
    • widget_theysaidso_widget
    • widget_recent-comments
    • csl-slplus-installed_base_version
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SLPlus_BaseClass_Object' not found in wp-content/plugins/store-locator-le/include/unit/SLP_Country.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'SLP_UI_Shortcode' not found in wp-content/plugins/store-locator-le/include/module/ui/SLP_UI_Shortcode_slp_location.php:6
    • > 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/store-locator-le/include/module/settings/SLP_Settings_Group.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'SLPLUS_PLUGINDIRinclude/module/admin_tabs/SLP_BaseClass_Admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/store-locator-le/include/base_class.admin.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'SLPlus_BaseClass_Object' not found in wp-content/plugins/store-locator-le/include/unit/SLP_Notice.php:15
    • > PHP Warning
      require_once(SLPLUS_PLUGINDIRinclude/base_class.object.php): failed to open stream: No such file or directory in wp-content/plugins/store-locator-le/include/SLPlus.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'SLP_UI_Shortcode' not found in wp-content/plugins/store-locator-le/include/module/ui/SLP_UI_Shortcode_slp_option.php:5
    • > PHP Warning
      require_once(SLPLUS_PLUGINDIRinclude/module/settings/SLP_Settings_Group.php): failed to open stream: No such file or directory in wp-content/plugins/store-locator-le/include/module/settings/SLP_Settings_Section.php on line 4
    • > 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/store-locator-le/include/base_class.admin.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'SLPlus_BaseClass_Object' not found in wp-content/plugins/store-locator-le/include/unit/SLP_Web_Link.php:24

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 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #0, #0, #0, #0, #0, #0, #0, #0, #0 in store-locator-le/assets to your readme.txt
  • Screenshots: These screenshots do not have images: #1 (Big Map Plugin Style on Big Map WordPress Theme), #2 (Manage Locations Interface), #3 (Search Settings with [Experience Add On](https://wordpress.storelocatorplus.com/product/experience/)), #4 (Map Settings), #5 (Plugin Style Selector), #6 (Cluster Markers with [Premier Add On](https://wordpress.storelocatorplus.com/product/premier-subscription/)), #7 (Reports [Power Add On](https://wordpress.storelocatorplus.com/product/power/)), #8 (Bulk Import with [Power Add On](https://wordpress.storelocatorplus.com/product/power/)), #9 (Directions from results link)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

store-locator-le/store-locator-le.php Passed 13 tests

The primary PHP file in "Store Locator Plus® for WordPress" version 2311.17.01 is used by WordPress to initiate all plugin functionality
95 characters long description:
Add a location finder or directory to your site in minutes. Extensive add-on library available!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected73,004 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript349,5609,89258,031
PHP972,6696,86012,766
Sass5278771,319
SVG100565
Vuejs Component251168
CSS15165477
XML15553
JSON20025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.55
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes89
▷ Abstract classes11.12%
▷ Concrete classes8898.88%
▷ Final classes00.00%
Methods701
▷ Static methods50.71%
▷ Public methods45164.34%
▷ Protected methods598.42%
▷ Private methods19127.25%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants37
▷ Global constants1951.35%
▷ Class constants1848.65%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
158 PNG files occupy 0.38MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/jquery/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
css/images/jquery-ui-icons_888888_256x240.png6.93KB4.18KB▼ 39.62%
css/jquery/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
images/icons/shape_lightblue_martini.png0.88KB1.07KB0.00%
css/jquery/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%