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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.22MB] [CPU: ▼13.67ms] Passed 4 tests
Server-side resources used by Editor Blocks for Gutenberg
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.54 ▼5.29 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.68 ▼0.39 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.38 ▼4.34 |
Add New Post /wp-admin/post-new.php | 4.86 ▼1.03 | 56.11 ▼44.67 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.39 ▲3.19 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Editor Blocks for Gutenberg
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.25 ▼1.50 | 1.66 ▼0.27 | 40.96 ▼5.92 |
Dashboard /wp-admin | 2,224 ▲39 | 5.80 ▼0.06 | 101.34 ▼0.22 | 41.71 ▼1.28 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.05 ▼0.00 | 40.98 ▲0.99 | 34.94 ▼4.71 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,825 | 28.28 ▲9.96 | 836.02 ▲238.31 | 56.26 ▲2.55 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.29 ▲0.05 | 93.46 ▼4.58 | 41.94 ▼0.73 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/editor-blocks/admin/welcome.php:207
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editor-blocks/src/author/index.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: blocks, page builder, editor blocks, gutenberg, gutenberg blocks
editor-blocks/plugin.php 92% from 13 tests
This is the main PHP file of "Editor Blocks for Gutenberg" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editor-blocks.php" instead of "plugin.php")
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
No dangerous file extensions were detected3,863 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 27 | 192 | 118 | 2,730 |
Sass | 21 | 127 | 0 | 724 |
PHP | 4 | 47 | 79 | 260 |
CSS | 3 | 19 | 0 | 149 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 1 | 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
11 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/information-outline.png | 1.66KB | 0.87KB | ▼ 47.23% |
admin/images/arrow-thin-down.png | 0.65KB | 0.41KB | ▼ 37.01% |
admin/images/list-bullet.png | 0.23KB | 0.12KB | ▼ 48.29% |
admin/images/announcement.png | 0.60KB | 0.39KB | ▼ 35.39% |
admin/images/badge.png | 1.18KB | 0.62KB | ▼ 47.22% |