78% all-in-all-image-hover-effect

Code Review | All in All Image Hover Effect

WordPress plugin All in All Image Hover Effect scored78%from 54 tests.

About plugin

  • Plugin page: all-in-all-image-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Dec 5, 2018
  • Number of updates: 4
  • Update frequency: every 17.0 days
  • Top authors: coderunion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.61MB] [CPU: ▲2.87ms] Passed 4 tests

Server-side resources used by All in All Image Hover Effect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6147.67 ▲1.49
Dashboard /wp-admin3.93 ▲0.6365.60 ▲12.77
Posts /wp-admin/edit.php3.97 ▲0.6259.73 ▲5.25
Add New Post /wp-admin/post-new.php6.50 ▲0.62106.21 ▼4.39
Media Library /wp-admin/upload.php3.82 ▲0.6047.02 ▲9.14
Add New Image Hover /wp-admin/post-new.php?post_type=aaihe_images_hovers3.9060.27
All Image Hover /wp-admin/edit.php?post_type=aaihe_images_hovers3.9053.89
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=aaihe_images_hovers3.8453.96
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=aaihe_images_hovers3.8545.96

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 115 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for All in All Image Hover Effect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,146 ▲38516.07 ▲1.8514.94 ▲13.0850.16 ▲6.87
Dashboard /wp-admin2,419 ▲2426.77 ▲1.07128.70 ▲38.6143.53 ▲3.98
Posts /wp-admin/edit.php2,347 ▲2443.89 ▲1.9059.37 ▲19.5132.96 ▼9.92
Add New Post /wp-admin/post-new.php1,598 ▲7221.91 ▼1.14700.83 ▲4.8636.84 ▼17.94
Media Library /wp-admin/upload.php1,481 ▲814.77 ▲0.4988.00 ▼18.9547.53 ▲3.73
Add New Image Hover /wp-admin/post-new.php?post_type=aaihe_images_hovers3,0554.50123.4546.84
All Image Hover /wp-admin/edit.php?post_type=aaihe_images_hovers1,3663.8349.4627.41
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=aaihe_images_hovers1,7023.6649.8730.96
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=aaihe_images_hovers1,5693.7348.2932.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • category_children
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=aaihe_images_hovers
    • > Notice in wp-content/plugins/all-in-all-image-hover-effect/cu-framework/classes/metabox.class.php+70
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-all-image-hover-effect/cu_image_effect.php:27

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can take inspiration from this readme.txt

all-in-all-image-hover-effect/cu_image_effect.php 85% from 13 tests

The entry point to "All in All Image Hover Effect" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("all-in-all-image-hover-effect.php" instead of "cu_image_effect.php")

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 plugin42,095 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PO File7306334705

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity13.91
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
▷ Static methods55.05%
▷ Public methods99100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions48100.00%
▷ Anonymous functions00.00%
▷ Global constants12100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings