10% unlimited-addons-for-wpbakery-page-builder

Code Review | Unlimited Addons for WPBakery Page Builder

WordPress plugin Unlimited Addons for WPBakery Page Builder scored 10% from 54 tests.

About plugin

  • Plugin page: unlimited-addons-...
  • Plugin version: 1.0.42
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2017
  • Latest release: Apr 18, 2023
  • Number of updates: 42
  • Update frequency: every 47.3 days
  • Top authors: unitecms (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active / 156,588 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/framework/functions.class.php+1530
    mkdir(): File exists

Server metrics [RAM: ▲0.61MB] [CPU: ▼1.66ms] Passed 4 tests

A check of server-side resources used by Unlimited Addons for WPBakery Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5041.74 ▲3.40
Dashboard /wp-admin3.94 ▲0.6446.26 ▼1.19
Posts /wp-admin/edit.php3.99 ▲0.6451.13 ▲1.69
Add New Post /wp-admin/post-new.php6.54 ▲0.6684.31 ▼10.52
Media Library /wp-admin/upload.php3.87 ▲0.6437.40 ▲5.35
My Addons /wp-admin/admin.php?page=unitecreator3.9441.59
Go Unlimited /wp-admin/admin.php?page=unitecreator_gounlimited2.5610.09
General Settings /wp-admin/admin.php?page=unitecreator_settings3.9742.28

Server storage [IO: ▲9.04MB] [DB: ▲0.05MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 883 new files
Database: 2 new tables, 7 new options
New tables
wp_addonlibrary_categories
wp_addonlibrary_addons
New WordPress options
can_compress_scripts
widget_theysaidso_widget
untecreator_state
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics 75% from 4 tests

This is an overview of browser requirements for Unlimited Addons for WPBakery Page Builder
It is time to focus on the following
  • Nodes: Try to keep the DOM nodes under 25,000 (currently 41,936 on /wp-admin/admin.php?page=unitecreator_gounlimited)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.37 ▼1.041.58 ▲0.0239.84 ▲0.74
Dashboard /wp-admin2,241 ▲505.88 ▲0.9997.23 ▼17.5473.25 ▲32.83
Posts /wp-admin/edit.php2,121 ▲321.98 ▼0.0340.37 ▼0.2636.49 ▼0.07
Add New Post /wp-admin/post-new.php1,702 ▲18825.17 ▲7.45694.09 ▲5.7355.22 ▼5.90
Media Library /wp-admin/upload.php1,423 ▲384.19 ▼0.0298.14 ▼1.4176.68 ▲33.01
My Addons /wp-admin/admin.php?page=unitecreator1,9023.9878.0494.51
Go Unlimited /wp-admin/admin.php?page=unitecreator_gounlimited41,9367.02218.80167.55
General Settings /wp-admin/admin.php?page=unitecreator_settings1,9283.6052.3774.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_addonlibrary_addons
    • wp_addonlibrary_categories
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • untecreator_state
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% 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 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 fix the following items
  • 136× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/unitecreator_output.class.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/templates/unitecreator_template.class.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/views/templates/header.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/unitecreator_variables_output.class.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/views/templates/addon_defaults.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/framework/functions.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/views/objects/addon_view.class.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/framework/base_output.class.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/framework/instagram/obj_item.class.php
    • > /wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/inc_php/unitecreator_helperhtml.class.php
  • 178× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/Node/Expression/Binary/FloorDivBinary.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/Node/Expression/Binary/MatchesBinary.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/Node/Expression/Binary/InBinary.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/Node/PrintNode.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\Extension\\ExtensionInterface' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/Extension/AbstractExtension.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/Node/Expression/Test/DefinedTest.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/provider/functions_wordpress.class.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/TokenParser/IfTokenParser.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/TokenParser/IncludeTokenParser.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/unlimited-addons-for-wpbakery-page-builder/vendor/twig/twig/src/Node/Expression/ParentExpression.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=unitecreator_gounlimited
    • > Security (warning) in unknown
    security - Error with Feature-Policy header: Unrecognized feature: 'speaker'.

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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === unlimited-addons-for-wpbakery-page-builder === )
The official readme.txt might help

unlimited-addons-for-wpbakery-page-builder/unlimited_addons.php 92% from 13 tests

The main PHP file in "Unlimited Addons for WPBakery Page Builder" ver. 1.0.42 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unlimited-addons-for-wpbakery-page-builder.php" instead of "unlimited_addons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin116,386 lines of code in 680 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6620,22512,31249,856
PHP54719,87715,46943,721
CSS341,93842916,586
SVG2003,356
XML1629671,330
HTML91151725
Markdown31450645
JSON300167

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.87
▷ Minimum class complexity1.00
▷ Maximum class complexity553.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces24
Interfaces26
Traits0
Classes483
▷ Abstract classes142.90%
▷ Concrete classes46997.10%
▷ Final classes40.85%
Methods3,128
▷ Static methods52516.78%
▷ Public methods2,03665.09%
▷ Protected methods45714.61%
▷ Private methods63520.30%
Functions84
▷ Named functions7892.86%
▷ Anonymous functions67.14%
Constants461
▷ Global constants6814.75%
▷ Class constants39385.25%
▷ Public constants393100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
147 PNG files occupy 0.20MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets_libraries/unitegallery/skins/alexis/images/grid_arrow_left.png2.11KB2.19KB0.00%
assets_libraries/unitegallery/skins/default/button_fullscreen.png1.03KB0.95KB▼ 7.81%
css/jui/new/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
images/icon_plus_blue_32.png1.42KB1.17KB▼ 17.90%
provider/assets/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%