Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.67MB] [CPU: ▲3.42ms] 75% from 4 tests
Analyzing server-side resources used by Build & Control Block Patterns - Boost up Gutenberg Editor
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,549.18ms on /wp-admin/edit.php?post_type=ctrl_block_patterns&page=directory)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.09 ▲1.63 | 49.11 ▲10.78 |
Dashboard /wp-admin | 4.98 ▲1.63 | 59.86 ▼3.19 |
Posts /wp-admin/edit.php | 5.09 ▲1.74 | 63.13 ▲15.06 |
Add New Post /wp-admin/post-new.php | 7.70 ▲1.81 | 93.32 ▼7.97 |
Media Library /wp-admin/upload.php | 4.90 ▲1.68 | 52.77 ▲14.04 |
Category /wp-admin/edit-tags.php?taxonomy=block_pattern_category&post_type=ctrl_block_patterns | 5.02 | 48.81 |
Directory /wp-admin/edit.php?post_type=ctrl_block_patterns&page=directory | 5.54 | 1,549.18 |
Add New /wp-admin/post-new.php?post_type=ctrl_block_patterns | 7.75 | 98.93 |
Block Patterns /wp-admin/edit.php?post_type=ctrl_block_patterns | 4.99 | 51.89 |
Settings /wp-admin/edit.php?post_type=ctrl_block_patterns&page=block-patterns-options | 5.02 | 51.60 |
Keywords /wp-admin/edit-tags.php?taxonomy=block_pattern_tag&post_type=ctrl_block_patterns | 5.03 | 47.08 |
Dashboard /wp-admin/plugins.php?page=control-block-patterns | 4.99 | 42.90 |
Server storage [IO: ▲6.74MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 493 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
cbp_remote_categories |
db_upgraded |
widget_theysaidso_widget |
widget_control-block-patterns-widget |
Browser metrics Passed 4 tests
Checking browser requirements for Build & Control Block Patterns - Boost up Gutenberg Editor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.31 ▼0.04 | 1.56 ▲0.00 | 40.00 ▲1.62 |
Dashboard /wp-admin | 2,241 ▲67 | 5.60 ▼0.02 | 85.50 ▲1.99 | 36.16 ▼5.87 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 1.99 ▼0.01 | 35.86 ▼2.77 | 32.12 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 18.17 ▼5.20 | 603.66 ▼85.38 | 68.81 ▲17.20 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.19 ▲0.05 | 97.79 ▼18.85 | 42.99 ▼5.98 |
Category /wp-admin/edit-tags.php?taxonomy=block_pattern_category&post_type=ctrl_block_patterns | 1,314 | 2.12 | 28.11 | 29.13 |
Directory /wp-admin/edit.php?post_type=ctrl_block_patterns&page=directory | 1,019 | 4.03 | 74.94 | 24.63 |
Add New /wp-admin/post-new.php?post_type=ctrl_block_patterns | 6,266 | 20.21 | 894.71 | 38.50 |
Block Patterns /wp-admin/edit.php?post_type=ctrl_block_patterns | 1,192 | 2.35 | 45.33 | 32.83 |
Settings /wp-admin/edit.php?post_type=ctrl_block_patterns&page=block-patterns-options | 2,595 | 5.21 | 139.64 | 96.78 |
Keywords /wp-admin/edit-tags.php?taxonomy=block_pattern_tag&post_type=ctrl_block_patterns | 1,289 | 2.12 | 25.68 | 28.88 |
Dashboard /wp-admin/plugins.php?page=control-block-patterns | 1,116 | 2.01 | 23.46 | 66.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_control-block-patterns-widget
- cbp_remote_categories
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/control-block-patterns/includes/templates/audio.php
- > /wp-content/plugins/control-block-patterns/includes/templates/image-input.php
- > /wp-content/plugins/control-block-patterns/includes/templates/video.php
- > /wp-content/plugins/control-block-patterns/includes/templates/upload.php
- > /wp-content/plugins/control-block-patterns/classes/sections/products.php
- > /wp-content/plugins/control-block-patterns/includes/templates/media.php
- > /wp-content/plugins/control-block-patterns/includes/template-canvas.php
- > /wp-content/plugins/control-block-patterns/includes/templates/image-advanced.php
- 110× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Fields\\Object_Choice' not found in wp-content/plugins/control-block-patterns/classes/Fields/User.php:12
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Field' not found in wp-content/plugins/control-block-patterns/classes/Fields/Typography.php:14
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Fields\\Taxonomy' not found in wp-content/plugins/control-block-patterns/classes/Fields/Taxonomy_Advanced.php:13
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Field' not found in wp-content/plugins/control-block-patterns/classes/Fields/Group.php:14
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Fields\\Media' not found in wp-content/plugins/control-block-patterns/classes/Fields/File_Upload.php:12
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Field' not found in wp-content/plugins/control-block-patterns/classes/Fields/Textarea.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/control-block-patterns/includes/settings/03-control-css.php:7
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Field' not found in wp-content/plugins/control-block-patterns/classes/Fields/Custom_Html.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/control-block-patterns/classes/sections/welcome.php:11
- > PHP Fatal error
Uncaught Error: Class 'ControlPatterns\\Fields\\Object_Choice' not found in wp-content/plugins/control-block-patterns/classes/Fields/Sidebar.php:12
- > 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 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: Please describe screenshot #9 in control-block-patterns/assets to your readme.txt
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
control-block-patterns/control-block-patterns.php 92% from 13 tests
The principal PHP file in "Build & Control Block Patterns - Boost up Gutenberg Editor" v. 1.3.5.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin47,849 lines of code in 445 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 189 | 2,739 | 6,032 | 12,606 |
CSS | 22 | 1,924 | 182 | 9,689 |
SVG | 6 | 0 | 3 | 9,684 |
JavaScript | 129 | 1,892 | 1,931 | 9,338 |
Sass | 98 | 1,128 | 763 | 6,527 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 150 | |
▷ Abstract classes | 7 | 4.67% |
▷ Concrete classes | 143 | 95.33% |
▷ Final classes | 0 | 0.00% |
Methods | 835 | |
▷ Static methods | 372 | 44.55% |
▷ Public methods | 693 | 82.99% |
▷ Protected methods | 70 | 8.38% |
▷ Private methods | 72 | 8.62% |
Functions | 56 | |
▷ Named functions | 43 | 76.79% |
▷ Anonymous functions | 13 | 23.21% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
assets/img/jqueryui/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/img/layout/left-dual-sidebar.png | 3.83KB | 2.06KB | ▼ 46.34% |
assets/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/img/jqueryui/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |