10% hover-image-and-text

Code Review | Hover image and text

WordPress plugin Hover image and text scored10%from 54 tests.

About plugin

  • Plugin page: hover-image-and-text
  • Plugin version: 2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Dec 23, 2012
  • Latest release: Dec 24, 2012
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: haran123 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,096 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/hover-image-and-text/hover.php+56
    Undefined variable: wpdb

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

A check of server-side resources used by Hover image and text
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.09 ▲5.08
Dashboard /wp-admin3.33 ▼0.0145.48 ▼15.28
Posts /wp-admin/edit.php3.38 ▲0.0345.36 ▼6.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.76 ▼11.72
Media Library /wp-admin/upload.php3.26 ▲0.0340.63 ▲5.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables
wp_hover_image
New WordPress options
jal_db_version
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hover image and text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.27 ▼0.081.55 ▼0.3442.92 ▲1.38
Dashboard /wp-admin2,210 ▲305.52 ▼0.1883.11 ▼7.1578.19 ▲40.40
Posts /wp-admin/edit.php2,118 ▲151.95 ▲0.0136.53 ▼2.9630.72 ▼5.72
Add New Post /wp-admin/post-new.php1,553 ▲2523.11 ▲0.10647.19 ▲45.7354.77 ▼6.84
Media Library /wp-admin/upload.php1,406 ▲124.10 ▼0.10101.49 ▼0.3179.12 ▲36.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_hover_image
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • jal_db_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hover-image-and-text/hover.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Stable tag: Empty string
  • Donate link: Please fix this invalid URI: ""
  • Tags: No tags were detected
The official readme.txt might help

hover-image-and-text/hover.php 85% from 13 tests

This is the main PHP file of "Hover image and text" version 2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hover-image-and-text.php" instead of "hover.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "2...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin449 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS4641242
PHP18548207

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/b_status.png2.98KB0.24KB▼ 91.87%