84% hover-image-button

Code Review | Hover Image Button

WordPress plugin Hover Image Button scored84%from 54 tests.

About plugin

  • Plugin page: hover-image-button
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2015
  • Latest release: Nov 11, 2015
  • Number of updates: 15
  • Update frequency: every 0.6 days
  • Top authors: igpremuo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /11,434 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.54ms] Passed 4 tests

Server-side resources used by Hover Image Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.56 ▼6.26
Dashboard /wp-admin3.37 ▲0.0246.71 ▼9.33
Posts /wp-admin/edit.php3.48 ▲0.1252.57 ▲4.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.04 ▼14.13
Media Library /wp-admin/upload.php3.29 ▲0.0635.38 ▼0.45
Hover Image Button /wp-admin/options-general.php?page=hover_image_button3.2630.84

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hover Image Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.74 ▲0.081.77 ▼0.1540.79 ▼0.69
Dashboard /wp-admin2,209 ▲185.81 ▲0.9298.62 ▼3.9540.08 ▲1.48
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0238.06 ▼3.7234.91 ▲0.91
Add New Post /wp-admin/post-new.php1,519 ▼2323.23 ▲4.99653.31 ▲43.1149.69 ▲0.63
Media Library /wp-admin/upload.php1,394 ▲94.18 ▼0.1595.95 ▼4.2341.24 ▲0.23
Hover Image Button /wp-admin/options-general.php?page=hover_image_button8502.0522.6228.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/hover-image-button/includes/plugin-defaults.php
    • > /wp-content/plugins/hover-image-button/includes/settings.php
    • > /wp-content/plugins/hover-image-button/includes/plugin-variables.php
    • > /wp-content/plugins/hover-image-button/hover-image-button.php
    • > /wp-content/plugins/hover-image-button/uninstall.php
    • > /wp-content/plugins/hover-image-button/includes/shortcodes-handler.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

hover-image-button/hover-image-button.php Passed 13 tests

"Hover Image Button" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
Create mobile responsive image buttons with pure CSS3 animated hover effects.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin464 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP786262329
CSS13731135
JavaScript11100

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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