Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.07MB] [CPU: ▼305.13ms] Passed 4 tests
Server-side resources used by Gutenberg Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 82.27 ▲23.04 |
Dashboard /wp-admin | 3.61 ▲0.20 | 36.71 ▲4.85 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 47.19 ▲10.43 |
Add New Post /wp-admin/post-new.php | 6.14 ▼0.83 | 68.67 ▼1,230.17 |
Media Library /wp-admin/upload.php | 3.49 ▲0.19 | 24.87 ▼5.63 |
Gutenberg Manager /wp-admin/options-general.php?page=gutenberg-manager | 3.46 | 24.80 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Gutenberg Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲55 | 16.25 ▲0.60 | 5.92 ▼1.10 | 2.57 ▼0.11 |
Dashboard /wp-admin | 2,906 ▲51 | 6.50 ▲0.36 | 126.17 ▼15.52 | 159.22 ▼2.32 |
Posts /wp-admin/edit.php | 2,699 ▲11 | 2.98 ▼0.25 | 74.60 ▲5.66 | 142.67 ▼71.67 |
Add New Post /wp-admin/post-new.php | 1,671 ▼108 | 16.14 ▼5.97 | 409.24 ▼57.36 | 230.63 ▲7.44 |
Media Library /wp-admin/upload.php | 1,713 ▲15 | 5.74 ▲0.22 | 161.96 ▲11.49 | 252.40 ▲61.92 |
Gutenberg Manager /wp-admin/options-general.php?page=gutenberg-manager | 1,445 | 2.82 | 57.00 | 163.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/manager-for-gutenberg/inc/core.php
- > /wp-content/plugins/manager-for-gutenberg/inc/hooks.php
- > /wp-content/plugins/manager-for-gutenberg/inc/options.php
- > /wp-content/plugins/manager-for-gutenberg/gutenberg-manager.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/manager-for-gutenberg/inc/default-blocks.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: post type, wp5, disable gutenberg, disable, manager...
manager-for-gutenberg/gutenberg-manager.php 77% from 13 tests
The principal PHP file in "Gutenberg Manager" v. 1.5 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 171 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("manager-for-gutenberg.php" instead of "gutenberg-manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,230 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 326 | 94 | 783 |
CSS | 2 | 87 | 22 | 389 |
JavaScript | 2 | 17 | 12 | 58 |
PHP code Passed 2 tests
Analyzing 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.42 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wp-icon.png | 1.41KB | 0.75KB | ▼ 46.91% |
assets/images/github-icon.png | 1.88KB | 0.76KB | ▼ 59.50% |