Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼11.67ms] Passed 4 tests
This is a short check of server-side resources used by Blocks – Ultimate Page Building Blocks for Gutenberg
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.08 ▼1.74 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.73 ▼4.02 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.75 ▲2.82 |
Add New Post /wp-admin/post-new.php | 4.90 ▼0.99 | 56.54 ▼39.78 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.24 ▼1.15 |
Server storage [IO: ▲3.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Blocks – Ultimate Page Building Blocks for Gutenberg
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲133 | 16.09 ▲1.76 | 7.56 ▲5.68 | 43.37 ▼2.42 |
Dashboard /wp-admin | 2,210 ▲33 | 6.55 ▲0.92 | 98.64 ▲5.64 | 40.96 ▼1.39 |
Posts /wp-admin/edit.php | 2,112 ▲10 | 3.54 ▲1.56 | 41.57 ▲3.56 | 32.28 ▼4.12 |
Add New Post /wp-admin/post-new.php | 6,274 ▲4,746 | 20.46 ▼2.76 | 961.91 ▲286.13 | 42.16 ▼19.10 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 6.11 ▲1.83 | 103.12 ▼8.43 | 42.01 ▼5.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: customizable block, gutenberg editor, addon, block, page builder...
blocks-builder/class-blocks-builder.php 92% from 13 tests
The main PHP script in "Blocks – Ultimate Page Building Blocks for Gutenberg" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("blocks-builder.php" instead of "class-blocks-builder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin14,117 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 574 | 78 | 6,965 |
SVG | 3 | 0 | 0 | 3,927 |
CSS | 26 | 1,188 | 6 | 2,832 |
PHP | 2 | 19 | 114 | 393 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin