Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.55ms] Passed 4 tests
An overview of server-side resources used by Blocks Everywhere
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 38.87 ▼0.41 |
Dashboard /wp-admin | 3.52 ▲0.22 | 45.91 ▼3.28 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 48.45 ▲0.94 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 83.84 ▼11.43 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 36.80 ▲3.27 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blocks Everywhere
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 13.90 ▼0.44 | 1.74 ▼0.04 | 42.04 ▲0.93 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.11 | 80.58 ▼3.36 | 34.53 ▼7.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.04 | 38.05 ▲3.61 | 34.79 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 18.42 ▼4.71 | 597.99 ▼82.19 | 65.95 ▲15.34 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 94.18 ▼4.24 | 40.44 ▼4.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Blocks_Everywhere\\Handler\\Handler' not found in wp-content/plugins/blocks-everywhere/classes/handlers/class-bbpress.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Blocks_Everywhere\\add_action() in wp-content/plugins/blocks-everywhere/blocks-everywhere.php:60
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Blocks_Everywhere\\Handler\\Handler' not found in wp-content/plugins/blocks-everywhere/classes/handlers/class-buddypress.php:5
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Blocks_Everywhere\\Handler\\Handler' not found in wp-content/plugins/blocks-everywhere/classes/handlers/class-comments.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Gutenberg in a comment form), #2 (Gutenberg when editing a comment)
blocks-everywhere/blocks-everywhere.php 85% from 13 tests
The main PHP script in "Blocks Everywhere" version 1.21.0 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,509 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 239 | 452 | 916 |
Markdown | 1 | 121 | 0 | 553 |
JavaScript | 3 | 0 | 22 | 30 |
CSS | 4 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 1 | 1.61% |
▷ Public methods | 48 | 77.42% |
▷ Protected methods | 2 | 3.23% |
▷ Private methods | 12 | 19.35% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 48.74KB | 12.44KB | ▼ 74.48% |
screenshot-2.png | 55.95KB | 14.87KB | ▼ 73.43% |
build/images/wordpress.e7ce7231.png | 1.78KB | 1.69KB | ▼ 4.99% |