89% multisite-plugin-controller

Code Review | Multisite Plugin Controller

WordPress plugin Multisite Plugin Controller scored89%from 54 tests.

About plugin

  • Plugin page: multisite-plugin-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-5.6
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Feb 4, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: babo2015 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /352 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.83ms] Passed 4 tests

Analyzing server-side resources used by Multisite Plugin Controller
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.65 ▲1.82
Dashboard /wp-admin3.31 ▲0.0154.19 ▲2.53
Posts /wp-admin/edit.php3.36 ▲0.0149.15 ▼3.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.36 ▼12.16
Media Library /wp-admin/upload.php3.23 ▲0.0143.13 ▲9.81

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Multisite Plugin Controller
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.39 ▼0.141.78 ▲0.0644.66 ▼7.81
Dashboard /wp-admin2,197 ▲205.55 ▼0.1496.55 ▲4.6540.85 ▲0.46
Posts /wp-admin/edit.php2,102 ▲22.03 ▼0.1037.16 ▼0.5932.52 ▼6.49
Add New Post /wp-admin/post-new.php1,528 ▲223.09 ▲0.23675.23 ▲17.9058.22 ▲0.74
Media Library /wp-admin/upload.php1,399 ▲24.17 ▼0.01103.76 ▲3.3747.59 ▼0.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: plugin, multisite

multisite-plugin-controller/multisite-plugin-controller.php 85% from 13 tests

The principal PHP file in "Multisite Plugin Controller" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.1" instead of "3.9.2")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin273 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12353190
PO File2121283

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin