99% image-hover-effects-for-vc

Code Review | Image Hover Effect for VC

WordPress plugin Image Hover Effect for VC scored 99% from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7
  • WordPress version: 5.8.1
  • First release: Aug 26, 2016
  • Latest release: Aug 26, 2016
  • Number of updates: 8
  • Update frequency: every 13.4 days
  • Top authors: ithemelandco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,307 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼143.77ms] Passed 4 tests

An overview of server-side resources used by Image Hover Effect for VC
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1038.86 ▲3.55
Dashboard /wp-admin3.16 ▲0.1036.56 ▼7.85
Posts /wp-admin/edit.php3.21 ▲0.1054.34 ▲9.00
Add New Post /wp-admin/post-new.php5.51 ▲0.0893.92 ▼562.76
Media Library /wp-admin/upload.php3.10 ▲0.0933.75 ▼8.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Image Hover Effect for VC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲19816.13 ▲0.2111.96 ▲2.5950.42 ▼3.74
Dashboard /wp-admin2,972 ▲386.04 ▲0.11148.66 ▼0.36116.37 ▼3.24
Posts /wp-admin/edit.php2,741 ▲22.69 ▲0.0172.57 ▲3.2390.99 ▲2.84
Add New Post /wp-admin/post-new.php1,685 ▲10418.76 ▲1.15381.26 ▼25.34113.97 ▼7.14
Media Library /wp-admin/upload.php1,809 ▲25.02 ▼0.01168.67 ▼11.20126.04 ▼18.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === image-hover-effects-for-vc === )
The official readme.txt might help

image-hover-effects-for-vc/main.php 85% from 13 tests

The main PHP file in "Image Hover Effect for VC" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("image-hover-effects-for-vc.php" instead of "main.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
There were no executable files found in this plugin3,054 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS4121432,533
PHP37235521

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
img/icon.png3.67KB0.78KB▼ 78.86%