78% wish-wait-list-for-woocommerce

Code Review | Wishlist and Waitlist for WooCommerce

WordPress plugin Wishlist and Waitlist for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: wish-wait-list-fo...
  • Plugin version: 3.5.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 15, 2016
  • Latest release: Sep 21, 2023
  • Number of updates: 64
  • Update frequency: every 40.6 days
  • Top authors: RazyRx (54.69%)dholovnia (46.88%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /11,212 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.55MB] [CPU: ▲9.29ms] Passed 4 tests

Analyzing server-side resources used by Wishlist and Waitlist for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.11 ▲1.6057.53 ▲13.54
Dashboard /wp-admin4.94 ▲1.5668.33 ▼1.24
Posts /wp-admin/edit.php4.99 ▲1.5967.81 ▲20.98
Add New Post /wp-admin/post-new.php7.46 ▲1.53101.77 ▲3.87
Media Library /wp-admin/upload.php4.80 ▲1.5362.35 ▲27.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 100 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
berocket_admin_notices_rate_stars
br-wish_list-options
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Wishlist and Waitlist for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9214.72 ▼0.002.14 ▲0.3940.84 ▼3.53
Dashboard /wp-admin2,216 ▲365.53 ▼0.0693.64 ▲1.2576.74 ▲30.40
Posts /wp-admin/edit.php2,144 ▲442.06 ▲0.0337.40 ▼0.5235.31 ▼0.19
Add New Post /wp-admin/post-new.php1,593 ▲6523.97 ▲1.08649.35 ▼38.6350.37 ▼9.39
Media Library /wp-admin/upload.php1,439 ▲394.32 ▲0.14102.94 ▲0.4877.24 ▲28.38

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • berocket_admin_notices_rate_stars
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • berocket_key_activated_plugins
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wish-wait-list-for-woocommerce/templates/wish_wait.php
  • 55× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/includes/admin_notices.php:797
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/includes/widget.php:8
    • > PHP Notice
      Undefined variable: subject in wp-content/plugins/wish-wait-list-for-woocommerce/templates/email/product_instock.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/libraries/tippy.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/libraries/wpml_compatibility.php:2
    • > PHP Notice
      Undefined variable: product_type in wp-content/plugins/wish-wait-list-for-woocommerce/templates/widget.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/sale/sale.php:4
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/wish-wait-list-for-woocommerce/templates/email/product_instock.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wish-wait-list-for-woocommerce/berocket/includes/settings_fields.php:5
    • > PHP Notice
      Undefined variable: product_count in wp-content/plugins/wish-wait-list-for-woocommerce/templates/widget.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (35 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

wish-wait-list-for-woocommerce/wish-list.php 92% from 13 tests

The primary PHP file in "Wishlist and Waitlist for WooCommerce" version 3.5.8.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wish-wait-list-for-woocommerce.php" instead of "wish-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin21,059 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
CSS152,515769,756
PHP474502,1209,004
JavaScript743581,824
PO File2194216430
XML20045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity43.36
▷ Minimum class complexity1.00
▷ Maximum class complexity240.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods403
▷ Static methods13834.24%
▷ Public methods403100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
berocket/libraries/addons/default.png3.87KB2.63KB▼ 31.94%
berocket/assets/css/mail.png2.59KB1.92KB▼ 26.02%
berocket/assets/images/submenu-icon-a.png0.54KB0.48KB▼ 10.20%
berocket/includes/ico.png1.90KB1.41KB▼ 25.89%
berocket/libraries/templates/default.png3.87KB2.63KB▼ 31.94%