67% supreme-addons-for-beaver-builder-lite

Code Review | Supreme Addons for Beaver Builder -

WordPress plugin Supreme Addons for Beaver Builder - scored 67% from 54 tests.

About plugin

  • Plugin page: supreme-addons-fo...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2018
  • Latest release: Jul 8, 2023
  • Number of updates: 24
  • Update frequency: every 83.0 days
  • Top authors: ullakalim8 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,049 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.94ms] Passed 4 tests

Server-side resources used by Supreme Addons for Beaver Builder -
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.85 ▼4.94
Dashboard /wp-admin3.31 ▲0.0046.76 ▼5.40
Posts /wp-admin/edit.php3.36 ▲0.0046.47 ▲0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.00 ▼8.50
Media Library /wp-admin/upload.php3.23 ▲0.0035.15 ▼0.90

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 438 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Supreme Addons for Beaver Builder -
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.331.61 ▼0.3239.08 ▼15.56
Dashboard /wp-admin2,209 ▲215.91 ▲0.9795.58 ▼13.0135.98 ▼4.13
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0236.35 ▲1.1434.80 ▼0.65
Add New Post /wp-admin/post-new.php1,547 ▲3318.19 ▲0.52601.66 ▼9.2171.84 ▲21.19
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0996.46 ▲0.4142.64 ▼0.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php
    • > /wp-content/plugins/supreme-addons-for-beaver-builder-lite/assets/lib/index.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'default_event_name' of non-object in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php on line 41
    • > PHP Notice
      Trying to get property 'default_event_end' of non-object in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php on line 40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/QR-Code/includes/frontend.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/supreme-addons-for-beaver-builder-lite/bb-supreme-addon.php:15
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php on line 41
    • > PHP Notice
      Trying to get property 'default_event_address' of non-object in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php on line 42
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php on line 40
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php on line 39
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/includes/frontend.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/supreme-addons-for-beaver-builder-lite/modules/Add-to-calender/Add-to-calender.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

supreme-addons-for-beaver-builder-lite/bb-supreme-addon.php 77% from 13 tests

"Supreme Addons for Beaver Builder -" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 221 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("supreme-addons-for-beaver-builder-lite.php" instead of "bb-supreme-addon.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/supreme-addons-for-beaver-builder-lite/assets/lib/tools/merge.bat
4,635 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP231,3251,1244,631
Bourne Shell1002
DOS Batch1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity22.82
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes00.00%
Methods270
▷ Static methods12245.19%
▷ Public methods26698.52%
▷ Protected methods00.00%
▷ Private methods41.48%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants74
▷ Global constants74100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
44 PNG files occupy 0.73MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lib/cache/frame_39.png0.26KB0.23KB▼ 9.85%
assets/lib/cache/frame_27.png0.23KB0.22KB▼ 6.33%
assets/lib/cache/frame_36.png0.27KB0.25KB▼ 7.72%
assets/lib/cache/frame_28.png0.23KB0.21KB▼ 5.98%
screenshot-3.png130.39KB43.01KB▼ 67.01%