10% essential-hover-effects

Code Review | Essential Hover Effects

WordPress plugin Essential Hover Effects scored10%from 54 tests.

About plugin

  • Plugin page: essential-hover-e...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: May 29, 2020
  • Number of updates: 10
  • Update frequency: every 62.5 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /971 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Compile warning in wp-content/plugins/essential-hover-effects/essential-hover-effects.php+2
    Unterminated comment starting line 2

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.64ms] Passed 4 tests

Analyzing server-side resources used by Essential Hover Effects
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.77 ▼2.48
Dashboard /wp-admin3.31 ▼0.0445.88 ▼22.40
Posts /wp-admin/edit.php3.36 ▲0.0048.57 ▼3.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.76 ▼21.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.88 ▲2.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Essential Hover Effects: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.70 ▼0.571.81 ▲0.0136.30 ▼7.33
Dashboard /wp-admin2,219 ▲315.84 ▲0.97112.59 ▲8.0242.04 ▼4.60
Posts /wp-admin/edit.php2,108 ▲192.03 ▲0.0140.26 ▼0.6339.57 ▲3.29
Add New Post /wp-admin/post-new.php1,380 ▼15320.67 ▼2.46528.64 ▼127.1652.68 ▲2.13
Media Library /wp-admin/upload.php1,404 ▲224.23 ▲0.03102.49 ▲5.2543.67 ▲0.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Compile warning in wp-content/plugins/essential-hover-effects/essential-hover-effects.php+2
    Unterminated comment starting line 2
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/essential-hover-effects/essential-hover-effects.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Adding post item.), #2 (Settings panel 1.), #3 (Settings panel 2.), #4 (Settings panel 3.), #5 (Custom ordering.)
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

essential-hover-effects/essential-hover-effects.php 85% from 13 tests

The entry point to "Essential Hover Effects" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin41,310 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
JSON20017,050
CSS1234225510,328
JavaScript91,0838004,584
SVG2003,236
PHP451,2029373,141
Sass634102,089
PO File7306334705
Markdown2240177

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
Methods99
▷ Static methods55.05%
▷ Public methods99100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/framework/assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
admin/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
admin/framework/assets/images/chosen-sprite.png0.53KB0.88KB0.00%