Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.19ms] Passed 4 tests
Server-side resources used by Sidebar Per User Role
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.79 ▼5.19 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.43 ▼2.79 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.35 ▲5.45 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.08 ▼3.38 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.64 ▲2.59 |
Sidebar Per Role /wp-admin/options-general.php?page=SimplePanel | 3.24 | 31.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sidebar Per User Role
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.59 ▼0.80 | 1.66 ▼0.49 | 40.57 ▼7.36 |
Dashboard /wp-admin | 2,207 ▲19 | 5.87 ▲0.99 | 106.97 ▼9.76 | 42.65 ▼5.24 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▼0.01 | 39.61 ▲0.71 | 34.77 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 23.15 ▲0.12 | 655.53 ▼8.02 | 60.73 ▲10.54 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.10 ▼0.07 | 108.20 ▼2.21 | 45.76 ▲2.05 |
Sidebar Per Role /wp-admin/options-general.php?page=SimplePanel | 950 | 2.03 | 22.83 | 27.78 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidebar-per-user-role/sidebar-per-user-role.php:217
- > PHP Fatal error
Uncaught Error: Class 'SimplePanel' not found in wp-content/plugins/sidebar-per-user-role/inc/Sidebar_Panel_Class.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: user, sidebar per user, per role, sidebars, role
sidebar-per-user-role/sidebar-per-user-role.php Passed 13 tests
Analyzing the main PHP file in "Sidebar Per User Role" version 0.3
52 characters long description:
This Plugin lets you display a sidebar per user role
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 plugin368 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 57 | 170 | 368 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin