Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼3.33ms] Passed 4 tests
This is a short check of server-side resources used by Block Enhancements
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 43.07 ▼5.53 |
Dashboard /wp-admin | 3.71 ▲0.36 | 54.71 ▼1.21 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 47.12 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 82.55 ▼6.26 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 35.79 ▲1.24 |
Block Enhancements /wp-admin/options-general.php?page=be-settings | 3.55 | 34.84 |
Server storage [IO: ▲3.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Block Enhancements: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.13 ▼1.16 | 4.66 ▲1.88 | 43.43 ▼14.39 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼1.02 | 109.61 ▲9.33 | 42.91 ▲1.12 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 33.31 ▼8.89 | 34.71 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 18.18 ▼5.02 | 714.19 ▲120.18 | 53.53 ▲9.30 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.15 ▼0.03 | 95.82 ▼3.71 | 43.40 ▼2.69 |
Block Enhancements /wp-admin/options-general.php?page=be-settings | 867 | 9.38 | 266.73 | 120.54 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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 everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: icon, gutenberg blocks, blocks, gutenberg, button
block-enhancements/block-enhancements.php 85% from 13 tests
The entry point to "Block Enhancements" version 1.1.19 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
- Requires PHP: Required version must match the one declared in readme.txt ("7.0.0" instead of "7.0")
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
There were no executable files found in this plugin49,668 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 47,086 |
PHP | 14 | 356 | 832 | 1,613 |
JavaScript | 2 | 186 | 22 | 961 |
CSS | 8 | 0 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 45.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 1 | 25.00% |
Methods | 83 | |
▷ Static methods | 1 | 1.20% |
▷ Public methods | 47 | 56.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 43.37% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin