89% yith-woocommerce-wishlist

Code Review | YITH WooCommerce Wishlist

WordPress plugin YITH WooCommerce Wishlist scored89%from 54 tests.

About plugin

  • Plugin page: yith-woocommerce-...
  • Plugin version: 3.27.0
  • PHP version: 7.4.16
  • WordPress compatibility: 8.1-6.4
  • WordPress version: 6.3.1
  • First release: May 29, 2013
  • Latest release: Nov 14, 2023
  • Number of updates: 269
  • Update frequency: every 14.2 days
  • Top authors: yithemes (100%)

Code review

54 tests

User reviews

240 reviews

Install metrics

900,000+ active /23,668,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by YITH WooCommerce Wishlist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.97 ▼8.51
Dashboard /wp-admin3.31 ▼0.0349.70 ▼14.80
Posts /wp-admin/edit.php3.36 ▲0.0147.44 ▲4.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.93 ▲6.01
Media Library /wp-admin/upload.php3.24 ▲0.0131.68 ▲0.72

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 411 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
yit_recently_activated
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for YITH WooCommerce Wishlist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲2414.22 ▼0.121.57 ▼0.3736.65 ▼7.15
Dashboard /wp-admin2,201 ▲275.59 ▲0.0190.85 ▼12.4341.65 ▼3.04
Posts /wp-admin/edit.php2,110 ▲102.03 ▼0.0642.11 ▲5.2438.10 ▲2.18
Add New Post /wp-admin/post-new.php1,541 ▲1525.23 ▲1.90606.04 ▼71.1663.01 ▲2.04
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0196.71 ▼0.0240.71 ▼1.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • yit_recently_activated
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: products, yit, shop, shop wishlist, woocommerce...

yith-woocommerce-wishlist/init.php 77% from 13 tests

This is the main PHP file of "YITH WooCommerce Wishlist" version 3.27.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "8.1")
  • Description: The description should be shorter than 140 characters (currently 340 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yith-woocommerce-wishlist.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin73,878 lines of code in 323 files:
LanguageFilesBlank linesComment linesLines of code
PO File278,65111,89322,830
PHP2004,29211,01222,121
CSS322,10736313,313
JavaScript511,7611,24011,746
SVG9012,975
JSON100718
Markdown1520116
XML212959

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity47.80
▷ Minimum class complexity1.00
▷ Maximum class complexity336.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes44
▷ Abstract classes12.27%
▷ Concrete classes4397.73%
▷ Final classes00.00%
Methods667
▷ Static methods9313.94%
▷ Public methods57185.61%
▷ Protected methods6910.34%
▷ Private methods274.05%
Functions177
▷ Named functions16794.35%
▷ Anonymous functions105.65%
Constants20
▷ Global constants1995.00%
▷ Class constants15.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-fw/assets/images/colorbox/border1.png0.61KB0.82KB0.00%
plugin-fw/assets/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png0.07KB0.08KB0.00%
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.08KB0.10KB0.00%
plugin-fw/assets/css/jquery-ui/images/ui-icons_222222_256x240.png3.69KB4.18KB0.00%