Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.76MB] [CPU: ▼0.95ms] Passed 4 tests
An overview of server-side resources used by Gutenberg Blocks & Template Library - Block Engine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.42 ▲3.96 | 57.00 ▲21.45 |
Dashboard /wp-admin | 4.34 ▲0.99 | 61.04 ▲4.22 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 56.14 ▲6.72 |
Add New Post /wp-admin/post-new.php | 5.86 ▼0.03 | 62.84 ▼30.52 |
Media Library /wp-admin/upload.php | 4.26 ▲1.03 | 50.90 ▲15.78 |
Server storage [IO: ▲6.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
block_engine_plugin_db_version |
block_engine_plugin_version |
db_upgraded |
block_engine_install_date |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Gutenberg Blocks & Template Library - Block Engine: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲10 | 14.35 ▼0.00 | 1.63 ▼0.41 | 38.32 ▼6.37 |
Dashboard /wp-admin | 2,197 ▲23 | 5.64 ▲0.01 | 92.07 ▼1.78 | 39.86 ▼3.46 |
Posts /wp-admin/edit.php | 2,084 ▼19 | 2.03 ▲0.02 | 35.21 ▼7.51 | 33.86 ▼3.24 |
Add New Post /wp-admin/post-new.php | 6,206 ▲4,670 | 21.81 ▼1.32 | 961.56 ▲333.31 | 63.86 ▲15.93 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.18 ▲0.02 | 95.16 ▼3.84 | 41.29 ▼3.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- block_engine_plugin_version
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- block_engine_plugin_db_version
- block_engine_install_date
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 | 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
Almost there! Just fix the following items
- 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include_once(BLOCK_ENGINE_ABSPATHincludes/hooks/class-block-engine-blocks-hooks.php): failed to open stream: No such file or directory in wp-content/plugins/block-engine/includes/class-block-engine-hooks.php on line 50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/star-rating/index.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/number-box/index.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/post-grid/index.php:254
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/block-engine/includes/hooks/class-block-engine-blocks-hooks.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/tabbed-content/index.php:120
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/social-share/index.php:282
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/block-engine/includes/guten/defaults.php:460
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/call-to-action/index.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/content-toggle/index.php:85
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: gutenberg, blocks, gutenberg blocks, editor
block-engine/block-engine.php Passed 13 tests
"Gutenberg Blocks & Template Library - Block Engine" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Gutenberg Blocks & Template Library
Code Analysis Passed 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 plugin65,514 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 5,511 | 5,729 | 43,396 |
PHP | 43 | 943 | 999 | 10,235 |
SVG | 3 | 0 | 12 | 8,882 |
CSS | 4 | 1,426 | 12 | 3,001 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 30.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 4 | 28.57% |
Methods | 132 | |
▷ Static methods | 7 | 5.30% |
▷ Public methods | 109 | 82.58% |
▷ Protected methods | 15 | 11.36% |
▷ Private methods | 8 | 6.06% |
Functions | 115 | |
▷ Named functions | 101 | 87.83% |
▷ Anonymous functions | 14 | 12.17% |
Constants | 31 | |
▷ Global constants | 31 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/block-engine-logo.png | 5.36KB | 5.26KB | ▼ 1.77% |