83% ele-hover-addon

Code Review | ele Hover Addon

WordPress plugin ele Hover Addon scored83%from 54 tests.

About plugin

  • Plugin page: ele-hover-addon
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2022
  • Latest release: Mar 28, 2023
  • Number of updates: 7
  • Update frequency: every 53.7 days
  • Top authors: themeux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /564 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.06MB] [CPU: ▼0.77ms] Passed 4 tests

This is a short check of server-side resources used by ele Hover Addon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.89 ▼4.62
Dashboard /wp-admin3.37 ▲0.0651.55 ▲7.09
Posts /wp-admin/edit.php3.48 ▲0.1250.02 ▲2.06
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.42 ▼1.00
Media Library /wp-admin/upload.php3.29 ▲0.0633.09 ▲0.48

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for ele Hover Addon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.09 ▼0.471.86 ▲0.3042.68 ▼0.26
Dashboard /wp-admin2,212 ▲415.52 ▼0.0582.62 ▼5.0637.03 ▼4.47
Posts /wp-admin/edit.php2,117 ▲352.04 ▲0.0541.02 ▲3.8437.23 ▲1.17
Add New Post /wp-admin/post-new.php1,538 ▲1223.02 ▼0.15670.05 ▼26.7955.84 ▼6.41
Media Library /wp-admin/upload.php1,417 ▲174.19 ▼0.0094.49 ▼2.8441.32 ▼4.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ele-hover-addon/includes/widgets/layout/layout-2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ele-hover-addon/includes/widgets/layout/layout-1.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid url: "#"
  • Screenshots: Please add descriptions for these screenshots #3, #4 in ele-hover-addon/assets to your readme.txt
You can take inspiration from this readme.txt

ele-hover-addon/ele-hover-addon.php 92% from 13 tests

This is the main PHP file of "ele Hover Addon" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,660 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS7590301,964
SVG1001,616
PHP133785911,072
JavaScript25158

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.44
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods47
▷ Static methods36.38%
▷ Public methods3880.85%
▷ Protected methods612.77%
▷ Private methods36.38%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected