Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.21MB] [CPU: ▲10.61ms] 75% from 4 tests
A check of server-side resources used by User Blocker
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,029.95ms on /wp-admin/admin.php?page=block_user_permenant)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.67 ▲1.21 | 57.85 ▲14.32 |
Dashboard /wp-admin | 4.53 ▲1.18 | 1,368.48 ▲1,304.64 |
Posts /wp-admin/edit.php | 4.64 ▲1.29 | 56.53 ▲9.83 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 100.73 ▲8.31 |
Media Library /wp-admin/upload.php | 4.45 ▲1.22 | 46.10 ▲9.98 |
All Type Blocked User list /wp-admin/admin.php?page=all_type_blocked_user_list | 4.43 | 53.50 |
Blocked User list /wp-admin/admin.php?page=blocked_user_list | 4.43 | 43.65 |
User Blocker Settings /wp-admin/admin.php?page=user_blocker_settings | 4.42 | 39.59 |
Date Wise Block User /wp-admin/admin.php?page=block_user_date | 5.05 | 1,035.39 |
Date Wise Blocked User list /wp-admin/admin.php?page=datewise_blocked_user_list | 4.43 | 44.48 |
Permanently Block User /wp-admin/admin.php?page=block_user_permenant | 5.05 | 1,029.95 |
Permanent Blocked User list /wp-admin/admin.php?page=permanent_blocked_user_list | 4.43 | 48.60 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
user_blocking_promo_time |
is_user_subscribed_cancled |
widget_theysaidso_widget |
can_compress_scripts |
ublk_version |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Blocker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲239 | 14.38 ▼0.33 | 1.75 ▲0.05 | 45.24 ▲3.06 |
Dashboard /wp-admin | 2,406 ▲232 | 5.66 ▲0.06 | 85.61 ▼7.73 | 75.02 ▲32.26 |
Posts /wp-admin/edit.php | 2,225 ▲125 | 2.02 ▲0.08 | 37.96 ▲2.19 | 33.84 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,638 ▲112 | 23.17 ▼0.27 | 648.03 ▲22.04 | 159.49 ▲112.18 |
Media Library /wp-admin/upload.php | 1,525 ▲125 | 4.26 ▲0.06 | 96.97 ▼2.57 | 73.11 ▲29.75 |
All Type Blocked User list /wp-admin/admin.php?page=all_type_blocked_user_list | 1,322 | 1.96 | 42.55 | 31.05 |
Blocked User list /wp-admin/admin.php?page=blocked_user_list | 1,308 | 2.13 | 39.98 | 26.16 |
User Blocker Settings /wp-admin/admin.php?page=user_blocker_settings | 961 | 1.95 | 28.72 | 28.25 |
Date Wise Block User /wp-admin/admin.php?page=block_user_date | 1,589 | 2.08 | 34.10 | 47.25 |
Date Wise Blocked User list /wp-admin/admin.php?page=datewise_blocked_user_list | 1,324 | 1.98 | 30.78 | 27.67 |
Permanently Block User /wp-admin/admin.php?page=block_user_permenant | 1,609 | 1.99 | 30.76 | 44.68 |
Permanent Blocked User list /wp-admin/admin.php?page=permanent_blocked_user_list | 1,275 | 1.96 | 30.29 | 26.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- is_user_subscribed_cancled
- ublk_version
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- user_blocking_promo_time
- db_upgraded
- widget_theysaidso_widget
- ublk_is_optin
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-blocker/includes/user-blocker-promo-notice.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/user-blocker/includes/user-blocker-common-functions.php:231
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
user-blocker/user_blocker.php 92% from 13 tests
This is the main PHP file of "User Blocker" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-blocker.php" instead of "user_blocker.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 detected13,225 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 209 | 530 | 7,227 |
JavaScript | 7 | 537 | 196 | 3,723 |
CSS | 5 | 72 | 60 | 2,275 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 73 | |
▷ Named functions | 73 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
23 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |