94% multisite-toolbar-additions

Code Review | Multisite Toolbar Additions

WordPress plugin Multisite Toolbar Additions scored 94% from 54 tests.

About plugin

  • Plugin page: multisite-toolbar...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.3
  • WordPress version: 5.8.1
  • First release: Aug 28, 2012
  • Latest release: Nov 13, 2019
  • Number of updates: 44
  • Update frequency: every 59.8 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active / 52,055 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.56MB] [CPU: ▼134.44ms] Passed 4 tests

Server-side resources used by Multisite Toolbar Additions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.28 ▲0.5547.28 ▲26.85
Dashboard /wp-admin3.66 ▲0.6052.25 ▲4.68
Posts /wp-admin/edit.php3.71 ▲0.6054.41 ▲7.89
Add New Post /wp-admin/post-new.php5.93 ▲0.49103.04 ▼554.56
Media Library /wp-admin/upload.php3.67 ▲0.6639.58 ▲4.22

Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multisite Toolbar Additions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,189 ▲59316.38 ▲0.439.99 ▲0.2946.28 ▼8.34
Dashboard /wp-admin3,235 ▲3016.00 ▼0.09138.39 ▼15.78102.15 ▼12.94
Posts /wp-admin/edit.php3,002 ▲2662.75 ▲0.0374.63 ▲7.4497.66 ▲5.43
Add New Post /wp-admin/post-new.php1,706 ▲3418.66 ▼0.42380.98 ▼26.66114.29 ▲2.30
Media Library /wp-admin/upload.php2,073 ▲2665.10 ▲0.05155.13 ▼7.39125.99 ▼9.13

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 successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
  • 41× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/multisite-toolbar-additions/includes/plugin-support/mstba-plugins-smartcrontools.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/mstba-network-new-content.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/mstba-global-functions.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/plugin-support/mstba-plugins-betterwpsecurity.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/plugin-support/mstba-plugins-backwpup3x.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/mstba-items-widgets.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/ddwlib-plir/ddwlib-plugin-installer-recommendations.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/plugin-support/mstba-plugins-smarttabberwidget.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/mstba-items-resources.php
    • > /wp-content/plugins/multisite-toolbar-additions/includes/plugin-support/mstba-plugins-ultimatebranding.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

multisite-toolbar-additions/multisite-toolbar-additions.php 92% from 13 tests

Analyzing the main PHP file in "Multisite Toolbar Additions" version 2.0.1
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 195 characters long)

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
Everything looks great! No dangerous files found in this plugin8,837 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,7012,6456,106
PO File28841,7882,062
Markdown32210519
CSS13611128
JSON10022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1894.74%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions64
▷ Named functions64100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/ddwlib-plir/deckerweb-plugins-logo.png15.80KB6.20KB▼ 60.78%