78% animation-menus-highlight

Code Review | Animation Menus light

WordPress plugin Animation Menus light scored78%from 54 tests.

About plugin

  • Plugin page: animation-menus-h...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: May 16, 2016
  • Number of updates: 4
  • Update frequency: every 17.7 days
  • Top authors: module.express (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,146 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.43ms] Passed 4 tests

This is a short check of server-side resources used by Animation Menus light
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.17 ▼0.59
Dashboard /wp-admin3.34 ▲0.0049.10 ▼12.54
Posts /wp-admin/edit.php3.40 ▲0.0453.25 ▲1.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.40 ▼8.10
Media Library /wp-admin/upload.php3.27 ▲0.0438.13 ▼0.50
Add New /wp-admin/post-new.php?post_type=amh_gallery_slider3.3950.07
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_amh_slider-category&post_type=amh_gallery_slider3.3535.83
All Images /wp-admin/edit.php?post_type=amh_gallery_slider3.3134.53
Gallery showcases /wp-admin/edit.php?post_type=amh_gallery_slider&page=responsive_gallery-amh-bar-submenu-page3.2428.67

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Animation Menus light
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.35 ▼0.061.64 ▲0.0340.11 ▼5.80
Dashboard /wp-admin2,236 ▲595.57 ▼0.0893.23 ▼0.4439.30 ▲0.26
Posts /wp-admin/edit.php2,141 ▲441.95 ▼0.0439.05 ▼0.5336.53 ▼2.28
Add New Post /wp-admin/post-new.php1,558 ▲3220.94 ▼1.89684.17 ▲14.2954.02 ▼6.49
Media Library /wp-admin/upload.php1,438 ▲384.17 ▼0.01112.61 ▲5.6749.93 ▲4.49
Add New /wp-admin/post-new.php?post_type=amh_gallery_slider2,3437.74172.7469.28
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_amh_slider-category&post_type=amh_gallery_slider1,2952.1227.8830.71
All Images /wp-admin/edit.php?post_type=amh_gallery_slider1,1191.9829.5131.22
Gallery showcases /wp-admin/edit.php?post_type=amh_gallery_slider&page=responsive_gallery-amh-bar-submenu-page8342.1424.2229.01

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 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animation-menus-highlight/animation-menus-highlight.php:276
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animation-menus-highlight/amh_gallery_admin_settings_center.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/animation-menus-highlight/designs/template.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=amh_gallery_slider&page=responsive_gallery-amh-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/animation-menus-highlight/images/design-1.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
You can take inspiration from this readme.txt

animation-menus-highlight/animation-menus-highlight.php Passed 13 tests

The main PHP script in "Animation Menus light" version 1.0 is automatically included on every request by WordPress
45 characters long description:
A simple Responsive Animation Menus Highlight

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
No dangerous file extensions were detected430 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-right.png2.28KB1.94KB▼ 14.81%
images/arrow-left.png2.29KB1.94KB▼ 15.17%