66% ultimate-image-hover-effects-css3-photo-gallery-pro

Code Review | Ultimate Image Hover Effects CSS3 - Photo Gallery Pro

WordPress plugin Ultimate Image Hover Effects CSS3 - Photo Gallery Pro scored66%from 54 tests.

About plugin

  • Plugin page: ultimate-image-ho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Jul 15, 2018
  • Latest release: Aug 31, 2018
  • Number of updates: 21
  • Update frequency: every 2.4 days
  • Top authors: shahzaib795 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /837 total downloads

Benchmarks

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.04MB] [CPU: ▼1.34ms] Passed 4 tests

An overview of server-side resources used by Ultimate Image Hover Effects CSS3 - Photo Gallery Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.47 ▼7.65
Dashboard /wp-admin3.36 ▲0.0654.13 ▲8.16
Posts /wp-admin/edit.php3.47 ▲0.1253.73 ▲4.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.67 ▼6.37
Media Library /wp-admin/upload.php3.26 ▲0.0336.38 ▲3.93
Hover Effects /wp-admin/edit.php?post_type=image_hover_effect3.3338.16
Add New Hover Effect /wp-admin/post-new.php?post_type=image_hover_effect3.4043.15
More Plugins /wp-admin/edit.php?post_type=image_hover_effect&page=na_more_plugins3.2734.61

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Image Hover Effects CSS3 - Photo Gallery Pro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲26515.37 ▲1.071.64 ▼0.2037.88 ▼9.48
Dashboard /wp-admin2,394 ▲2036.76 ▲1.70140.46 ▲38.5446.95 ▲2.73
Posts /wp-admin/edit.php2,309 ▲2173.80 ▲1.8257.18 ▲18.1534.96 ▼1.26
Add New Post /wp-admin/post-new.php1,564 ▲3123.44 ▲0.42570.85 ▼25.3633.65 ▼15.79
Media Library /wp-admin/upload.php1,442 ▲604.58 ▲0.4181.01 ▼21.4039.16 ▼4.71
Hover Effects /wp-admin/edit.php?post_type=image_hover_effect1,2843.6151.5330.07
Add New Hover Effect /wp-admin/post-new.php?post_type=image_hover_effect3,0497.69187.3180.57
More Plugins /wp-admin/edit.php?post_type=image_hover_effect&page=na_more_plugins9903.3040.5119.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=image_hover_effect
    • > Warning in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/render_metabox.php+14
    count(): Parameter must be an array or an object that implements Countable

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php
    • > /wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/more_plugins.php
  • 24× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/load_first.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/render_shortcode.php:3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 7
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro/temp/first.php on line 8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=image_hover_effect&page=na_more_plugins
    • > Javascript (severe) in unknown
    /wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro//js/wp-color-picker-alpha.js?ver=6.3.1 10:459 Uncaught ReferenceError: wpColorPickerL10n is not defined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=image_hover_effect&page=na_more_plugins
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ultimate-image-hover-effects-css3-photo-gallery-pro//lib/admin.js?ver=6.3.1:81:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=image_hover_effect&page=na_more_plugins
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
    • > GET request to /wp-admin/post-new.php?post_type=image_hover_effect
    • > Network (severe)
    themeroller/images/ui-icons_ffffff_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Admin Setting), #2 (Easy to use interface.)
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ultimate-image-hover-effects-css3-photo-gallery-pro/index.php 92% from 13 tests

The main file in "Ultimate Image Hover Effects CSS3 - Photo Gallery Pro" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimate-image-hover-effects-css3-photo-gallery-pro.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin13,559 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,9967212,934
PHP84425517
JavaScript32146108

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected