84% thumbnail-hover-menu-for-elementor

Code Review | Thumbnail Hover Menu for Elementor

WordPress plugin Thumbnail Hover Menu for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: thumbnail-hover-m...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Jul 4, 2021
  • Latest release: Mar 25, 2022
  • Number of updates: 13
  • Update frequency: every 33.6 days
  • Top authors: wepic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 976 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.62ms] Passed 4 tests

This is a short check of server-side resources used by Thumbnail Hover Menu for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.37 ▼0.86
Dashboard /wp-admin3.31 ▲0.0144.53 ▼3.65
Posts /wp-admin/edit.php3.36 ▲0.0041.69 ▼3.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.27 ▼13.87
Media Library /wp-admin/upload.php3.23 ▲0.0032.46 ▼1.10

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Thumbnail Hover Menu for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.62 ▼0.795.17 ▲3.2545.67 ▲0.99
Dashboard /wp-admin2,224 ▲395.84 ▼0.0196.56 ▼8.7437.80 ▼6.02
Posts /wp-admin/edit.php2,106 ▲202.00 ▼0.0434.70 ▼2.4734.50 ▲2.08
Add New Post /wp-admin/post-new.php1,533 ▼023.30 ▲0.18659.21 ▲4.4755.87 ▼2.99
Media Library /wp-admin/upload.php1,406 ▲154.20 ▲0.0296.27 ▼4.5842.58 ▼2.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× 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/thumbnail-hover-menu-for-elementor/thumbnail-hover-menu-for-elementor.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: menus, pagebuilder, navmenu, elementor, nav menu...

thumbnail-hover-menu-for-elementor/thumbnail-hover-menu-for-elementor.php Passed 13 tests

The main file in "Thumbnail Hover Menu for Elementor" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
This plugin adds a Thumbnail Hover Menu widget to the Elementor Page Builder.

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
Good job! No executable or dangerous file extensions detected873 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP413716760
CSS415081
JavaScript28032

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.00
▷ Minimum class complexity7.00
▷ Maximum class complexity24.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods28
▷ Static methods13.57%
▷ Public methods1967.86%
▷ Protected methods27.14%
▷ Private methods725.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin