78% wc-product-likes-comments

Code Review | Woo Helper

WordPress plugin Woo Helper scored78%from 54 tests.

About plugin

  • Plugin page: wc-product-likes-...
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: May 26, 2023
  • Number of updates: 44
  • Update frequency: every 23.8 days
  • Top authors: sumitsingh (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

40+ active /1,129 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Woo Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.69 ▼1.13
Dashboard /wp-admin3.33 ▲0.0244.69 ▼7.20
Posts /wp-admin/edit.php3.38 ▲0.0247.77 ▼0.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.25 ▼9.55
Media Library /wp-admin/upload.php3.25 ▲0.0234.23 ▲2.67

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 16 new options
New tables
wp_wlt_product_likes
New WordPress options
wlt_product_likes_not_logged_in
wlt_product_likes_account
wlt_product_likes_products
can_compress_scripts
wlt_product_likes_enable
theysaidso_admin_options
wlt_product_likes_archives
wlt_product_likes_total
widget_recent-comments
wlt_product_comments_enable
...

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.371.78 ▲0.1437.98 ▼0.94
Dashboard /wp-admin2,200 ▲125.86 ▲0.96103.84 ▼5.5439.73 ▼2.59
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0139.62 ▼0.4234.95 ▼0.59
Add New Post /wp-admin/post-new.php1,534 ▲2018.35 ▲0.70649.70 ▲19.4967.56 ▲10.02
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.03100.44 ▲2.7440.35 ▼0.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wlt_product_likes
  • Zombie WordPress options detected upon uninstall: 16 options
    • wlt_product_likes_enable
    • wlt_product_likes_styles
    • theysaidso_admin_options
    • wlt_product_likes_account
    • wlt_product_likes_total
    • wlt_product_likes_products
    • db_upgraded
    • widget_recent-comments
    • wlt_product_likes_icon
    • wlt_product_comments_enable
    • ...

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

wc-product-likes-comments/wlt-product-likes.php 62% from 13 tests

This is the main PHP file of "Woo Helper" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-product-likes-comments.php" instead of "wlt-product-likes.php")
  • Description: The description should be shorter than 140 characters (currently 144 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.0.0")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin616 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7348120616

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity10.14
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/unlike.png1.43KB1.29KB▼ 9.70%
assets/comments.png1.42KB0.93KB▼ 34.62%
assets/heart.png1.09KB0.73KB▼ 32.86%