84% magical-addons-for-elementor

Code Review | Magical Addons For Elementor ( Header Footer Builder, Free Elementor Widgets, Elementor Templates Library )

WordPress plugin Magical Addons For Elementor ( Header Footer Builder, Free Elementor Widgets, Elementor Templates Library ) scored84%from 54 tests.

About plugin

  • Plugin page: magical-addons-fo...
  • Plugin version: 1.1.29
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 28, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 82
  • Update frequency: every 18.1 days
  • Top authors: nalam (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

5,000+ active /109,688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.67MB] [CPU: ▲5.45ms] Passed 4 tests

This is a short check of server-side resources used by Magical Addons For Elementor ( Header Footer Builder, Free Elementor Widgets, Elementor Templates Library )
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5841.75 ▲2.06
Dashboard /wp-admin4.04 ▲0.7357.09 ▲10.41
Posts /wp-admin/edit.php4.09 ▲0.7354.59 ▲7.41
Add New Post /wp-admin/post-new.php6.55 ▲0.6688.69 ▲3.95
Media Library /wp-admin/upload.php3.94 ▲0.7141.90 ▲8.39

Server storage [IO: ▲4.17MB] [DB: ▲0.04MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 158 new files
Database: no new tables, 14 new options
New WordPress options
magical_extra
mg_plugin_activated
magical_addons_pro
mgaddon_ready_items
magical_addons
magical_headerfooter
mg_install_date
mgaddon_version
db_upgraded
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Magical Addons For Elementor ( Header Footer Builder, Free Elementor Widgets, Elementor Templates Library )
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲21514.88 ▲0.531.75 ▼0.4644.96 ▲1.39
Dashboard /wp-admin2,367 ▲1906.52 ▲0.94124.45 ▲23.5299.67 ▲55.80
Posts /wp-admin/edit.php2,313 ▲2103.53 ▲1.5153.76 ▲15.7272.14 ▲33.72
Add New Post /wp-admin/post-new.php1,728 ▲19822.61 ▼0.44639.26 ▼50.4236.53 ▼15.24
Media Library /wp-admin/upload.php1,450 ▲504.28 ▲0.0785.29 ▼25.7191.11 ▲43.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 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 14 options in the database
    • widget_recent-comments
    • mg_install_date
    • mgaddon_version
    • mg_plugin_activated
    • magical_headerfooter
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • magical_addons
    • magical_addons_pro
    • ...

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

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
  • 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-addons-for-elementor/includes/widgets/qoute-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-addons-for-elementor/includes/widgets/timeline/timeline-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WeDevs_Settings_API' not found in wp-content/plugins/magical-addons-for-elementor/includes/admin/admin-page.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-addons-for-elementor/includes/widgets/tabs.php:4
    • > PHP Warning
      require_once(MAGICAL_ADDON_PATH/includes/basic/style-script.php): failed to open stream: No such file or directory in wp-content/plugins/magical-addons-for-elementor/includes/functions.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magical-addons-for-elementor/libs/tedit/header-footer/theme/storefront-hf.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-addons-for-elementor/includes/widgets/posts/posts-list.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-addons-for-elementor/includes/widgets/img-hover-card-widget.php:4
    • > PHP Warning
      Use of undefined constant MAGICAL_ADDON_PATH - assumed 'MAGICAL_ADDON_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/magical-addons-for-elementor/includes/functions.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/magical-addons-for-elementor/includes/widgets/infobox-widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: The official readme.txt might help

magical-addons-for-elementor/magical-addons-for-elementor.php Passed 13 tests

Analyzing the main PHP file in "Magical Addons For Elementor ( Header Footer Builder, Free Elementor Widgets, Elementor Templates Library )" version 1.1.29
41 characters long description:
Premium addons for Elementor page builder

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
There were no executable files found in this plugin54,336 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP674,7774,09640,573
CSS311,4502489,579
SVG4002,961
JavaScript373581521,223

PHP code Passed 2 tests

Analyzing 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.16
Average class complexity15.02
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces1
Interfaces0
Traits2
Classes61
▷ Abstract classes00.00%
▷ Concrete classes61100.00%
▷ Final classes11.64%
Methods560
▷ Static methods183.21%
▷ Public methods40572.32%
▷ Protected methods15427.50%
▷ Private methods10.18%
Functions34
▷ Named functions3294.12%
▷ Anonymous functions25.88%
Constants10
▷ Global constants550.00%
▷ Class constants550.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/Plugin_32.png3.00KB1.70KB▼ 43.50%
assets/img/magical-logo.png50.52KB27.08KB▼ 46.39%
assets/img/mg-icons.png2.32KB1.47KB▼ 36.76%