89% hover-product-details

Code Review | Hover Product Details

WordPress plugin Hover Product Details scored89%from 54 tests.

About plugin

  • Plugin page: hover-product-det...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.4
  • WordPress version: 6.3.1
  • First release: Sep 13, 2018
  • Latest release: Apr 3, 2020
  • Number of updates: 13
  • Update frequency: every 43.8 days
  • Top authors: webappdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,279 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 gracefully, with no errors

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

Analyzing server-side resources used by Hover Product Details
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.90 ▼3.28
Dashboard /wp-admin3.33 ▲0.0250.37 ▼3.63
Posts /wp-admin/edit.php3.38 ▲0.0248.67 ▼7.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.28 ▼11.13
Media Library /wp-admin/upload.php3.25 ▲0.0236.13 ▲0.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Hover Product Details: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.68 ▼0.635.86 ▲3.9139.64 ▼2.87
Dashboard /wp-admin2,206 ▲185.91 ▲1.02105.51 ▼14.0738.42 ▼8.55
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0539.96 ▲4.4834.77 ▼0.21
Add New Post /wp-admin/post-new.php1,533 ▼923.08 ▲4.61663.51 ▲7.5760.93 ▲4.04
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0597.30 ▼9.0941.03 ▼2.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: information, ecommerce

hover-product-details/webappdesign-hover-product-details.php 85% from 13 tests

The entry point to "Hover Product Details" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hover-product-details.php" instead of "webappdesign-hover-product-details.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected129 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131658
CSS111038
JavaScript15033

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.48
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin