84% woo-smart-wishlist

Code Review | WPC Smart Wishlist for WooCommerce

WordPress plugin WPC Smart Wishlist for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-smart-wishlist
  • Plugin version: 4.7.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 4, 2018
  • Latest release: Nov 25, 2023
  • Number of updates: 172
  • Update frequency: every 12.5 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

70,000+ active /1,209,127 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.78ms] Passed 4 tests

This is a short check of server-side resources used by WPC Smart Wishlist for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0330.98 ▼8.64
Dashboard /wp-admin3.33 ▼0.0246.55 ▼11.21
Posts /wp-admin/edit.php3.44 ▲0.0948.88 ▲0.70
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.29 ▼7.96
Media Library /wp-admin/upload.php3.25 ▲0.0235.83 ▲5.12
About /wp-admin/admin.php?page=wpclever3.2230.32
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.5631.37

Server storage [IO: ▲0.74MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
woosw_page_id
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPC Smart Wishlist for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12014.67 ▼0.041.58 ▼0.0839.35 ▼8.53
Dashboard /wp-admin2,260 ▲805.60 ▼0.0292.23 ▼2.3882.67 ▲39.15
Posts /wp-admin/edit.php2,181 ▲811.98 ▼0.0039.85 ▲2.8136.98 ▲3.56
Add New Post /wp-admin/post-new.php1,753 ▲22722.63 ▼0.88705.00 ▲71.2538.88 ▼10.35
Media Library /wp-admin/upload.php1,471 ▲744.17 ▼0.0397.24 ▲0.1670.09 ▲28.80
About /wp-admin/admin.php?page=wpclever1,3872.1533.9633.52
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1340.1959.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • woosw_page_id
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpclever
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP Passed 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
The SRP test was a success

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: The official readme.txt might help

woo-smart-wishlist/wpc-smart-wishlist.php 92% from 13 tests

Analyzing the main PHP file in "WPC Smart Wishlist for WooCommerce" version 4.7.8
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-smart-wishlist.php" instead of "wpc-smart-wishlist.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
Everything looks great! No dangerous files found in this plugin10,786 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript128233474,584
PHP5427992,680
CSS12416702,164
PO File54875541,185
SVG400173

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity94.50
▷ Minimum class complexity1.00
▷ Maximum class complexity330.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods80
▷ Static methods1316.25%
▷ Public methods80100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin