Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.02ms] Passed 4 tests
This is a short check of server-side resources used by Admin Bar User Switching
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.90 ▲3.43 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.32 ▼0.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.15 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.54 ▼12.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.63 ▲2.32 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Bar User Switching
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.23 ▼0.33 | 1.71 ▲0.10 | 42.71 ▼0.02 |
Dashboard /wp-admin | 2,195 ▲14 | 5.54 ▼0.17 | 86.16 ▼11.07 | 41.73 ▼0.69 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▲0.01 | 34.81 ▼0.48 | 32.59 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.02 ▼0.49 | 660.29 ▼26.82 | 58.52 ▲6.66 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.03 | 99.81 ▼7.79 | 46.29 ▼1.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: wordpress, users, user switching
admin-bar-user-switching/admin-bar-user-switching.php 77% from 13 tests
"Admin Bar User Switching" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
- Description: Please don't use more than 140 characters for the plugin description (currently 365 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin771 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 164 | 280 | 676 |
JavaScript | 1 | 26 | 9 | 94 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG images were found in this plugin