84% woo-product-wishlist

Code Review | WooCommerce Product Wishlist

WordPress plugin WooCommerce Product Wishlist scored84%from 54 tests.

About plugin

  • Plugin page: woo-product-wishlist
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.2.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2019
  • Latest release: Aug 25, 2020
  • Number of updates: 4
  • Update frequency: every 102.8 days
  • Top authors: acespritech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,790 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: ▼3.51ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Product Wishlist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.78 ▼0.82
Dashboard /wp-admin3.31 ▲0.0046.13 ▲0.87
Posts /wp-admin/edit.php3.36 ▲0.0045.79 ▼5.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.11 ▼7.93
Media Library /wp-admin/upload.php3.23 ▲0.0034.29 ▲0.70

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WooCommerce Product Wishlist: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.071.50 ▼0.4740.73 ▼6.85
Dashboard /wp-admin2,206 ▲185.83 ▼0.07104.23 ▲2.4238.03 ▼6.35
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0235.89 ▼4.3133.86 ▼3.63
Add New Post /wp-admin/post-new.php1,542 ▲918.28 ▼4.96637.73 ▲4.8851.82 ▲3.02
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0296.44 ▼3.5741.70 ▼3.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/woo-product-wishlist/woocommerce-whishlist.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-product-wishlist/mail.php on line 79
    • > PHP Notice
      Undefined variable: image in wp-content/plugins/woo-product-wishlist/mail.php on line 79
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woo-product-wishlist/woocommerce-whishlist.php on line 11
    • > PHP Notice
      Undefined variable: first_name in wp-content/plugins/woo-product-wishlist/mail.php on line 119
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/woo-product-wishlist/mail.php:153
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/woo-product-wishlist/mail.php on line 153
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-product-wishlist/woocommerce-whishlist.php:13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-wishlist/woocommerce-whishlist.php on line 11

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: whishlist, woocommerce, product

woo-product-wishlist/woocommerce-whishlist.php 85% from 13 tests

The primary PHP file in "WooCommerce Product Wishlist" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-product-wishlist.php" instead of "woocommerce-whishlist.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
Everything looks great! No dangerous files found in this plugin910 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP210231660
JavaScript12516208
CSS13042

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin