78% happy-elementor-addons

Code Review | Happy Addons for Elementor

WordPress plugin Happy Addons for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: happy-elementor-a...
  • Plugin version: 3.9.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 5, 2019
  • Latest release: Nov 2, 2023
  • Number of updates: 239
  • Update frequency: every 7.1 days
  • Top authors: thehappymonster (100%)

Code review

54 tests

User reviews

412 reviews

Install metrics

300,000+ active /5,344,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.57ms] Passed 4 tests

An overview of server-side resources used by Happy Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.35 ▼0.13
Dashboard /wp-admin3.40 ▲0.1047.74 ▼1.63
Posts /wp-admin/edit.php3.52 ▲0.1650.73 ▲0.28
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.67 ▲3.75
Media Library /wp-admin/upload.php3.33 ▲0.0937.95 ▲4.08

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 438 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
happy_addons_activation_time
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
happyaddons_do_activation_direct
can_compress_scripts
happyaddons_do_wizard_direct

Browser metrics Passed 4 tests

Checking browser requirements for Happy Addons for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.23 ▼0.131.79 ▲0.2546.72 ▲8.68
Dashboard /wp-admin2,213 ▲365.62 ▼0.0593.22 ▼9.2342.75 ▲2.71
Posts /wp-admin/edit.php2,121 ▲212.03 ▲0.0440.32 ▲0.4737.55 ▲3.24
Add New Post /wp-admin/post-new.php1,541 ▲1523.12 ▼0.53672.96 ▲8.7449.51 ▼13.20
Media Library /wp-admin/upload.php1,421 ▲184.23 ▲0.0597.38 ▲3.2744.55 ▲2.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • happyaddons_do_activation_direct
    • widget_recent-comments
    • theysaidso_admin_options
    • happy_addons_activation_time
    • happyaddons_do_wizard_direct

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-features.php
    • > /wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-bepro.php
    • > /wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-contribute.php
    • > /wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-congrats.php
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Happy_Addons\\Elementor\\Widget\\Base' not found in wp-content/plugins/happy-elementor-addons/widgets/link-hover/widget.php:15
    • > PHP Warning
      Use of undefined constant HAPPY_ADDONS_ASSETS - assumed 'HAPPY_ADDONS_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-bepro.php on line 21
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-site-health.php): failed to open stream: No such file or directory in wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-welcome.php on line 10
    • > PHP Warning
      Use of undefined constant HAPPY_ADDONS_ASSETS - assumed 'HAPPY_ADDONS_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-bepro.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Kits\\Documents\\Tabs\\Tab_Base' not found in wp-content/plugins/happy-elementor-addons/extensions/scroll-to-top-kit-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/happy-elementor-addons/extensions/walker-nav-menu.php:8
    • > PHP Warning
      Use of undefined constant HAPPY_ADDONS_ASSETS - assumed 'HAPPY_ADDONS_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-bepro.php on line 51
    • > PHP Warning
      Use of undefined constant HAPPY_ADDONS_ASSETS - assumed 'HAPPY_ADDONS_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-bepro.php on line 55
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-site-health.php' (include_path='.:/usr/share/php') in wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-welcome.php on line 10
    • > PHP Warning
      Use of undefined constant HAPPY_ADDONS_ASSETS - assumed 'HAPPY_ADDONS_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/happy-elementor-addons/templates/wizard/wizard-bepro.php on line 33

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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: mega menu, elementor addon, elementor widget, header footer builder, elementor addons...

happy-elementor-addons/plugin.php 85% from 13 tests

The principal PHP file in "Happy Addons for Elementor" v. 3.9.1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 370 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("happy-elementor-addons.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin135,231 lines of code in 363 files:
LanguageFilesBlank linesComment linesLines of code
PHP1688,3925,00663,823
JavaScript438,1218,03550,144
SVG6731312,592
CSS78247688,084
Sass2275262
LESS2236239
Markdown232086
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity15.96
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces9
Interfaces0
Traits3
Classes139
▷ Abstract classes21.44%
▷ Concrete classes13798.56%
▷ Final classes00.00%
Methods1,368
▷ Static methods22316.30%
▷ Public methods72252.78%
▷ Protected methods58842.98%
▷ Private methods584.24%
Functions97
▷ Named functions6668.04%
▷ Anonymous functions3131.96%
Constants39
▷ Global constants1025.64%
▷ Class constants2974.36%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.38MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/imgs/admin/pa-1.png41.93KB14.72KB▼ 64.89%
assets/imgs/admin/pa-3.png31.00KB12.79KB▼ 58.74%
assets/imgs/admin/art2.png74.88KB27.67KB▼ 63.05%
assets/imgs/admin/dashboard-header.png97.14KB122.73KB0.00%
assets/imgs/admin/art1.png61.91KB24.56KB▼ 60.34%