Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/user-role-widget-areas/user-role-widget-areas.php+262
Declaration of urwa_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.00ms] Passed 4 tests
Server-side resources used by User Role Widget Areas
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.18 ▼40.58 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.15 ▼44.01 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.03 ▼42.24 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.91 ▼85.15 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.21 ▼28.64 |
URWA Documents /wp-admin/options-general.php?page=urwa-documentation | 2.05 | 5.48 |
Server storage [IO: ▲0.23MB] [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, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
widget_urwa_widget_logged_in |
widget_urwa_widget |
Browser metrics Passed 4 tests
Checking browser requirements for User Role Widget Areas
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.29 ▼0.08 | 2.02 ▼0.02 | 43.35 ▼3.35 |
Dashboard /wp-admin | 2,196 ▲19 | 5.62 ▼0.03 | 100.90 ▲13.47 | 45.50 ▼0.33 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.01 | 34.34 ▼3.65 | 35.63 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,554 ▲15 | 18.58 ▼6.51 | 652.42 ▲44.00 | 68.77 ▼8.85 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▼0.00 | 98.43 ▼8.70 | 41.65 ▼1.96 |
URWA Documents /wp-admin/options-general.php?page=urwa-documentation | 955 | 1.98 | 25.06 | 50.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/user-role-widget-areas/user-role-widget-areas.php+262
Declaration of urwa_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_urwa_widget_logged_in
- widget_theysaidso_widget
- widget_urwa_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=urwa-documentation
- > Warning in wp-content/plugins/user-role-widget-areas/user-role-widget-areas.php+262
Declaration of urwa_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- > GET request to /wp-admin/options-general.php?page=urwa-documentation
- > Warning in wp-content/plugins/user-role-widget-areas/user-role-widget-areas.php+323
Declaration of urwa_widget_logged_in::widget() should be compatible with WP_Widget::widget($args, $instance)
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/user-role-widget-areas/includes/documentation/tab-2-additional-usage.php
- > /wp-content/plugins/user-role-widget-areas/includes/documentation/tab-4-changelog.php
- > /wp-content/plugins/user-role-widget-areas/includes/documentation/intro.php
- > /wp-content/plugins/user-role-widget-areas/user-role-widget-areas.php
- > /wp-content/plugins/user-role-widget-areas/includes/documentation/tab-5-support.php
- > /wp-content/plugins/user-role-widget-areas/includes/documentation/tab-3-advanced-styling.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/user-role-widget-areas/includes/documentation/tabs.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/user-role-widget-areas/includes/documentation/tab-1-tutorial.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
user-role-widget-areas/user-role-widget-areas.php Passed 13 tests
The main PHP file in "User Role Widget Areas" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
101 characters long description:
Selectively display widgets to logged in users based on standard WordPress user roles or user status.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected368 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 108 | 60 | 368 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected