Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.79ms] Passed 4 tests
Analyzing server-side resources used by Super Admin All Sites Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.07 ▼1.13 |
Dashboard /wp-admin | 3.39 ▲0.08 | 43.87 ▼7.85 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 42.66 ▼9.04 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.58 ▼5.12 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.70 ▲0.26 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Super Admin All Sites Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.14 ▼0.48 | 1.71 ▼0.31 | 44.25 ▲1.34 |
Dashboard /wp-admin | 2,195 ▲17 | 5.55 ▼0.16 | 92.33 ▼19.31 | 38.07 ▼4.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.02 | 35.46 ▼1.66 | 33.58 ▲3.80 |
Add New Post /wp-admin/post-new.php | 1,409 ▼117 | 17.88 ▼5.30 | 593.37 ▼81.89 | 47.98 ▼3.33 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.03 | 94.79 ▼17.73 | 39.82 ▼7.39 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Soderlind\\Multisite\\wp_die() in wp-content/plugins/super-admin-all-sites-menu/super-admin-all-sites-menu.php:28
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: superadmin, multisite, management
super-admin-all-sites-menu/super-admin-all-sites-menu.php Passed 13 tests
The primary PHP file in "Super Admin All Sites Menu" version 1.6.6 is used by WordPress to initiate all plugin functionality
79 characters long description:
For the super admin, replace WP Admin Bar My Sites menu with an All Sites menu.
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 detected387 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 166 | 337 |
CSS | 1 | 7 | 14 | 49 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin