89% jvm-woocommerce-wishlist

Code Review | Wishlist for WooCommerce

WordPress plugin Wishlist for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: jvm-woocommerce-w...
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Nov 26, 2022
  • Number of updates: 40
  • Update frequency: every 46.8 days
  • Top authors: jorisvanmontfort (85%)im_niloy (17.5%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /7,214 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.90ms] Passed 4 tests

Analyzing server-side resources used by Wishlist for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.90 ▼0.23
Dashboard /wp-admin3.32 ▼0.0247.37 ▼9.47
Posts /wp-admin/edit.php3.43 ▲0.0843.73 ▼1.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.61 ▼8.15
Media Library /wp-admin/upload.php3.24 ▲0.0238.13 ▲4.04

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Wishlist for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.41 ▼0.151.69 ▼0.0042.87 ▲1.31
Dashboard /wp-admin2,198 ▲265.56 ▼0.1983.80 ▼12.3637.62 ▼3.71
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0132.84 ▼5.5134.07 ▼1.76
Add New Post /wp-admin/post-new.php1,526 ▼1123.11 ▲4.85667.93 ▲63.1755.66 ▼16.27
Media Library /wp-admin/upload.php1,397 ▼34.22 ▼0.05108.77 ▲13.7447.80 ▲4.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can take inspiration from this readme.txt

jvm-woocommerce-wishlist/jvm-woocommerce-wishlist.php 92% from 13 tests

The main PHP script in "Wishlist for WooCommerce" version 1.3.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.0")

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
Good job! No executable or dangerous file extensions detected3,262 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP257721,4812,863
JavaScript26733174
JSON400164
CSS17949
SVG10012

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.39
Average class complexity25.23
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods175
▷ Static methods2614.86%
▷ Public methods13376.00%
▷ Protected methods74.00%
▷ Private methods3520.00%
Functions24
▷ Named functions1979.17%
▷ Anonymous functions520.83%
Constants3
▷ Global constants3100.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