Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.31ms] Passed 4 tests
Analyzing server-side resources used by Fast User Switching
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 41.70 ▲1.42 |
Dashboard /wp-admin | 3.44 ▲0.10 | 47.64 ▼17.66 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 52.91 ▲5.94 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 84.55 ▼8.58 |
Media Library /wp-admin/upload.php | 3.37 ▲0.13 | 35.14 ▼0.41 |
Fast user switching /wp-admin/options-general.php?page=fast_user_switching | 3.33 | 33.13 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
fus_settings |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fast User Switching
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,108 ▲362 | 14.39 ▼0.19 | 15.12 ▲13.53 | 42.30 ▲0.09 |
Dashboard /wp-admin | 2,265 ▲80 | 5.31 ▲0.35 | 116.04 ▼11.83 | 35.88 ▼16.54 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.27 ▲0.24 | 46.18 ▲9.41 | 36.19 ▲2.14 |
Add New Post /wp-admin/post-new.php | 1,558 ▲16 | 23.73 ▲5.43 | 714.41 ▲78.34 | 56.03 ▲5.02 |
Media Library /wp-admin/upload.php | 1,456 ▲65 | 4.50 ▲0.32 | 98.72 ▼0.83 | 41.14 ▼3.12 |
Fast user switching /wp-admin/options-general.php?page=fast_user_switching | 973 | 1.93 | 31.51 | 26.31 |
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 did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- fus_settings
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-user-switching/admin-option.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
fast-user-switching/fast-user-switching.php 92% from 13 tests
Analyzing the main PHP file in "Fast User Switching" version 1.4.9
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin763 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 270 | 133 | 666 |
PO File | 1 | 23 | 26 | 64 |
JavaScript | 2 | 10 | 1 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 4 | 40.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 29 | |
▷ Named functions | 27 | 93.10% |
▷ Anonymous functions | 2 | 6.90% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin