Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼8.31ms] Passed 4 tests
This is a short check of server-side resources used by Block Control
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 38.11 ▼0.76 |
Dashboard /wp-admin | 3.48 ▲0.13 | 46.10 ▼13.81 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 40.97 ▼3.30 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 82.84 ▼15.35 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 32.31 ▲0.61 |
Server storage [IO: ▲0.14MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Block Control: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.07 ▼0.28 | 1.91 ▼0.23 | 44.57 ▲0.84 |
Dashboard /wp-admin | 2,198 ▲23 | 5.60 ▼0.00 | 84.15 ▼24.36 | 37.73 ▼5.46 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.96 ▼0.02 | 34.23 ▼1.72 | 29.84 ▼5.70 |
Add New Post /wp-admin/post-new.php | 1,691 ▲165 | 22.47 ▼0.44 | 675.49 ▲2.12 | 59.36 ▼4.61 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▲0.03 | 100.74 ▲0.84 | 41.20 ▲0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: conditional, block, gutenberg
block-control/block-control.php 92% from 13 tests
The principal PHP file in "Block Control" v. 1.1.11 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
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
Good job! No executable or dangerous file extensions detected1,180 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 234 | 1,036 | 1,109 |
Markdown | 2 | 39 | 0 | 69 |
CSS | 2 | 1 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.92 |
Average class complexity | 121.00 |
▷ Minimum class complexity | 103.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 10 | 18.18% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 2 | 3.64% |
▷ Private methods | 1 | 1.82% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin