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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.99 ▲5.52 | 81.08 ▲33.27 |
Dashboard /wp-admin | 9.01 ▲5.66 | 88.34 ▲25.11 |
Posts /wp-admin/edit.php | 9.01 ▲5.64 | 96.73 ▲51.73 |
Add New Post /wp-admin/post-new.php | 11.74 ▲5.84 | 152.16 ▲58.24 |
Media Library /wp-admin/upload.php | 9.01 ▲5.77 | 76.11 ▲43.21 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.01 | 74.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲113 | 14.27 ▲0.10 | 3.08 ▲1.28 | 27.30 ▼20.02 |
Dashboard /wp-admin | 2,231 ▲53 | 5.61 ▼0.10 | 92.20 ▼14.88 | 49.12 ▲7.03 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 1.97 ▼0.18 | 39.83 ▲0.31 | 36.93 ▲4.01 |
Add New Post /wp-admin/post-new.php | 1,622 ▲96 | 20.68 ▼2.58 | 806.11 ▲191.52 | 34.74 ▼18.20 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.21 ▲0.10 | 100.63 ▲5.10 | 46.09 ▲5.04 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,097 | 1.66 | 28.34 | 35.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 49,186 |
PHP | 145 | 9,470 | 20,024 | 40,053 |
JavaScript | 11 | 803 | 173 | 4,038 |
CSS | 18 | 0 | 0 | 42 |
SVG | 1 | 0 | 0 | 5 |
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 code | 0.60 |
Average class complexity | 81.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 3 | 4.55% |
▷ Concrete classes | 63 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 1,560 | |
▷ Static methods | 201 | 12.88% |
▷ Public methods | 1,069 | 68.53% |
▷ Protected methods | 20 | 1.28% |
▷ Private methods | 471 | 30.19% |
Functions | 141 | |
▷ Named functions | 105 | 74.47% |
▷ Anonymous functions | 36 | 25.53% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |