83% ultraaddons-elementor-lite

Code Review | UltraAddons - Elementor Addons (Header Footer Builder, Custom Font, Custom CSS,Woo Widget, Menu Builder, Anywhere Elementor Shortcode)

WordPress plugin UltraAddons - Elementor Addons (Header Footer Builder, Custom Font, Custom CSS,Woo Widget, Menu Builder, Anywhere Elementor Shortcode) scored 83% from 54 tests.

About plugin

  • Plugin page: ultraaddons-eleme...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 17, 2021
  • Latest release: Mar 7, 2023
  • Number of updates: 60
  • Update frequency: every 12.5 days
  • Top authors: codersaiful (68.33%)rafiul17 (18.33%)codeastrology (16.67%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 17,246 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.11MB] [CPU: ▼3.20ms] Passed 4 tests

Analyzing server-side resources used by UltraAddons - Elementor Addons (Header Footer Builder, Custom Font, Custom CSS,Woo Widget, Menu Builder, Anywhere Elementor Shortcode)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.82 ▼6.71
Dashboard /wp-admin3.41 ▲0.1146.16 ▲0.58
Posts /wp-admin/edit.php3.52 ▲0.1747.56 ▼0.04
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.08 ▼6.64
Media Library /wp-admin/upload.php3.33 ▲0.1138.21 ▲2.89

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 424 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
elementor_cpt_support
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for UltraAddons - Elementor Addons (Header Footer Builder, Custom Font, Custom CSS,Woo Widget, Menu Builder, Anywhere Elementor Shortcode)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5514.43 ▼0.371.70 ▼0.3732.22 ▼13.84
Dashboard /wp-admin2,218 ▲434.85 ▼1.07105.18 ▲0.1842.43 ▼2.35
Posts /wp-admin/edit.php2,100 ▲82.00 ▼0.0339.40 ▼2.4940.65 ▲2.98
Add New Post /wp-admin/post-new.php1,545 ▼223.36 ▲5.17659.73 ▲56.2363.27 ▲9.36
Media Library /wp-admin/upload.php1,394 ▲34.20 ▲0.0595.05 ▼3.9144.84 ▲2.44

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • elementor_cpt_support
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'UltraAddons\\Widget\\Base' not found in wp-content/plugins/ultraaddons-elementor-lite/inc/widget/info-boards.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/ultraaddons-elementor-lite/template/header-footer-elementor.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ultraaddons-elementor-lite/inc/base/placeholder.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/ultraaddons-elementor-lite/template/header.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultraaddons-elementor-lite/inc/core/list/extensions-array.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'UltraAddons\\Widget\\Base' not found in wp-content/plugins/ultraaddons-elementor-lite/inc/widget/info-boards-deleted.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ultraaddons_elementor_display_content() in wp-content/plugins/ultraaddons-elementor-lite/template/footer.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultraaddons-elementor-lite/inc/wp/custom-field.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'UltraAddons\\Library\\Demo\\Theme_Demo' not found in wp-content/plugins/ultraaddons-elementor-lite/inc/base/theme-demo.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultraaddons-elementor-lite/inc/core/list/widgets-array.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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:
  • Screenshots: A description for screenshot #9 is required in ultraaddons-elementor-lite/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

ultraaddons-elementor-lite/init.php 77% from 13 tests

The principal PHP file in "UltraAddons - Elementor Addons (Header Footer Builder, Custom Font, Custom CSS,Woo Widget, Menu Builder, Anywhere Elementor Shortcode)" v. 1.1.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultraaddons-elementor-lite.php" instead of "init.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin97,512 lines of code in 372 files:
LanguageFilesBlank linesComment linesLines of code
PHP1456,9898,05354,187
JavaScript574,2603,21320,688
CSS1111,55473520,040
SVG4466111,126
HTML2201660
JSON600493
Markdown6780186
Sass1170132

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity12.93
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces12
Interfaces0
Traits3
Classes118
▷ Abstract classes10.85%
▷ Concrete classes11799.15%
▷ Final classes10.85%
Methods1,025
▷ Static methods17717.27%
▷ Public methods42241.17%
▷ Protected methods58456.98%
▷ Private methods191.85%
Functions53
▷ Named functions4279.25%
▷ Anonymous functions1120.75%
Constants20
▷ Global constants1155.00%
▷ Class constants945.00%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 1.32MB with 0.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/no-image.png14.87KB7.94KB▼ 46.59%
assets/images/card.png46.33KB20.24KB▼ 56.32%
assets/images/ultraaddons-logo-old.png13.71KB5.17KB▼ 62.33%
assets/images/newsletter-bg.png425.55KB158.86KB▼ 62.67%
assets/images/header-background.png761.27KB263.99KB▼ 65.32%