57% unlimited-elements-for-elementor

Code Review | Unlimited Elements For Elementor (Free Widgets, Addons, Templates)

WordPress plugin Unlimited Elements For Elementor (Free Widgets, Addons, Templates) scored57%from 54 tests.

About plugin

  • Plugin page: unlimited-element...
  • Plugin version: 1.5.87
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Nov 21, 2023
  • Number of updates: 449
  • Update frequency: every 4.7 days
  • Top authors: unitecms (68.82%)valiano (31.4%)

Code review

54 tests

User reviews

342 reviews

Install metrics

200,000+ active /6,589,752 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.57MB] [CPU: ▲6.58ms] Passed 4 tests

An overview of server-side resources used by Unlimited Elements For Elementor (Free Widgets, Addons, Templates)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.86 ▲1.4048.46 ▲7.36
Dashboard /wp-admin4.94 ▲1.6456.68 ▲3.26
Posts /wp-admin/edit.php4.99 ▲1.6356.35 ▲4.96
Add New Post /wp-admin/post-new.php7.48 ▲1.5998.12 ▲12.59
Media Library /wp-admin/upload.php4.86 ▲1.6343.94 ▲10.72
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius5.0540.91

Server storage [IO: ▲18.23MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,278 new files
Database: 2 new tables, 11 new options
New tables
wp_addonlibrary_addons
wp_addonlibrary_categories
New WordPress options
unlimited_elements_notices
theysaidso_admin_options
fs_debug_mode
fs_active_plugins
db_upgraded
widget_recent-comments
can_compress_scripts
fs_accounts
widget_theysaidso_widget
unitecreator_db_version
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Unlimited Elements For Elementor (Free Widgets, Addons, Templates)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7414.24 ▼0.001.88 ▲0.3034.02 ▼9.73
Dashboard /wp-admin2,241 ▲645.69 ▲0.1194.57 ▼0.5993.19 ▲49.08
Posts /wp-admin/edit.php2,149 ▲462.00 ▲0.0639.73 ▼4.9337.33 ▼2.17
Add New Post /wp-admin/post-new.php1,555 ▲2022.60 ▼2.52729.39 ▲118.9857.56 ▼9.81
Media Library /wp-admin/upload.php1,440 ▲464.21 ▲0.0398.57 ▼0.4373.88 ▲29.23
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0931.6626.1731.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/unlimited-elements-for-elementor/provider/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_addonlibrary_addons
    • wp_addonlibrary_categories
  • Zombie WordPress options detected upon uninstall: 11 options
    • theysaidso_admin_options
    • unlimited_elements_notices
    • fs_accounts
    • can_compress_scripts
    • widget_recent-posts
    • unitecreator_db_version
    • fs_debug_mode
    • db_upgraded
    • widget_recent-comments
    • fs_active_plugins
    • ...

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 203× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/unlimited-elements-for-elementor/views/email-test.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/provider/functions_wordpress.class.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/views/testsettings.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/views/layouts_settings.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/provider/provider_layout.class.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/provider/core/plugins/unlimited_elements/plugin.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/provider/pods_integrate.class.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/inc_php/plugins/unitecreator_plugins.class.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/provider/provider_manager_addons.class.php
    • > /wp-content/plugins/unlimited-elements-for-elementor/inc_php/layouts/unitecreator_layout_config_base.class.php
  • 200× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/TokenParser/BlockTokenParser.php:32
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_FilterInterface' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/lib/Twig/Filter.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/Node/Expression/ConstantExpression.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/Sandbox/SecurityError.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\Loader\\LoaderInterface' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/Loader/FilesystemLoader.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/Node/Expression/Binary/AndBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'BloxViewLayoutOuter' not found in wp-content/plugins/unlimited-elements-for-elementor/provider/views/layout_outer.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/lib/Twig/Function/Function.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/TokenParser/SandboxTokenParser.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/Node/Expression/Binary/GreaterEqualBinary.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: Please take inspiration from this readme.txt

unlimited-elements-for-elementor/unlimited_elements.php 92% from 13 tests

The principal PHP file in "Unlimited Elements For Elementor (Free Widgets, Addons, Templates)" v. 1.5.87 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("unlimited-elements-for-elementor.php" instead of "unlimited_elements.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected241,971 lines of code in 1,019 files:
LanguageFilesBlank linesComment linesLines of code
PHP79047,44739,266114,713
JavaScript9431,30217,89686,053
CSS644,45752824,207
SVG3002612,624
XML21521342,388
Markdown52170868
HTML91151725
JSON500383
reStructuredText18510

PHP code 0% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 199)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity23.86
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity199.00
Code structure
Namespaces27
Interfaces27
Traits0
Classes637
▷ Abstract classes233.61%
▷ Concrete classes61496.39%
▷ Final classes579.28%
Methods6,304
▷ Static methods1,08417.20%
▷ Public methods3,84260.95%
▷ Protected methods72611.52%
▷ Private methods1,73627.54%
Functions295
▷ Named functions26890.85%
▷ Anonymous functions279.15%
Constants970
▷ Global constants11211.55%
▷ Class constants85888.45%
▷ Public constants85799.88%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
131 PNG files occupy 0.47MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets_libraries/unitegallery/skins/default/icon_zoom_plus.png0.33KB0.24KB▼ 29.12%
images/transparent.png0.19KB0.09KB▼ 49.74%
js/farbtastic/marker.png0.64KB0.71KB0.00%
images/icon-16-blox.png0.61KB0.66KB0.00%
images/transtiled.png0.29KB0.11KB▼ 61.90%