Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.05MB] [CPU: ▲19.82ms] Passed 4 tests
This is a short check of server-side resources used by View Admin As
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.60 ▲2.14 | 62.41 ▲17.42 |
Dashboard /wp-admin | 5.35 ▲2.05 | 82.33 ▲25.75 |
Posts /wp-admin/edit.php | 5.41 ▲2.05 | 71.93 ▲20.65 |
Add New Post /wp-admin/post-new.php | 7.95 ▲2.07 | 118.97 ▲16.09 |
Media Library /wp-admin/upload.php | 5.27 ▲2.04 | 62.03 ▲25.13 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
vaa_view_admin_as |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by View Admin As
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,436 ▲1,690 | 14.54 ▲0.13 | 15.67 ▲13.81 | 40.02 ▼4.64 |
Dashboard /wp-admin | 2,926 ▲735 | 5.21 ▲0.35 | 133.78 ▲19.21 | 42.61 ▼2.24 |
Posts /wp-admin/edit.php | 2,812 ▲720 | 2.19 ▲0.18 | 54.81 ▲17.34 | 35.27 ▲0.96 |
Add New Post /wp-admin/post-new.php | 2,227 ▲693 | 23.47 ▲0.40 | 664.65 ▲6.36 | 54.30 ▲3.40 |
Media Library /wp-admin/upload.php | 2,105 ▲714 | 4.49 ▲0.28 | 116.81 ▲15.71 | 44.71 ▲1.23 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
view-admin-as/view-admin-as.php 85% from 13 tests
This is the main PHP file of "View Admin As" version 1.8.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Description: The description should be shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected10,208 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,668 | 7,425 | 8,453 |
JavaScript | 2 | 191 | 423 | 1,389 |
CSS | 2 | 63 | 107 | 366 |
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.47 |
Average class complexity | 46.48 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 4 | 16.00% |
▷ Concrete classes | 21 | 84.00% |
▷ Final classes | 14 | 66.67% |
Methods | 458 | |
▷ Static methods | 80 | 17.47% |
▷ Public methods | 397 | 86.68% |
▷ Protected methods | 43 | 9.39% |
▷ Private methods | 18 | 3.93% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin