94% multisite-enhancements

Code Review | Multisite Enhancements

WordPress plugin Multisite Enhancements scored 94% from 54 tests.

About plugin

  • Plugin page: multisite-enhance...
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.9.2
  • First release: Oct 31, 2013
  • Latest release: May 26, 2021
  • Number of updates: 132
  • Update frequency: every 21.0 days
  • Top authors: Bueltge (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

200+ active / 119,406 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼304.89ms] Passed 4 tests

Analyzing server-side resources used by Multisite Enhancements
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0164.94 ▲8.47
Dashboard /wp-admin3.41 ▲0.00107.42 ▲70.70
Posts /wp-admin/edit.php3.64 ▲0.0038.30 ▼1.32
Add New Post /wp-admin/post-new.php6.88 ▼0.0999.02 ▼1,227.58
Media Library /wp-admin/upload.php3.29 ▲0.0024.08 ▲0.89

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Multisite Enhancements: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲6115.68 ▼0.116.04 ▲0.182.32 ▼0.19
Dashboard /wp-admin2,888 ▲346.06 ▼0.15120.91 ▼14.47164.55 ▼73.14
Posts /wp-admin/edit.php2,670 ▼243.26 ▲0.0173.80 ▲11.20193.18 ▲51.10
Add New Post /wp-admin/post-new.php1,661 ▼016.54 ▼4.14433.04 ▲36.01156.58 ▼14.65
Media Library /wp-admin/upload.php1,698 ▲35.51 ▼0.00144.83 ▼6.96217.16 ▲2.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-multisite-add-new-plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-site-status-labels.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-blog-id.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Bueltge\\Multisite_Add_Ssh_Identifier\\add_action() in wp-content/plugins/multisite-enhancements/src/class-add-ssl-identifier.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-core.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-plugin-list.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-change-footer-text.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-filtering-themes.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-admin-favicon.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: administration, admin bar, network, multisite

multisite-enhancements/multisite-enhancements.php 92% from 13 tests

"Multisite Enhancements" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin1,202 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP162981,0861,167
JavaScript22319
CSS24016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.29
▷ Minimum class complexity3.00
▷ Maximum class complexity28.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods81
▷ Static methods1619.75%
▷ Public methods7997.53%
▷ Protected methods11.23%
▷ Private methods11.23%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
No PNG images were found in this plugin