Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.95ms] Passed 4 tests
Analyzing server-side resources used by Block Permissions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.08 ▼6.09 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.42 ▲5.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.10 ▼4.95 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.60 ▼23.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.35 ▼1.68 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Block Permissions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.64 ▼0.76 | 4.64 ▲2.71 | 41.25 ▼0.28 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.93 | 97.72 ▼2.99 | 38.91 ▼4.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.04 | 33.02 ▼4.71 | 34.41 ▼1.81 |
Add New Post /wp-admin/post-new.php | 6,186 ▲4,651 | 26.60 ▲3.25 | 949.93 ▲251.58 | 57.60 ▲5.62 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.23 ▲0.04 | 107.90 ▲6.32 | 47.17 ▲4.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/block-permissions/lib/users.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/block-permissions/lib/user-roles.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
block-permissions/mcw-bp-gutenberg.php 77% from 13 tests
The entry point to "Block Permissions" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("block-permissions.php" instead of "mcw-bp-gutenberg.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 plugin1,016 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 233 | 706 | 972 |
Markdown | 1 | 32 | 0 | 41 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.87 |
Average class complexity | 51.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 9 | 17.31% |
▷ Public methods | 47 | 90.38% |
▷ Protected methods | 2 | 3.85% |
▷ Private methods | 3 | 5.77% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin