Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.70MB] [CPU: ▲17.75ms] Passed 4 tests
Server-side resources used by Page Builder Gutenberg Blocks – CoBlocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.24 ▲1.78 | 69.85 ▲30.65 |
Dashboard /wp-admin | 4.99 ▲1.68 | 64.23 ▲16.62 |
Posts /wp-admin/edit.php | 5.04 ▲1.69 | 66.48 ▲19.19 |
Add New Post /wp-admin/post-new.php | 8.05 ▲2.16 | 110.79 ▲11.89 |
Media Library /wp-admin/upload.php | 4.86 ▲1.63 | 57.25 ▲23.30 |
Block Patterns /wp-admin/edit.php?post_type=coblocks_pattern | 4.90 | 53.34 |
Server storage [IO: ▲6.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 792 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
coblocks_layout_selector_controls_enabled |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
coblocks_date_installed |
widget_recent-posts |
db_upgraded |
coblocks_site_design_controls_enabled |
Browser metrics Passed 4 tests
Checking browser requirements for Page Builder Gutenberg Blocks – CoBlocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.23 ▼0.01 | 2.47 ▲0.70 | 39.32 ▼6.89 |
Dashboard /wp-admin | 2,201 ▲24 | 5.60 ▲0.08 | 86.47 ▼18.59 | 41.23 ▼1.65 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.94 ▼0.02 | 36.00 ▼0.78 | 31.50 ▼4.74 |
Add New Post /wp-admin/post-new.php | 6,347 ▲4,811 | 27.31 ▲9.16 | 1,196.21 ▲549.13 | 38.62 ▼27.15 |
Media Library /wp-admin/upload.php | 1,471 ▲68 | 4.17 ▲0.00 | 104.51 ▲6.97 | 43.95 ▲2.17 |
Block Patterns /wp-admin/edit.php?post_type=coblocks_pattern | 1,070 | 1.93 | 37.63 | 29.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- coblocks_site_design_controls_enabled
- coblocks_layout_selector_controls_enabled
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CoBlocks_Block_Migration' not found in wp-content/plugins/coblocks/includes/block-migrate/class-coblocks-author-migration.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/coblocks/src/blocks/click-to-tweet/index.php:20
- > PHP Fatal error
Uncaught Error: Class 'CoBlocks_Block_Migration' not found in wp-content/plugins/coblocks/includes/block-migrate/class-coblocks-alert-migration.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coblocks/src/blocks/counter/index.php:40
- > PHP Warning
require_once(COBLOCKS_PLUGIN_DIRincludes/block-migrate/class-coblocks-block-migration-runner.php): failed to open stream: No such file or directory in wp-content/plugins/coblocks/includes/block-migrate/loader.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'COBLOCKS_PLUGIN_DIRincludes/block-migrate/class-coblocks-block-migration-runner.php' (include_path='.:/usr/share/php') in wp-content/plugins/coblocks/includes/block-migrate/loader.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coblocks/src/extensions/layout-selector/index.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coblocks/src/blocks/gist/index.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/coblocks/src/components/gutter-control/gutter-wrapper.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/coblocks/src/components/form-label-colors/label-color-wrapper.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please a description for screenshot #5 in coblocks/assets to your readme.txt
- Screenshots: Please add an image for screenshot #4 (Add CoBlocks core blocks to pages)
coblocks/class-coblocks.php 77% from 13 tests
"Page Builder Gutenberg Blocks – CoBlocks" version 3.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 219 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("coblocks.php" instead of "class-coblocks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin15,358 lines of code in 534 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 1,910 | 2,834 | 6,027 |
JSON | 138 | 3 | 0 | 5,721 |
JavaScript | 48 | 0 | 911 | 3,323 |
SVG | 260 | 1 | 0 | 277 |
CSS | 10 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 28.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 365.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 1 | 3.85% |
Methods | 218 | |
▷ Static methods | 21 | 9.63% |
▷ Public methods | 169 | 77.52% |
▷ Protected methods | 39 | 17.89% |
▷ Private methods | 10 | 4.59% |
Functions | 47 | |
▷ Named functions | 31 | 65.96% |
▷ Anonymous functions | 16 | 34.04% |
Constants | 30 | |
▷ Global constants | 8 | 26.67% |
▷ Class constants | 22 | 73.33% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/coblocks-labs/site-content.png | 15.13KB | 8.72KB | ▼ 42.33% |
dist/images/site-design.0ce62606.png | 19.30KB | 10.25KB | ▼ 46.92% |
dist/images/site-content.da68e2d6.png | 15.13KB | 8.72KB | ▼ 42.33% |
dist/images/layout-selector.69de142d.png | 16.33KB | 9.27KB | ▼ 43.23% |
assets/coblocks-labs/site-design.png | 19.30KB | 10.25KB | ▼ 46.92% |