Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.99ms] Passed 4 tests
Analyzing server-side resources used by Disable Block - Hide blocks in the frontend
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 45.52 ▲1.48 |
Dashboard /wp-admin | 3.33 ▼0.02 | 52.92 ▼20.52 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.92 ▲1.65 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 101.41 ▼3.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.01 ▼1.27 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable Block - Hide blocks in the frontend
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.17 ▼0.39 | 1.96 ▲0.41 | 47.25 ▲6.62 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.14 | 95.36 ▼1.38 | 42.60 ▲1.13 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.98 ▼0.01 | 34.35 ▼7.68 | 35.61 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,691 ▲162 | 22.85 ▲0.06 | 667.61 ▲26.06 | 52.61 ▼5.11 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.01 | 99.00 ▼0.14 | 42.90 ▼3.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: gutenberg, hide block, disable, disable block, block...
disable-block/disable-block.php Passed 13 tests
The entry point to "Disable Block - Hide blocks in the frontend" version 1.2.1 is a PHP file that has certain tags in its header comment area
102 characters long description:
Adds a button in the toolbar to disable that block, preventing rendering of the block in the frontend.
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 plugin116 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 41 | 71 |
Markdown | 1 | 12 | 0 | 23 |
SVG | 1 | 0 | 1 | 17 |
JavaScript | 1 | 1 | 176 | 4 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ 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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.52MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 15.34KB | 6.21KB | ▼ 59.50% |
assets/icon-256x256.png | 6.49KB | 2.64KB | ▼ 59.39% |
assets/screenshot-1.png | 480.28KB | 185.62KB | ▼ 61.35% |
assets/banner-1544x500.png | 32.56KB | 13.20KB | ▼ 59.45% |