Benchmarks
Plugin footprint 82% 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: ▼0.08MB] [CPU: ▼11.79ms] Passed 4 tests
An overview of server-side resources used by Bokez - Wordpress 5 Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 41.77 ▼1.30 |
Dashboard /wp-admin | 3.54 ▲0.24 | 49.92 ▲0.41 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 53.50 ▼5.75 |
Add New Post /wp-admin/post-new.php | 4.83 ▼1.06 | 47.27 ▼40.51 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.82 ▲2.89 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/bokez-awesome-gutenberg-blocks/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Bokez - Wordpress 5 Blocks: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲185 | 13.57 ▼0.71 | 6.06 ▲4.08 | 37.28 ▼1.88 |
Dashboard /wp-admin | 2,241 ▲41 | 5.82 ▲0.00 | 99.34 ▼3.67 | 39.97 ▼1.28 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.05 ▲0.04 | 41.04 ▲2.73 | 36.32 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,503 ▼23 | 20.94 ▲3.52 | 690.70 ▲4.99 | 60.65 ▲5.21 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.25 ▼0.04 | 96.89 ▼14.02 | 44.06 ▼6.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/dist/panel/init.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/faq/index.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/profile/index.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/video-popup/index.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bokez-awesome-gutenberg-blocks/dist/panel/view.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/blockquote/index.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/section/index.php:155
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/separator-heading/index.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/column/index.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bokez-awesome-gutenberg-blocks/src/blocks/posts-grid/index.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: wordpress 5, gutenberg, wordpress 5 editor, customizable blocks, gutenberg addon...
bokez-awesome-gutenberg-blocks/plugin.php 92% from 13 tests
"Bokez - Wordpress 5 Blocks" version 2.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("bokez-awesome-gutenberg-blocks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,843 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 47 | 1,130 | 215 | 4,315 |
Sass | 33 | 413 | 65 | 1,821 |
PHP | 21 | 415 | 218 | 1,434 |
Markdown | 1 | 65 | 0 | 161 |
CSS | 3 | 21 | 4 | 112 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 47 | 94.00% |
▷ Anonymous functions | 3 | 6.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.62MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/panel/img/block-settings.png | 86.88KB | 24.81KB | ▼ 71.45% |
dist/panel/img/blockquote-block.png | 58.26KB | 22.32KB | ▼ 61.69% |
dist/panel/img/adding-new-block.png | 81.83KB | 25.21KB | ▼ 69.19% |
dist/panel/img/gutenberg-install.png | 79.56KB | 29.78KB | ▼ 62.57% |
dist/panel/img/memphis-colorful.png | 21.45KB | 10.21KB | ▼ 52.41% |