68% wpd-bb-additions

Code Review | WPD Beaver Builder Additions

WordPress plugin WPD Beaver Builder Additions scored68%from 54 tests.

About plugin

  • Plugin page: wpd-bb-additions
  • Plugin version: 2.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Jan 15, 2017
  • Latest release: Jul 16, 2018
  • Number of updates: 40
  • Update frequency: every 13.5 days
  • Top authors: smarterdigitalltd (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /22,009 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.73MB] [CPU: ▼53.89ms] Passed 4 tests

This is a short check of server-side resources used by WPD Beaver Builder Additions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.248.30 ▼38.84
Dashboard /wp-admin2.29 ▼1.0212.54 ▼41.61
Posts /wp-admin/edit.php2.29 ▼1.0610.37 ▼43.96
Add New Post /wp-admin/post-new.php2.29 ▼3.6012.54 ▼91.16
Media Library /wp-admin/upload.php2.29 ▼0.949.91 ▼27.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
wpd-bb-additions-activated
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPD Beaver Builder Additions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.42 ▼0.961.97 ▲0.2744.22 ▲0.17
Dashboard /wp-admin2,218 ▲335.79 ▼0.06113.75 ▲7.3242.96 ▼1.17
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0334.61 ▼3.2334.45 ▲1.49
Add New Post /wp-admin/post-new.php1,526 ▲517.68 ▼5.43630.09 ▼18.0150.78 ▲2.22
Media Library /wp-admin/upload.php1,400 ▲124.16 ▼0.08114.28 ▲13.6847.20 ▲0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wpd-bb-additions/wpd-bb-additions.php+81
    Trying to get property 'plugin_slug' of non-object
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • wpd-bb-additions-activated
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpd-bb-additions/app/Components/Modules/wpd-optimised-video/includes/frontend.php
  • 50× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/wpd-bb-additions/app/Components/Modules/wpd-optimised-video/includes/frontend.css.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wpd-bb-additions/app/Components/Modules/Base.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPD\\BBAdditions\\__() in wp-content/plugins/wpd-bb-additions/config/config.php:10
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/wpd-bb-additions/app/Components/Modules/wpd-optimised-video/includes/frontend.css.php on line 6
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/wpd-bb-additions/app/Components/Modules/wpd-optimised-video/includes/frontend.php on line 14
    • > PHP Fatal error
      Trait 'WPD\\Toolset\\Traits\\PluginPropertyGetters' not found in wp-content/plugins/wpd-bb-additions/app/Plugin.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'Mexitek\\PHPColors\\Color' not found in wp-content/plugins/wpd-bb-additions/vendor/mexitek/phpcolors/demo/demo.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPD\\Toolset\\Features\\WhiteLabel' not found in wp-content/plugins/wpd-bb-additions/vendor/smarterdigital/wpd-toolset/features/white-label/wpd-toolset-white-label.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPD\\Toolset\\Utilities\\AdminNotice' not found in wp-content/plugins/wpd-bb-additions/vendor/smarterdigital/wpd-toolset/utilities/admin-notice/wpd-toolset-admin-notice-utilities.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPD\\Toolset\\Traits\\PluginPropertyGetters' not found in wp-content/plugins/wpd-bb-additions/vendor/smarterdigital/wpd-toolset/traits/plugin-property-getters/wpd-toolset-trait-plugin-property-getters.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: beaver builder, beaver builder enhancements, beaver builder modules

wpd-bb-additions/wpd-bb-additions.php Passed 13 tests

This is the main PHP file of "WPD Beaver Builder Additions" version 2.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
A collection of useful modules, custom fields and settings for the Beaver Builder page builder.

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
Success! There were no dangerous files found in this plugin5,457 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PHP601,0162,1424,411
JSON1010530
Markdown71460405
YAML27135
SVG30132
XML27631
JavaScript7008
CSS5005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity13.57
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces25
Interfaces0
Traits1
Classes34
▷ Abstract classes12.94%
▷ Concrete classes3397.06%
▷ Final classes618.18%
Methods308
▷ Static methods11136.04%
▷ Public methods25582.79%
▷ Protected methods4514.61%
▷ Private methods82.60%
Functions19
▷ Named functions631.58%
▷ Anonymous functions1368.42%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/mexitek/phpcolors/demo/phpColor-demo.png26.99KB9.30KB▼ 65.54%