Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.49ms] Passed 4 tests
Analyzing server-side resources used by WP Masquerade
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.84 ▼7.44 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.32 ▼2.47 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.47 ▲8.38 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.65 ▼2.73 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.47 ▲2.70 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Masquerade
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.37 ▼0.90 | 3.07 ▲0.94 | 42.55 ▼6.00 |
Dashboard /wp-admin | 2,309 ▲132 | 5.89 ▲0.01 | 99.86 ▼6.73 | 42.05 ▼0.28 |
Posts /wp-admin/edit.php | 2,168 ▲76 | 2.06 ▲0.04 | 35.25 ▼5.25 | 31.53 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 18.62 ▼4.59 | 616.24 ▼31.40 | 71.27 ▼7.12 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.25 ▲0.09 | 98.32 ▼10.78 | 43.75 ▲1.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-masquerade/partials/admin-bar-node.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wp-masquerade/partials/active-notification.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Showing the Masquerade Link in the User List)
wp-masquerade/masquerade.php 92% from 13 tests
The principal PHP file in "WP Masquerade" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-masquerade.php" instead of "masquerade.php")
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 plugin6,474 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 64 | 0 | 3,167 |
JavaScript | 7 | 189 | 24 | 2,349 |
CSS | 7 | 71 | 40 | 746 |
PHP | 3 | 45 | 23 | 178 |
JSON | 2 | 0 | 0 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in 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
Often times overlooked, PNG files can occupy unnecessary space in 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 |
css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
vendor/chosen_v1.3.0/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
vendor/chosen_v1.3.0/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |
vendor/chosen_v1.3.0/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |