67% ultra-elementor-addons

Code Review | Ultra Elementor Addons

WordPress plugin Ultra Elementor Addons scored 67% from 54 tests.

About plugin

  • Plugin page: ultra-elementor-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4.2
  • WordPress version: 5.9.2
  • First release: Jul 19, 2020
  • Latest release: Jul 19, 2020
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: ultradevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 273 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲4.77MB] [CPU: ▼262.30ms] Passed 4 tests

A check of server-side resources used by Ultra Elementor Addons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /9.14 ▲5.6389.32 ▲39.90
Dashboard /wp-admin9.16 ▲5.7668.09 ▲35.08
Posts /wp-admin/edit.php9.16 ▲5.5270.16 ▲33.17
Add New Post /wp-admin/post-new.php9.16 ▲2.19120.32 ▼1,157.34
Media Library /wp-admin/upload.php9.16 ▲5.8764.38 ▲41.70
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius9.1663.95

Server storage [IO: ▲4.57MB] [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: 244 new files
Database: no new tables, 7 new options
New WordPress options
fs_active_plugins
fs_accounts
fs_debug_mode
elementor_icon_manager_needs_update
fs_gdpr
elementor_load_fa4_shim
ultra_addons_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultra Elementor Addons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,042 ▲30016.52 ▲0.9111.51 ▲5.062.43 ▲0.29
Dashboard /wp-admin2,990 ▲1296.28 ▲0.11117.97 ▼18.35190.34 ▲23.68
Posts /wp-admin/edit.php2,788 ▲1003.13 ▼0.1063.07 ▼1.06158.47 ▲15.35
Add New Post /wp-admin/post-new.php2,398 ▲73022.46 ▲5.03437.83 ▲32.58162.73 ▲9.93
Media Library /wp-admin/upload.php1,794 ▲965.67 ▲0.15126.48 ▼17.38228.47 ▲44.51
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius1,4392.5153.19111.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/ultra-elementor-addons/vendor/freemius/includes/class-freemius.php+8218
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • elementor_load_fa4_shim
    • fs_gdpr
    • fs_accounts
    • ultra_addons_version
    • fs_active_plugins
    • fs_debug_mode
    • elementor_icon_manager_needs_update

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/ultra-elementor-addons/templates/admin/dashboard-home.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultra-elementor-addons/vendor/freemius/templates/account/partials/addon.php on line 7

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 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
5 plugin tags: elementor widgets, helpful widgets, elementor addons, elementor, essential widgets

ultra-elementor-addons/ultra-addons.php 85% from 13 tests

Analyzing the main PHP file in "Ultra Elementor Addons" version 1.0.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultra-elementor-addons.php" instead of "ultra-addons.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin53,684 lines of code in 191 files:
LanguageFilesBlank linesComment linesLines of code
PHP1347,81416,60334,720
PO File126,9608,45515,240
CSS26382722,431
JavaScript132181751,006
Markdown1610192
SVG31067
JSON20028

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,772)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity63.56
▷ Minimum class complexity1.00
▷ Maximum class complexity2,772.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes64
▷ Abstract classes34.69%
▷ Concrete classes6195.31%
▷ Final classes23.28%
Methods1,251
▷ Static methods20015.99%
▷ Public methods88971.06%
▷ Protected methods362.88%
▷ Private methods32626.06%
Functions105
▷ Named functions10398.10%
▷ Anonymous functions21.90%
Constants139
▷ Global constants10374.10%
▷ Class constants3625.90%
▷ Public constants36100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.31MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/public/vendor/owl-carousel/css/owl.video.play.png4.86KB2.74KB▼ 43.61%
vendor/freemius/assets/img/ultra-addons.png25.47KB8.26KB▼ 67.56%
(invalid) assets/admin/images/ua_menu.png237.06KB0.00KB▼ 100.00%
vendor/freemius/assets/img/ua.png9.16KB5.26KB▼ 42.58%
assets/images/ua_icon.png25.47KB8.26KB▼ 67.56%