78% cb-custom-modules

Code Review | CB Custom Beaver Builder Modules

WordPress plugin CB Custom Beaver Builder Modules scored78%from 54 tests.

About plugin

  • Plugin page: cb-custom-modules
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Aug 27, 2020
  • Number of updates: 36
  • Update frequency: every 43.0 days
  • Top authors: bacoords (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /42,141 total downloads

Benchmarks

Plugin footprint 83% 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: ▼0.00MB] [CPU: ▼6.86ms] Passed 4 tests

Server-side resources used by CB Custom Beaver Builder Modules
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.27 ▼0.93
Dashboard /wp-admin3.31 ▼0.0345.70 ▼12.34
Posts /wp-admin/edit.php3.36 ▲0.0143.53 ▼3.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.93 ▼10.62
Media Library /wp-admin/upload.php3.24 ▲0.0135.58 ▲2.71

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by CB Custom Beaver Builder Modules
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.18 ▼0.001.83 ▲0.1546.23 ▲5.16
Dashboard /wp-admin2,189 ▲85.51 ▼0.2381.55 ▼21.6839.86 ▲0.78
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0337.43 ▲2.7833.34 ▲0.41
Add New Post /wp-admin/post-new.php1,526 ▼223.53 ▲0.47651.60 ▼28.9960.03 ▲1.02
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0997.17 ▼6.2842.06 ▼3.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 25× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/cb-custom-modules/cb-broadside/includes/frontend.css.php
    • > /wp-content/plugins/cb-custom-modules/cb-poise/includes/frontend.css.php
    • > /wp-content/plugins/cb-custom-modules/cb-button-list/includes/frontend.css.php
    • > /wp-content/plugins/cb-custom-modules/cb-menu/includes/frontend.js.php
    • > /wp-content/plugins/cb-custom-modules/cb-link-list/includes/frontend.php
    • > /wp-content/plugins/cb-custom-modules/cb-button-list/includes/frontend.php
    • > /wp-content/plugins/cb-custom-modules/cb-caption/includes/frontend.css.php
    • > /wp-content/plugins/cb-custom-modules/cb-dust/includes/frontend.css.php
    • > /wp-content/plugins/cb-custom-modules/cb-caption/includes/frontend.js.php
    • > /wp-content/plugins/cb-custom-modules/cb-drawerfolio/includes/frontend.php
  • 227× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cb-custom-modules/cb-custom-module.php:11
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/cb-custom-modules/cb-broadside/includes/frontend.js.php on line 17
    • > PHP Notice
      Trying to get property 'cb_broadside_multiple_photos_field' of non-object in wp-content/plugins/cb-custom-modules/cb-broadside/includes/frontend.php on line 15
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cb-custom-modules/cb-broadside/includes/frontend.css.php on line 18
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cb-custom-modules/cb-link-list/includes/frontend.css.php on line 19
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cb-custom-modules/cb-scout/includes/frontend.css.php on line 101
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/cb-custom-modules/cb-simple-events/cb-simple-events.php:9
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/cb-custom-modules/cb-drawerfolio/includes/frontend.css.php on line 36
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/cb-custom-modules/cb-broadside/includes/frontend.css.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to a member function responsive_breakpoint() on null in wp-content/plugins/cb-custom-modules/cb-scout/includes/frontend.js.php:25

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: page builder, drag and drop, photography, builder, beaver builder...

cb-custom-modules/cb-custom-module.php 92% from 13 tests

This is the main PHP file of "CB Custom Beaver Builder Modules" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cb-custom-modules.php" instead of "cb-custom-module.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin6,729 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP526996545,355
Sass10479581
JavaScript7153160520
CSS141315271
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity3.15
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/BB-date-Field-master/assets/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
includes/BB-date-Field-master/assets/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
includes/BB-date-Field-master/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
includes/BB-date-Field-master/assets/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
includes/BB-date-Field-master/assets/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%