79% content-blocks-builder

Code Review | Content Blocks Builder

WordPress plugin Content Blocks Builder scored79%from 54 tests.

About plugin

  • Plugin page: content-blocks-bu...
  • Plugin version: 2.4.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 146
  • Update frequency: every 5.3 days
  • Top authors: Mr2P (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /10,550 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.65MB] [CPU: ▲38.33ms] 75% from 4 tests

An overview of server-side resources used by Content Blocks Builder
It is recommended to improve the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.65MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.99 ▲5.5281.08 ▲33.27
Dashboard /wp-admin9.01 ▲5.6688.34 ▲25.11
Posts /wp-admin/edit.php9.01 ▲5.6496.73 ▲51.73
Add New Post /wp-admin/post-new.php11.74 ▲5.84152.16 ▲58.24
Media Library /wp-admin/upload.php9.01 ▲5.7776.11 ▲43.21
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.0174.25

Server storage [IO: ▲7.87MB] [DB: ▲0.03MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 223 new files
Database: no new tables, 13 new options
New WordPress options
widget_theysaidso_widget
cbb_current_version
widget_recent-comments
fs_debug_mode
boldblocks_core_blocks_version
boldblocks_deployed_core_blocks
db_upgraded
fs_active_plugins
boldblocks_activation_redirect
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Content Blocks Builder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11314.27 ▲0.103.08 ▲1.2827.30 ▼20.02
Dashboard /wp-admin2,231 ▲535.61 ▼0.1092.20 ▼14.8849.12 ▲7.03
Posts /wp-admin/edit.php2,143 ▲431.97 ▼0.1839.83 ▲0.3136.93 ▲4.01
Add New Post /wp-admin/post-new.php1,622 ▲9620.68 ▼2.58806.11 ▲191.5234.74 ▼18.20
Media Library /wp-admin/upload.php1,433 ▲304.21 ▲0.10100.63 ▲5.1046.09 ▲5.04
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0971.6628.3435.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/content-blocks-builder/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 13 options
    • widget_recent-comments
    • boldblocks_activation_redirect
    • boldblocks_deployed_core_blocks
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • fs_accounts
    • boldblocks_core_blocks_version
    • cbb_current_version
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: carousel, grid, page builder, blocks, patterns

content-blocks-builder/content-blocks-builder.php 92% from 13 tests

The primary PHP file in "Content Blocks Builder" version 2.4.10 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.0.0" instead of "7.0")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin93,324 lines of code in 179 files:
LanguageFilesBlank linesComment linesLines of code
JSON40049,186
PHP1459,47020,02440,053
JavaScript118031734,038
CSS180042
SVG1005

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity81.84
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes66
▷ Abstract classes34.55%
▷ Concrete classes6395.45%
▷ Final classes00.00%
Methods1,560
▷ Static methods20112.88%
▷ Public methods1,06968.53%
▷ Protected methods201.28%
▷ Private methods47130.19%
Functions141
▷ Named functions10574.47%
▷ Anonymous functions3625.53%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%