84% product-description-on-hover-woocommerce

Code Review | WooCommerce Product Description

WordPress plugin WooCommerce Product Description scored84%from 54 tests.

About plugin

  • Plugin page: product-descripti...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Dec 10, 2015
  • Latest release: May 26, 2016
  • Number of updates: 5
  • Update frequency: every 33.8 days
  • Top authors: rohilmistry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,814 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.00MB] [CPU: ▼4.79ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Product Description
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.83 ▲0.95
Dashboard /wp-admin3.31 ▼0.0348.65 ▼11.59
Posts /wp-admin/edit.php3.37 ▲0.0145.69 ▼5.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.81 ▼0.72
Media Library /wp-admin/upload.php3.24 ▲0.0136.28 ▼1.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Product Description
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.66 ▲0.381.72 ▲0.1744.25 ▼1.84
Dashboard /wp-admin2,203 ▲265.57 ▼0.0286.10 ▼1.4443.04 ▲2.58
Posts /wp-admin/edit.php2,108 ▲81.99 ▲0.0035.30 ▼0.0734.72 ▲4.31
Add New Post /wp-admin/post-new.php1,534 ▲623.20 ▼0.04596.97 ▼102.6050.31 ▼1.50
Media Library /wp-admin/upload.php1,411 ▲114.20 ▲0.0594.45 ▼20.1841.13 ▼5.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/product-description-on-hover-woocommerce/woo_description.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: description, tooltip, ecommerce, woocommerce description, hover...

product-description-on-hover-woocommerce/woo_description.php 92% from 13 tests

The main file in "WooCommerce Product Description" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("product-description-on-hover-woocommerce.php" instead of "woo_description.php")

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 plugin1,267 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4243197921
CSS2249242
PHP347112104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 images were found in this plugin