83% create-custom-hover-effects-on-images

Code Review | Create Custom Hover Effects On Images WP Plugins

WordPress plugin Create Custom Hover Effects On Images WP Plugins scored83%from 54 tests.

About plugin

  • Plugin page: create-custom-hov...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.5
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: May 23, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: trendbydesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.03ms] Passed 4 tests

An overview of server-side resources used by Create Custom Hover Effects On Images WP Plugins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.66 ▲7.88
Dashboard /wp-admin3.31 ▲0.0041.59 ▼12.21
Posts /wp-admin/edit.php3.36 ▲0.0043.53 ▼2.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.42 ▼2.39
Media Library /wp-admin/upload.php3.23 ▲0.0030.33 ▼3.04

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Create Custom Hover Effects On Images WP Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16614.01 ▼0.2518.38 ▲16.7945.97 ▲0.56
Dashboard /wp-admin2,224 ▲445.52 ▼0.1085.19 ▼14.0142.36 ▲0.95
Posts /wp-admin/edit.php2,102 ▲22.01 ▼0.0140.46 ▲4.6936.14 ▲0.14
Add New Post /wp-admin/post-new.php1,528 ▼023.07 ▼0.00609.78 ▼38.8059.00 ▲2.85
Media Library /wp-admin/upload.php1,405 ▲114.22 ▲0.04101.31 ▲4.5746.80 ▲3.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-custom-hover-effects-on-images/CreateCustomHoverEffectsOnImages.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Stable tag: Empty value
The official readme.txt might help

create-custom-hover-effects-on-images/CreateCustomHoverEffectsOnImages.php 77% from 13 tests

The principal PHP file in "Create Custom Hover Effects On Images WP Plugins" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("create-custom-hover-effects-on-images.php" instead of "CreateCustomHoverEffectsOnImages.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 224 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin474 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected