Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/multisite-dashboard-broadcast/multisite-dashboard-broadcast.php+31
Undefined variable: wp_version
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.29ms] Passed 4 tests
This is a short check of server-side resources used by Multisite Dashboard Broadcast
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 44.28 ▲8.47 |
Dashboard /wp-admin | 3.08 ▲0.03 | 55.08 ▼3.82 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 51.46 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 98.93 ▼562.37 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 39.81 ▲4.64 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Multisite Dashboard Broadcast: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.17 ▲0.77 | 9.73 ▼0.24 | 49.36 ▼2.12 |
Dashboard /wp-admin | 2,964 ▲30 | 5.95 ▼0.02 | 168.07 ▲4.20 | 111.24 ▼6.75 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 82.30 ▲11.96 | 90.01 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.75 ▼0.02 | 418.50 ▲13.01 | 110.68 ▼0.33 |
Media Library /wp-admin/upload.php | 1,748 ▼59 | 5.02 ▼0.00 | 169.07 ▲1.32 | 126.74 ▲1.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 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)
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 fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/multisite-dashboard-broadcast/multisite-dashboard-broadcast.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-dashboard-broadcast/multisite-dashboard-broadcast.php:41
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Requires at least: The plugin version is formatted incorrectly
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== multisite-dashboard-broadcast ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (The way it shows up in the dashboard), #2 (The configuration page)
multisite-dashboard-broadcast/multisite-dashboard-broadcast.php Passed 13 tests
This is the main PHP file of "Multisite Dashboard Broadcast" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
138 characters long description:
Place a widget on top of every site's dashboard under the same Multisite installation, containing whatever content the Super Admin writes.
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
Everything looks great! No dangerous files found in this plugin175 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 27 | 123 |
PO File | 1 | 15 | 33 | 52 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 52.92KB | 14.77KB | ▼ 72.09% |
screenshot-2.png | 54.23KB | 14.15KB | ▼ 73.90% |