78% ultimate-addons-for-elementor

Code Review | Mega Addons For Elementor

WordPress plugin Mega Addons For Elementor scored 78% from 54 tests.

About plugin

  • Plugin page: ultimate-addons-f...
  • Plugin version: 1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2018
  • Latest release: Sep 27, 2022
  • Number of updates: 92
  • Update frequency: every 16.0 days
  • Top authors: nasir179125 (84.78%)qsheeraz (16.3%)

Code review

54 tests

User reviews

8 reviews

Install metrics

7,000+ active / 105,306 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.12ms] Passed 4 tests

Server-side resources used by Mega Addons For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.16 ▼4.08
Dashboard /wp-admin3.31 ▲0.0145.13 ▼5.21
Posts /wp-admin/edit.php3.36 ▲0.0145.25 ▼6.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.14 ▼16.66
Media Library /wp-admin/upload.php3.24 ▲0.0136.21 ▲1.64

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Mega Addons For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.30 ▼1.101.63 ▲0.0038.16 ▼0.54
Dashboard /wp-admin2,225 ▲344.85 ▼1.0595.15 ▼7.3737.60 ▼3.34
Posts /wp-admin/edit.php2,107 ▲152.05 ▲0.0636.72 ▼0.0933.37 ▼2.51
Add New Post /wp-admin/post-new.php1,547 ▲3323.23 ▲5.48592.25 ▼108.6348.05 ▼5.01
Media Library /wp-admin/upload.php1,407 ▲194.25 ▲0.0197.50 ▼13.6642.11 ▼5.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 0% 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 take a closer look at the following
  • 27× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price4.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/flip-box.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/info-box.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price3.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price5.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price6.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/info-circle.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/advanced-btn.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/heading.php
    • > /wp-content/plugins/ultimate-addons-for-elementor/widgets/advanced-carousel.php
  • 306× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price3.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price3.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price5.php on line 31
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price2.php on line 31
    • > PHP Notice
      Undefined variable: amount_clr in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price8.php on line 8
    • > PHP Notice
      Undefined variable: amountsize in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price7.php on line 13
    • > PHP Notice
      Undefined variable: price_plan in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price8.php on line 8
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price4.php on line 30
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price5.php on line 3
    • > PHP Notice
      Undefined variable: btnsize in wp-content/plugins/ultimate-addons-for-elementor/widgets/price-table/price3.php on line 31

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg), #5 (screenshot-5.jpg)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

ultimate-addons-for-elementor/uae.php 92% from 13 tests

"Mega Addons For Elementor" version 1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-addons-for-elementor.php" instead of "uae.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected28,667 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
CSS282,23519514,845
PHP381,3381,5959,942
JavaScript201,2269263,620
PO File196100260

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity9.21
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods154
▷ Static methods00.00%
▷ Public methods10870.13%
▷ Protected methods4629.87%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/cross.png1.14KB0.25KB▼ 77.64%