78% image-hover-effects-mbengue

Code Review | Image Hover Effects Mbengue

WordPress plugin Image Hover Effects Mbengue scored78%from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 10, 2021
  • Latest release: May 11, 2023
  • Number of updates: 3
  • Update frequency: every 234.0 days
  • Top authors: kingstep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.04MB] [CPU: ▼8.92ms] Passed 4 tests

Analyzing server-side resources used by Image Hover Effects Mbengue
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.93 ▼6.86
Dashboard /wp-admin3.36 ▲0.0646.47 ▼3.38
Posts /wp-admin/edit.php3.41 ▲0.0646.60 ▼2.73
Add New Post /wp-admin/post-new.php5.57 ▼0.3265.65 ▼22.71
Media Library /wp-admin/upload.php3.28 ▲0.0639.56 ▲7.10
Ajouter Nouvelle /wp-admin/post-new.php?post_type=hovers3.2735.54
Tous les Hovers Images /wp-admin/edit.php?post_type=hovers3.3334.78

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Image Hover Effects Mbengue
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.61 ▼0.761.62 ▼0.3040.77 ▼2.66
Dashboard /wp-admin2,232 ▲445.84 ▼0.0396.25 ▼13.6977.78 ▲30.60
Posts /wp-admin/edit.php2,112 ▲232.01 ▼0.0334.90 ▼4.0933.94 ▼0.82
Add New Post /wp-admin/post-new.php1,692 ▲15021.67 ▲3.28748.39 ▲77.1165.12 ▲1.07
Media Library /wp-admin/upload.php1,408 ▲204.19 ▼0.08119.12 ▲14.7447.70 ▲4.80
Ajouter Nouvelle /wp-admin/post-new.php?post_type=hovers1,7063.5159.4578.42
Tous les Hovers Images /wp-admin/edit.php?post_type=hovers1,1041.9333.0628.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=hovers
    • > Warning in wp-content/plugins/image-hover-effects-mbengue/inc/zake_meta_box.php+119
    Use of undefined constant _S_VERSION - assumed '_S_VERSION' (this will throw an Error in a future version of PHP)

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
  • 2× 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/image-hover-effects-mbengue/inc/zake_meta_box.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/image-hover-effects-mbengue/ImageHoverMbengue.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: images, rollover effects

image-hover-effects-mbengue/ImageHoverMbengue.php 92% from 13 tests

This is the main PHP file of "Image Hover Effects Mbengue" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-hover-effects-mbengue.php" instead of "ImageHoverMbengue.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
No dangerous file extensions were detected237 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22345206
JavaScript12231

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.47
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icone@2x.png0.37KB0.31KB▼ 17.28%
img/icone.png0.23KB0.31KB0.00%