Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.94ms] Passed 4 tests
An overview of server-side resources used by UM User Switching
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.11 ▼3.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.96 ▼0.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.65 ▼4.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.18 ▼11.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.10 ▲4.44 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for UM User Switching
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.23 ▼1.04 | 1.75 ▼0.26 | 39.44 ▼12.08 |
Dashboard /wp-admin | 2,203 ▲18 | 5.90 ▼0.00 | 97.08 ▼2.55 | 38.95 ▼5.45 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.05 | 35.51 ▼7.33 | 32.82 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.93 ▼5.13 | 650.61 ▼47.44 | 49.46 ▼4.10 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.30 ▲0.11 | 97.97 ▼15.73 | 40.42 ▼6.65 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-user-switching/um-user-switching.php:364
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-user-switching/trunk/um-user-switching.php:363
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: multisite, users, fast user switching, profiles, become...
um-user-switching/um-user-switching.php Passed 13 tests
"UM User Switching" version 1.0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
45 characters long description:
Integrates User Switching and Ultimate Member
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin444 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 78 | 388 | 261 |
JavaScript | 1 | 41 | 145 | 174 |
XML | 1 | 2 | 4 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 26 | |
▷ Static methods | 8 | 30.77% |
▷ Public methods | 24 | 92.31% |
▷ Protected methods | 2 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin