93% hover-effect

Code Review | Hower effect for Links

WordPress plugin Hower effect for Links scored 93% from 53 tests.

About plugin

  • Plugin page: hover-effect
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.1
  • WordPress version: 5.8.1
  • First release: Jul 27, 2015
  • Latest release: May 6, 2016
  • Number of updates: 24
  • Update frequency: every 11.9 days
  • Top authors: kamlesh4kumar (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,261 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼253.92ms] Passed 4 tests

Analyzing server-side resources used by Hower effect for Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.97 ▲13.39
Dashboard /wp-admin3.07 ▲0.0146.50 ▲3.54
Posts /wp-admin/edit.php3.12 ▲0.0144.98 ▼0.38
Add New Post /wp-admin/post-new.php5.43 ▲0.0094.71 ▼1,013.32
Media Library /wp-admin/upload.php3.01 ▲0.0031.69 ▼5.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Hower effect for Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,697 ▲9115.88 ▲0.418.43 ▲1.0048.02 ▼0.76
Dashboard /wp-admin2,947 ▲976.05 ▲0.17134.90 ▲2.98103.11 ▼0.11
Posts /wp-admin/edit.php2,726 ▲202.70 ▲0.0065.73 ▼3.4288.48 ▼5.74
Add New Post /wp-admin/post-new.php1,664 ▼1,95317.40 ▲2.41353.27 ▼64.01107.71 ▲1.43
Media Library /wp-admin/upload.php1,792 ▲174.98 ▼0.02145.14 ▼4.93110.16 ▼7.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hover-effect/hovereffects.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: A description for screenshot #1 is required in hover-effect/assets to your readme.txt
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

hover-effect/hovereffects.php 92% from 13 tests

The principal PHP file in "Hower effect for Links" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hover-effect.php" instead of "hovereffects.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin714 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1121671
PHP1292143

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin