10% free-woocommerce-wishlist

Code Review | Free WooCommerce Wishlist

WordPress plugin Free WooCommerce Wishlist scored10%from 54 tests.

About plugin

  • Plugin page: free-woocommerce-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 3, 2015
  • Latest release: Aug 3, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: alancf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,408 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/free-woocommerce-wishlist/includes/class_wishlist.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; FWWL_Wishlist has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼63.82ms] Passed 4 tests

An overview of server-side resources used by Free WooCommerce Wishlist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.96 ▼41.74
Dashboard /wp-admin2.09 ▼1.254.84 ▼64.40
Posts /wp-admin/edit.php2.10 ▼1.265.61 ▼46.46
Add New Post /wp-admin/post-new.php2.10 ▼3.796.08 ▼102.68
Media Library /wp-admin/upload.php2.10 ▼1.135.85 ▼32.89

Server storage [IO: ▲0.02MB] [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: 10 new files
Database: 1 new table, 6 new options
New tables
wp_fwwl_wishlists
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Free WooCommerce Wishlist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13913.42 ▼0.519.05 ▲7.2740.45 ▼2.96
Dashboard /wp-admin2,195 ▲155.62 ▼0.0193.78 ▲5.0537.45 ▼3.46
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0135.67 ▼1.0433.91 ▼0.61
Add New Post /wp-admin/post-new.php1,526 ▼123.31 ▲0.27656.11 ▲4.9661.20 ▼0.69
Media Library /wp-admin/upload.php1,391 ▼94.17 ▲0.0698.85 ▼19.4842.86 ▼8.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/free-woocommerce-wishlist/includes/class_wishlist.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; FWWL_Wishlist has a deprecated constructor
  • Zombie tables were found after uninstall: 1 table
    • wp_fwwl_wishlists
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-woocommerce-wishlist/free-woocommerce-wishlist.php:43
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/free-woocommerce-wishlist/free-woocommerce-wishlist.php on line 36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: wishlist, free, woocommerce

free-woocommerce-wishlist/free-woocommerce-wishlist.php Passed 13 tests

Analyzing the main PHP file in "Free WooCommerce Wishlist" version 1.0.0
58 characters long description:
A simple and free wishlist plugin to use with WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin348 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP28719170
CSS111079
PO File2222670
JavaScript12029

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.20
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin