84% woo-product-hover-show-info-tooltip

Code Review | Woocommerce Product Hover Show ToolTip Info

WordPress plugin Woocommerce Product Hover Show ToolTip Info scored84%from 54 tests.

About plugin

  • Plugin page: woo-product-hover...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2019
  • Latest release: Apr 22, 2021
  • Number of updates: 8
  • Update frequency: every 105.1 days
  • Top authors: duongcuong96 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /13,653 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Woocommerce Product Hover Show ToolTip Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.87 ▼6.12
Dashboard /wp-admin3.31 ▲0.0147.38 ▼1.32
Posts /wp-admin/edit.php3.36 ▲0.0047.80 ▲1.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.75 ▼7.38
Media Library /wp-admin/upload.php3.23 ▲0.0034.95 ▼0.53

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

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

Browser metrics Passed 4 tests

Woocommerce Product Hover Show ToolTip Info: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.24 ▼1.545.03 ▲3.1445.02 ▼0.94
Dashboard /wp-admin2,206 ▲184.89 ▼0.03108.14 ▼8.6437.90 ▼7.59
Posts /wp-admin/edit.php2,092 ▲61.99 ▲0.0035.14 ▼3.0532.61 ▼3.02
Add New Post /wp-admin/post-new.php1,533 ▼1023.13 ▼0.27604.13 ▼38.4850.56 ▼0.85
Media Library /wp-admin/upload.php1,385 ▼64.20 ▲0.0199.26 ▼1.0341.22 ▼1.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-product-hover-show-info-tooltip/cdc-product-hover.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: woocommerce, tooltip

woo-product-hover-show-info-tooltip/cdc-product-hover.php 85% from 13 tests

The principal PHP file in "Woocommerce Product Hover Show ToolTip Info" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "2.0.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-product-hover-show-info-tooltip.php" instead of "cdc-product-hover.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin107 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS15157
JavaScript14127
Markdown110013
PHP133110

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin