84% wplocalplus-lite

Code Review | WordPress Directory Plugin For Business Listings - WP Local Plus

WordPress plugin WordPress Directory Plugin For Business Listings - WP Local Plus scored84%from 54 tests.

About plugin

  • Plugin page: wplocalplus-lite
  • Plugin version: 1.4.7
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 23, 2019
  • Latest release: Sep 21, 2023
  • Number of updates: 24
  • Update frequency: every 59.8 days
  • Top authors: WPEka Club (91.67%)smritichaturvedi (8.33%)ratneshk (8.33%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲4.02MB] [CPU: ▲24.47ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Directory Plugin For Business Listings - WP Local Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /7.27 ▲3.8265.53 ▲22.19
Dashboard /wp-admin7.39 ▲4.0873.65 ▲24.93
Posts /wp-admin/edit.php7.45 ▲4.1083.07 ▲35.52
Add New Post /wp-admin/post-new.php10.27 ▲4.39115.42 ▲18.57
Media Library /wp-admin/upload.php7.33 ▲4.1067.70 ▲32.19
Settings /wp-admin/admin.php?page=wplocalplus-lite7.2163.45
Place Types /wp-admin/edit-tags.php?taxonomy=wplocal_place_type&post_type=wplocal_places7.3262.93
Reviews /wp-admin/edit.php?post_type=wplocal_reviews7.3062.18
Places /wp-admin/edit.php?post_type=wplocal_places7.3058.11
Locations /wp-admin/edit-tags.php?taxonomy=wplocal_location&post_type=wplocal_places7.3261.05

Server storage [IO: ▲9.42MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 314 new files
Database: no new tables, 9 new options
New WordPress options
wplocalplus_1.0
widget_theysaidso_widget
widget_recent-posts
analytics_activation_redirect_wplocalplus-lite
acf_version
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Directory Plugin For Business Listings - WP Local Plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,187 ▲45224.95 ▲10.3045.49 ▲43.6836.21 ▼16.76
Dashboard /wp-admin2,311 ▲12611.74 ▲6.86152.09 ▲35.8746.07 ▲0.47
Posts /wp-admin/edit.php2,223 ▲13710.44 ▲8.4685.11 ▲48.4035.17 ▲0.11
Add New Post /wp-admin/post-new.php6,629 ▲5,08728.62 ▲10.24900.78 ▲255.3447.47 ▼9.07
Media Library /wp-admin/upload.php1,641 ▲25312.51 ▲8.30277.05 ▲175.8791.91 ▲48.67
Settings /wp-admin/admin.php?page=wplocalplus-lite99810.0568.4132.81
Place Types /wp-admin/edit-tags.php?taxonomy=wplocal_place_type&post_type=wplocal_places1,42411.5579.4529.82
Reviews /wp-admin/edit.php?post_type=wplocal_reviews1,23910.4371.9327.11
Places /wp-admin/edit.php?post_type=wplocal_places1,27110.3571.9928.58
Locations /wp-admin/edit-tags.php?taxonomy=wplocal_location&post_type=wplocal_places1,42711.5978.3729.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • wplocalplus_1.0
    • widget_theysaidso_widget
    • acf_version
    • analytics_activation_redirect_wplocalplus-lite
    • 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/admin/views/html-admin-page-upgrade-network.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/forms/form-comment.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_deprecated_filter() in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/deprecated.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/fields/class-acf-field-number.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/fields/class-acf-field-wysiwyg.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/forms/form-taxonomy.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_render_field_wrap() in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/admin/views/field-group-options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/upgrades.php:455
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/fields/class-acf-field-select.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wplocalplus-lite/includes/libraries/acf/includes/fields/class-acf-field-page_link.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Requires at least: Version format is invalid
You can look at the official readme.txt

wplocalplus-lite/wplocalplus-lite.php Passed 13 tests

This is the main PHP file of "WordPress Directory Plugin For Business Listings - WP Local Plus" version 1.4.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
35 characters long description:
WordPress Business Directory Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin118,517 lines of code in 229 files:
LanguageFilesBlank linesComment linesLines of code
PO File3124,10941,34149,290
JavaScript256,2156,40541,420
PHP1498,64219,09521,089
CSS215477626,581
Markdown2710131
SVG1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.61
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes109
▷ Abstract classes21.83%
▷ Concrete classes10798.17%
▷ Final classes00.00%
Methods811
▷ Static methods60.74%
▷ Public methods78897.16%
▷ Protected methods00.00%
▷ Private methods232.84%
Functions445
▷ Named functions44199.10%
▷ Anonymous functions40.90%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.31MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/libraries/acf/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%
assets/libraries/fancybox/fancybox/fancybox_overlay.png0.98KB0.09KB▼ 90.43%
assets/libraries/fancybox/fancybox/fancy_shadow_se.png0.34KB0.48KB0.00%
assets/libraries/jscolor/hv.png2.80KB7.32KB0.00%
assets/libraries/fancybox/fancybox/fancy_shadow_w.png0.10KB0.18KB0.00%