84% multisite-plugin-manager

Code Review | Multisite Plugin Manager

WordPress plugin Multisite Plugin Manager scored84%from 54 tests.

About plugin

  • Plugin page: multisite-plugin-...
  • Plugin version: 3.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.3-4.9.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2011
  • Latest release: Aug 18, 2020
  • Number of updates: 28
  • Update frequency: every 122.5 days
  • Top authors: uglyrobot (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

500+ active /100,430 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.27ms] Passed 4 tests

Server-side resources used by Multisite Plugin Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.21 ▼6.37
Dashboard /wp-admin3.38 ▲0.0748.54 ▼4.48
Posts /wp-admin/edit.php3.43 ▲0.0749.09 ▼0.31
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.28 ▼8.71
Media Library /wp-admin/upload.php3.30 ▲0.0738.57 ▼1.52

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multisite Plugin Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.071.65 ▼0.2945.32 ▲3.70
Dashboard /wp-admin2,195 ▲185.66 ▼0.0285.36 ▼3.9038.07 ▼7.25
Posts /wp-admin/edit.php2,097 ▼02.02 ▲0.0735.39 ▼2.9433.32 ▼2.91
Add New Post /wp-admin/post-new.php1,534 ▲818.27 ▼5.36633.46 ▼30.4663.51 ▼4.31
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0399.30 ▼2.5548.13 ▲0.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-plugin-manager/plugin-manager.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-plugin-manager/trunk/plugin-manager.php:33

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (The plugin management admin page), #2 (Overriding allowed plugins per site)
You can take inspiration from this readme.txt

multisite-plugin-manager/plugin-manager.php 92% from 13 tests

The main file in "Multisite Plugin Manager" v. 3.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("multisite-plugin-manager.php" instead of "plugin-manager.php")

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
Good job! No executable or dangerous file extensions detected668 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211474668

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity61.50
▷ Minimum class complexity61.00
▷ Maximum class complexity62.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png23.80KB9.88KB▼ 58.50%
trunk/screenshot-2.png23.80KB9.88KB▼ 58.50%
trunk/screenshot-1.png60.19KB24.72KB▼ 58.93%
screenshot-1.png60.19KB24.72KB▼ 58.93%