89% yith-woocommerce-waiting-list

Code Review | YITH WooCommerce Waitlist

WordPress plugin YITH WooCommerce Waitlist scored89%from 54 tests.

About plugin

  • Plugin page: yith-woocommerce-...
  • Plugin version: 2.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 8.1-6.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Nov 10, 2023
  • Number of updates: 139
  • Update frequency: every 22.7 days
  • Top authors: yithemes (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

5,000+ active /175,837 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
Installer ran successfully

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

This is a short check of server-side resources used by YITH WooCommerce Waitlist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0231.93 ▼9.40
Dashboard /wp-admin3.33 ▼0.0245.71 ▼18.05
Posts /wp-admin/edit.php3.38 ▲0.0245.79 ▲1.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.32 ▼3.41
Media Library /wp-admin/upload.php3.25 ▲0.0234.97 ▼1.30

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 397 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
yit_recently_activated
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for YITH WooCommerce Waitlist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.27 ▼0.071.77 ▲0.0539.42 ▼4.31
Dashboard /wp-admin2,204 ▲335.58 ▼0.0594.33 ▼6.9840.14 ▼5.37
Posts /wp-admin/edit.php2,107 ▲101.95 ▼0.0440.49 ▲2.7738.19 ▲4.83
Add New Post /wp-admin/post-new.php1,550 ▲2425.08 ▲2.29646.57 ▼34.1461.96 ▼7.05
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.0098.94 ▲0.6741.80 ▼1.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • yit_recently_activated
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: You can take inspiration from this readme.txt

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

The entry point to "YITH WooCommerce Waitlist" version 2.9.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 297 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("6.2" instead of "8.1")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("yith-woocommerce-waiting-list.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected49,701 lines of code in 337 files:
LanguageFilesBlank linesComment linesLines of code
PHP1943,2336,66417,467
JavaScript711,5221,04710,453
CSS201,84425610,082
PO File81,9782,6115,314
Sass34652153,432
SVG9012,940
XML10013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity35.28
▷ Minimum class complexity1.00
▷ Maximum class complexity336.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes12.56%
▷ Concrete classes3897.44%
▷ Final classes00.00%
Methods452
▷ Static methods5712.61%
▷ Public methods37783.41%
▷ Protected methods5311.73%
▷ Private methods224.87%
Functions166
▷ Named functions15895.18%
▷ Anonymous functions84.82%
Constants22
▷ Global constants2195.45%
▷ Class constants14.55%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-fw/assets/images/double-sidebar.png0.95KB0.12KB▼ 87.73%
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png0.09KB0.16KB0.00%
assets/images/yithemes-icon.png0.43KB0.42KB▼ 2.03%
plugin-fw/assets/images/sidebar-right.png0.95KB0.11KB▼ 87.91%
plugin-fw/assets/css/jquery-ui/images/ui-icons_2e83ff_256x240.png3.69KB4.18KB0.00%