Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.27ms] Passed 4 tests
Analyzing server-side resources used by WP User Switch
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.05 ▼5.34 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.06 ▼6.56 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.77 ▼1.23 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.81 ▼15.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.47 ▲3.18 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
WP User Switch: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲191 | 13.59 ▼0.72 | 9.04 ▲6.90 | 42.07 ▼8.55 |
Dashboard /wp-admin | 2,238 ▲47 | 4.86 ▼0.01 | 103.71 ▲1.88 | 39.48 ▼8.91 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.06 ▲0.02 | 38.93 ▼1.70 | 35.26 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.18 ▲5.61 | 664.28 ▲43.26 | 53.74 ▲2.00 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.17 ▼0.07 | 104.84 ▲3.49 | 43.78 ▼2.82 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: switch user, user switching, user switch, switching account, wp user switch
wp-user-switch/wp-user-switch.php Passed 13 tests
The main PHP script in "WP User Switch" version 1.0.4 is automatically included on every request by WordPress
110 characters long description:
Switch instantly between one user account to another account in WordPress. This plugin make this easy for you.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected594 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 56 | 90 | 414 |
CSS | 2 | 18 | 2 | 126 |
Markdown | 1 | 19 | 0 | 30 |
JavaScript | 1 | 4 | 1 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/front-icon.png | 5.73KB | 3.10KB | ▼ 45.98% |
assets/images/icon.png | 56.32KB | 14.74KB | ▼ 73.82% |