10% multisite-dashboard-broadcast

Code Review | Multisite Dashboard Broadcast

WordPress plugin Multisite Dashboard Broadcast scored 10% from 54 tests.

About plugin

  • Plugin page: multisite-dashboa...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 20, 2013
  • Latest release: Jun 21, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ck65 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,614 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0344.28 ▲8.47
Dashboard /wp-admin3.08 ▲0.0355.08 ▼3.82
Posts /wp-admin/edit.php3.14 ▲0.0351.46 ▲0.38
Add New Post /wp-admin/post-new.php5.44 ▲0.0198.93 ▼562.37
Media Library /wp-admin/upload.php3.03 ▲0.0239.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.17 ▲0.779.73 ▼0.2449.36 ▼2.12
Dashboard /wp-admin2,964 ▲305.95 ▼0.02168.07 ▲4.20111.24 ▼6.75
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0082.30 ▲11.9690.01 ▲0.69
Add New Post /wp-admin/post-new.php1,683 ▼018.75 ▼0.02418.50 ▲13.01110.68 ▼0.33
Media Library /wp-admin/upload.php1,748 ▼595.02 ▼0.00169.07 ▲1.32126.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP12827123
PO File1153352

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 code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png52.92KB14.77KB▼ 72.09%
screenshot-2.png54.23KB14.15KB▼ 73.90%