Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼143.13ms] Passed 4 tests
This is a short check of server-side resources used by Multisite Dashboard Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.15 | 34.74 ▲14.87 |
Dashboard /wp-admin | 3.09 ▲0.03 | 43.48 ▼2.82 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 48.07 ▲3.22 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 108.16 ▼570.05 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 37.40 ▼2.86 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Multisite Dashboard Switcher
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.92 ▲0.46 | 11.01 ▲1.53 | 49.69 ▼2.91 |
Dashboard /wp-admin | 2,989 ▲58 | 5.99 ▼0.05 | 152.41 ▼4.37 | 111.84 ▲2.29 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 77.17 ▲9.18 | 127.97 ▲41.72 |
Add New Post /wp-admin/post-new.php | 1,683 ▼206 | 16.21 ▼0.20 | 394.50 ▼38.67 | 115.59 ▲0.78 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▲0.02 | 152.62 ▼1.03 | 116.67 ▼5.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-dashboard-switcher/multisite-dashboard-switcher.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: switch, multisite, network, switcher
multisite-dashboard-switcher/multisite-dashboard-switcher.php Passed 13 tests
The entry point to "Multisite Dashboard Switcher" version 1.5 is a PHP file that has certain tags in its header comment area
77 characters long description:
Adds a menu to the admin bar for easy switching between multisite dashboards.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 28 | 91 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected