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.05MB] [CPU: ▼6.46ms] Passed 4 tests
A check of server-side resources used by WP Users Masquerade
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.89 ▼0.21 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.07 ▼1.50 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.34 ▼6.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.59 ▼13.62 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.31 ▼3.94 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Users Masquerade
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲104 | 14.27 ▼0.08 | 3.58 ▲1.65 | 42.21 ▼1.18 |
Dashboard /wp-admin | 2,295 ▲118 | 5.59 ▼0.08 | 85.89 ▼7.94 | 41.78 ▼1.52 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 2.07 ▲0.08 | 37.24 ▼1.45 | 38.78 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.28 ▲0.42 | 664.36 ▼14.35 | 56.40 ▲0.24 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 4.28 ▲0.12 | 98.16 ▼4.95 | 49.31 ▲1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-users-masquerade/partials/admin-bar-node.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wp-users-masquerade/partials/active-notification.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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: admin login as user, user login, admin login, login as user, masquerade as user
wp-users-masquerade/masquerade.php 92% from 13 tests
The main PHP file in "WP Users Masquerade" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-users-masquerade.php" instead of "masquerade.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin6,460 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 64 | 0 | 3,167 |
JavaScript | 7 | 189 | 24 | 2,349 |
CSS | 7 | 73 | 40 | 752 |
PHP | 3 | 45 | 23 | 178 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review 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.47 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/chosen_v1.3.0/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |
css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
vendor/chosen_v1.3.0/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
vendor/chosen_v1.3.0/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |