Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.44ms] Passed 4 tests
Analyzing server-side resources used by Disable Gutenberg Blocks - Block Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.72 ▼12.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.64 ▲1.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.12 ▼0.12 |
Add New Post /wp-admin/post-new.php | 5.85 ▼0.04 | 89.61 ▼7.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.32 ▲3.27 |
Disable Blocks /wp-admin/options-general.php?page=disable-blocks | 3.63 | 37.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Disable Gutenberg Blocks - Block Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.27 | 1.81 ▲0.09 | 43.65 ▲0.61 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲1.00 | 106.73 ▼6.63 | 35.80 ▼6.62 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.01 | 39.43 ▼0.05 | 33.28 ▼4.63 |
Add New Post /wp-admin/post-new.php | 1,683 ▲164 | 21.83 ▼1.19 | 661.51 ▲10.73 | 59.87 ▼5.23 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.18 ▼0.03 | 97.68 ▼7.08 | 45.53 ▲0.21 |
Disable Blocks /wp-admin/options-general.php?page=disable-blocks | 2,351 | 8.66 | 269.68 | 47.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant DGB_PLUGIN_DIR_PATH - assumed 'DGB_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-gutenberg-blocks/class-dgb-admin-page.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/disable-gutenberg-blocks/class-dgb-list-table.php on line 11
- > PHP Warning
require_once(DGB_PLUGIN_DIR_PATHclass-dgb-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/disable-gutenberg-blocks/class-dgb-admin-page.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/disable-gutenberg-blocks/class-dgb-list-table.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-gutenberg-blocks/class-dgb-list-table.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'DGB_PLUGIN_DIR_PATHclass-dgb-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/disable-gutenberg-blocks/class-dgb-admin-page.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: manage blocks, disable blocks, disable gutenberg blocks, gutenberg, blocks
disable-gutenberg-blocks/class-disable-gutenberg-blocks.php 85% from 13 tests
Analyzing the main PHP file in "Disable Gutenberg Blocks - Block Manager" version 1.0.9
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-gutenberg-blocks.php" instead of "class-disable-gutenberg-blocks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin364 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 118 | 156 | 277 |
JavaScript | 3 | 12 | 0 | 72 |
CSS | 1 | 4 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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 were not PNG files found in your plugin