84% woo-wishlist

Code Review | WooCommerce WishList

WordPress plugin WooCommerce WishList scored 84% from 54 tests.

About plugin

  • Plugin page: woo-wishlist
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2018
  • Latest release: Sep 4, 2023
  • Number of updates: 15
  • Update frequency: every 127.1 days
  • Top authors: ashutoshmagnigeeks (73.33%)Magnigenie (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 4,351 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.44ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce WishList
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.28 ▲4.46
Dashboard /wp-admin3.31 ▲0.0054.26 ▲2.34
Posts /wp-admin/edit.php3.36 ▲0.0070.53 ▲15.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.78 ▼15.91
Media Library /wp-admin/upload.php3.23 ▲0.0035.42 ▼0.65

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
woowl-page-id
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce WishList
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲2913.80 ▲0.552.09 ▲0.3942.04 ▼4.00
Dashboard /wp-admin2,206 ▼05.91 ▲0.03107.25 ▼1.4537.56 ▼8.26
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0340.66 ▲1.9537.08 ▲1.93
Add New Post /wp-admin/post-new.php1,533 ▼923.24 ▲4.73681.24 ▲34.6953.39 ▼0.65
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0399.05 ▼12.6343.20 ▼2.85

Uninstaller [IO: ✅] [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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • woowl-page-id
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-wishlist/includes/class-wc-settings-wishlist.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: wishlist, woocommerce

woo-wishlist/woo-wishlist.php Passed 13 tests

The main PHP file in "WooCommerce WishList" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
A plugin to add wishlist on woocommerce products.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin857 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48393857

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity39.50
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity5.05
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected