Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.90ms] Passed 4 tests
Analyzing server-side resources used by Multisite Admin Bar Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.50 ▼1.32 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.46 ▼2.64 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.99 ▲5.08 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 94.38 ▲3.37 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 36.18 ▲4.18 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Multisite Admin Bar Switcher
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.36 ▼1.07 | 1.75 ▼0.36 | 40.01 ▼3.93 |
Dashboard /wp-admin | 2,206 ▲18 | 4.81 ▼1.11 | 115.24 ▲1.51 | 43.56 ▲3.33 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.16 ▲0.15 | 40.61 ▲0.17 | 36.57 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.66 ▼5.57 | 683.96 ▲48.25 | 64.02 ▲1.87 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.00 | 94.68 ▼5.65 | 42.72 ▲0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
Good news, no errors were detected
SRP 50% 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
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-wp-admin-bar.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Warning
require_once(ABSPATHWPINC/class-wp-admin-bar.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/multisite-admin-bar-switcher/partials/network-admin/settings.php:9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Warning
require_once(ABSPATHWPINC/class-wp-admin-bar.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-wp-admin-bar.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-admin-bar-switcher/mabs_admin_bar.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: multisite, wpmu, switcher, toolbar, switch...
multisite-admin-bar-switcher/multisite-admin-bar-switcher.php Passed 13 tests
Analyzing the main PHP file in "Multisite Admin Bar Switcher" version 1.4.0
70 characters long description:
Replaces the built in 'My Sites' drop down with a better layed out one
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected563 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 90 | 176 | 445 |
CSS | 1 | 10 | 0 | 66 |
JavaScript | 1 | 6 | 2 | 28 |
Markdown | 1 | 7 | 0 | 13 |
JSON | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 6.00 |
▷ Maximum method complexity | 20.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 13 | 59.09% |
▷ Anonymous functions | 9 | 40.91% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.91KB | 11.85KB | ▼ 69.55% |