84% image-content-show-hover

Code Review | Image Style Hover - Displays content when you hover on image

WordPress plugin Image Style Hover - Displays content when you hover on image scored84%from 54 tests.

About plugin

  • Plugin page: image-content-sho...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Aug 5, 2023
  • Number of updates: 13
  • Update frequency: every 177.8 days
  • Top authors: DanielRiera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Image Style Hover - Displays content when you hover on image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.96 ▲1.23
Dashboard /wp-admin3.32 ▲0.0152.37 ▼1.23
Posts /wp-admin/edit.php3.37 ▲0.0151.56 ▼2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.54 ▼15.31
Media Library /wp-admin/upload.php3.24 ▲0.0139.38 ▲2.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Image Style Hover - Displays content when you hover on image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.17 ▼0.481.73 ▼0.7544.18 ▲2.18
Dashboard /wp-admin2,192 ▲125.57 ▼0.0993.73 ▲5.2942.25 ▼0.10
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0134.24 ▼7.7433.33 ▼5.51
Add New Post /wp-admin/post-new.php1,526 ▼223.74 ▲0.72700.88 ▲52.5359.31 ▲6.73
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.0098.55 ▼7.9245.88 ▲2.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/image-content-show-hover/plugin.php:39

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: hover content, show content image hover, hover imagen, image hover content

image-content-show-hover/plugin.php 85% from 13 tests

Analyzing the main PHP file in "Image Style Hover - Displays content when you hover on image" version 1.0.6
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("image-content-show-hover.php" instead of "plugin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin101 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS20171
PHP11930

PHP code Passed 2 tests

This is a very shot review 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.23
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 functions2100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin