Benchmarks
Plugin footprint 83% from 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.05MB] [CPU: ▼8.08ms] Passed 4 tests
Server-side resources used by Block Controller
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.91 ▼2.04 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.92 ▼18.61 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.96 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.51 ▼12.36 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.83 ▲5.64 |
Usage Summary /wp-admin/admin.php?page=block_controller_summary | 3.31 | 34.45 |
Block Controller /wp-admin/admin.php?page=block_controller | 3.29 | 35.85 |
Usage Details /wp-admin/admin.php?page=block_controller_details | 3.29 | 32.69 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Block Controller
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲106 | 14.01 ▼0.39 | 1.74 ▼0.25 | 46.43 ▲4.74 |
Dashboard /wp-admin | 2,273 ▲96 | 5.35 ▼0.18 | 92.68 ▼9.82 | 38.91 ▼5.56 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.46 ▲0.47 | 39.17 ▲2.73 | 54.56 ▲19.34 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 23.34 ▲0.38 | 644.14 ▼12.61 | 36.40 ▼16.59 |
Media Library /wp-admin/upload.php | 1,483 ▲83 | 5.02 ▲0.75 | 115.02 ▲22.32 | 46.70 ▲0.51 |
Usage Summary /wp-admin/admin.php?page=block_controller_summary | 998 | 2.37 | 29.40 | 27.64 |
Block Controller /wp-admin/admin.php?page=block_controller | 1,702 | 2.52 | 29.28 | 37.21 |
Usage Details /wp-admin/admin.php?page=block_controller_details | 987 | 2.36 | 28.53 | 30.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-controller/inc/usage-summary-table.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\BlockController\\is_admin() in wp-content/plugins/block-controller/inc/plugins-page.php:48
- > 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/block-controller/inc/usage-summary-table.php on line 12
- > 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/block-controller/inc/usage-summary-table.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'ThreePM\\BlockController\\UsageSummaryTable' not found in wp-content/plugins/block-controller/inc/templates/settings-usage-summary.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/block-controller/inc/templates/settings-usage-details.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\BlockController\\add_action() in wp-content/plugins/block-controller/inc/settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/block-controller/inc/templates/settings-main.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\BlockController\\add_action() in wp-content/plugins/block-controller/inc/assets.php:20
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: blocks, gutenberg, content
block-controller/block-controller.php Passed 13 tests
The entry point to "Block Controller" version 1.4.1 is a PHP file that has certain tags in its header comment area
69 characters long description:
Allow site administrators to control editor access to content blocks.
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
Everything looks great! No dangerous files found in this plugin855 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 162 | 301 | 530 |
Sass | 11 | 55 | 14 | 258 |
JavaScript | 5 | 31 | 54 | 66 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 2 | 8.33% |
▷ Private methods | 3 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 1 | 25.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