Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.80ms] Passed 4 tests
A check of server-side resources used by Login as User
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.98 ▲2.06 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.29 ▼1.52 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 43.94 ▼4.08 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 81.26 ▼15.67 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.62 ▲3.72 |
Login as User /wp-admin/options-general.php?page=login-as-user | 3.32 | 32.61 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Login as User: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.40 ▲0.00 | 2.01 ▲0.44 | 43.14 ▲2.11 |
Dashboard /wp-admin | 2,206 ▲29 | 5.63 ▲0.04 | 93.26 ▲9.39 | 42.72 ▼0.26 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.06 ▲0.03 | 34.34 ▼6.65 | 33.79 ▼7.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.21 ▼0.38 | 633.46 ▼31.65 | 58.04 ▼8.23 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.36 ▲0.18 | 95.53 ▼3.23 | 42.12 ▼0.44 |
Login as User /wp-admin/options-general.php?page=login-as-user | 1,172 | 2.19 | 23.77 | 32.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 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 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
The following issues need your attention
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Vcs_Api' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/Vcs/GitLabApi.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Theme_UpdateChecker' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/Vcs/ThemeUpdateChecker.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Panel' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/DebugBar/ThemePanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Panel' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/DebugBar/PluginPanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_UpdateChecker' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/Theme/UpdateChecker.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Metadata' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/Update.php:10
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Extension' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/DebugBar/PluginExtension.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/login-as-user/includes/class-w357-login-as-user.php:22
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Update' not found in wp-content/plugins/login-as-user/includes/plugin-update-checker/Puc/v4p6/Theme/Update.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/login-as-user/uninstall.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: user, web357, login as user, admin, login
login-as-user/login-as-user.php Passed 13 tests
This is the main PHP file of "Login as User" version 1.4.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Login as User is a free WordPress plugin that helps admins switch user accounts instantly to check data.
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
No dangerous file extensions were detected8,081 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 1,810 | 3,009 | 6,877 |
PO File | 14 | 133 | 157 | 586 |
Markdown | 1 | 72 | 0 | 217 |
CSS | 5 | 48 | 25 | 205 |
JavaScript | 5 | 27 | 33 | 125 |
JSON | 3 | 8 | 0 | 71 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 5 | 11.11% |
▷ Concrete classes | 40 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 476 | |
▷ Static methods | 36 | 7.56% |
▷ Public methods | 302 | 63.45% |
▷ Protected methods | 157 | 32.98% |
▷ Private methods | 17 | 3.57% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/login-as-user-wordpress-plugin-120x200.png | 45.81KB | 9.64KB | ▼ 78.95% |
admin/img/web357-logo.png | 7.12KB | 2.83KB | ▼ 60.18% |
admin/img/x.png | 0.58KB | 0.65KB | 0.00% |
admin/img/tick.png | 0.52KB | 0.58KB | 0.00% |