78% amazing-hover-effects

Code Review | Amazing Hover Effects

WordPress plugin Amazing Hover Effects scored78%from 54 tests.

About plugin

  • Plugin page: amazing-hover-eff...
  • Plugin version: 2.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Jul 26, 2021
  • Number of updates: 479
  • Update frequency: every 5.3 days
  • Top authors: noor-e-alam (100%)

Code review

54 tests

User reviews

103 reviews

Install metrics

1,000+ active /255,767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Amazing Hover Effects
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5943.87 ▲1.22
Dashboard /wp-admin3.93 ▲0.6252.51 ▲4.47
Posts /wp-admin/edit.php3.97 ▲0.6156.15 ▲8.27
Add New Post /wp-admin/post-new.php6.50 ▲0.61101.23 ▲8.57
Media Library /wp-admin/upload.php3.82 ▲0.5940.56 ▲6.14
Hover Effects /wp-admin/edit.php?post_type=hover_effect3.8943.82
Add New /wp-admin/post-new.php?post_type=hover_effect3.8647.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Amazing Hover Effects
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,022 ▲28715.71 ▲1.341.59 ▼0.1939.37 ▼6.64
Dashboard /wp-admin2,418 ▲2337.02 ▲1.17135.96 ▲19.7739.88 ▼9.28
Posts /wp-admin/edit.php2,327 ▲2413.92 ▲1.9352.60 ▲13.7632.53 ▼3.62
Add New Post /wp-admin/post-new.php1,592 ▲5518.57 ▼4.72609.22 ▼82.3334.52 ▼22.72
Media Library /wp-admin/upload.php1,466 ▲814.85 ▲0.5987.64 ▼13.2041.05 ▼5.21
Hover Effects /wp-admin/edit.php?post_type=hover_effect1,3113.5448.6529.60
Add New /wp-admin/post-new.php?post_type=hover_effect5,6174.52126.59111.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=hover_effect
    • > Notice in wp-content/plugins/amazing-hover-effects/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
Please take a closer look at the following
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 8
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 6
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 5
    • > PHP Notice
      Undefined variable: underline in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 5
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/amazing-hover-effects/shortcodes/circle.php on line 4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

amazing-hover-effects/amazing-hover-effects.php Passed 13 tests

"Amazing Hover Effects" version 2.4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
112 characters long description:
Amazing Hover Effects is an impressive hover effects collection, powered by pure CSS3 and iHover, no dependency.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected32,584 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,928
CSS9312408,328
JavaScript81,0687934,533
PHP491,2941,0523,450
Sass531801,952
SVG100655
PO File6261285601
Markdown2210137

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.56
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity4.96
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
Methods101
▷ Static methods54.95%
▷ Public methods101100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
15 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/square2.png0.59KB0.40KB▼ 31.17%
framework/config/img/square2.png0.59KB0.40KB▼ 31.17%
framework/config/img/circle.png0.51KB0.37KB▼ 27.62%
img/square.png0.59KB0.41KB▼ 31.14%
framework/config/img/up_burst.png8.72KB3.13KB▼ 64.14%