84% wp-menu-effects

Code Review | Menu Hover Effects - CSS Menu Effects

WordPress plugin Menu Hover Effects - CSS Menu Effects scored 84% from 54 tests.

About plugin

  • Plugin page: wp-menu-effects
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 9, 2020
  • Latest release: Jul 22, 2021
  • Number of updates: 5
  • Update frequency: every 57.2 days
  • Top authors: JoseVega (60%)greenjaymedia (60%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,519 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.54ms] Passed 4 tests

This is a short check of server-side resources used by Menu Hover Effects - CSS Menu Effects
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1236.64 ▼14.33
Dashboard /wp-admin3.47 ▲0.1747.30 ▲0.07
Posts /wp-admin/edit.php3.58 ▲0.2350.73 ▲3.58
Add New Post /wp-admin/post-new.php6.05 ▲0.1698.99 ▲8.54
Media Library /wp-admin/upload.php3.39 ▲0.1740.91 ▲8.94
Menu effects /wp-admin/options-general.php?page=wpme_settings3.5336.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Menu Hover Effects - CSS Menu Effects: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲16613.67 ▼0.737.64 ▲5.4839.70 ▼3.12
Dashboard /wp-admin2,210 ▲224.89 ▲0.01110.88 ▲6.0743.03 ▼1.06
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0339.10 ▼1.9535.12 ▼1.65
Add New Post /wp-admin/post-new.php1,537 ▲423.11 ▼0.23585.49 ▼77.1449.07 ▼10.31
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.02101.57 ▼0.5742.38 ▼0.88
Menu effects /wp-admin/options-general.php?page=wpme_settings1,5873.2676.6728.34

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 25× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/3d-rolling-links.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/same-word-slide-in.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/reveal-push-out.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-menu-effects/core/wpme.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/border-switch.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-menu-effects/core/wpme.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/border-slight-translate.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/move-up-fade-out-push-border.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/second-text-and-borders.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-menu-effects/core/frontend/effects/text-fill.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: css menu effects, css menu hover effects, menu animations, css menu animations, menu hover effects...

wp-menu-effects/index.php 85% from 13 tests

The main file in "Menu Hover Effects - CSS Menu Effects" v. 1.0.2 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: It is recommended to name the main PHP file as the plugin slug ("wp-menu-effects.php" instead of "index.php")
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,711 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP293561041,760
CSS210521830
JavaScript3518121

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.20
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods3497.14%
▷ Protected methods00.00%
▷ Private methods12.86%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin