84% wp-multi-network

Code Review | WP Multi Network

WordPress plugin WP Multi Network scored84%from 54 tests.

About plugin

  • Plugin page: wp-multi-network
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2010
  • Latest release: Sep 21, 2022
  • Number of updates: 80
  • Update frequency: every 57.6 days
  • Top authors: johnjamesjacoby (67.5%)ddean (18.75%)spacedmonkey (10%)BrianLayman (5%)cjmaio (3.75%)

Code review

54 tests

User reviews

23 reviews

Install metrics

100+ active /79,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.38MB] [CPU: ▼12.41ms] Passed 4 tests

A check of server-side resources used by WP Multi Network
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.94 ▲5.30
Dashboard /wp-admin3.32 ▲0.0254.00 ▲4.07
Posts /wp-admin/edit.php3.37 ▲0.0245.09 ▲0.67
Add New Post /wp-admin/post-new.php4.30 ▼1.5938.00 ▼56.34
Media Library /wp-admin/upload.php3.24 ▲0.0235.89 ▲1.98

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
recovery_mode_email_last_sent
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Multi Network
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.271.70 ▼0.1843.77 ▲2.83
Dashboard /wp-admin2,195 ▲215.58 ▲0.0094.69 ▲8.4641.60 ▼1.04
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0234.31 ▼5.5031.49 ▲1.45
Add New Post /wp-admin/post-new.php45 ▼1,4830.42 ▼22.650.07 ▼646.819.05 ▼50.30
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.09105.10 ▼12.2369.27 ▲21.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-network-command.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-multi-network/wp-multi-network/includes/classes/class-wp-ms-rest-networks-controller.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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 your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in wp-multi-network/assets to your readme.txt
The official readme.txt might help

wp-multi-network/wpmn-loader.php 92% from 13 tests

The primary PHP file in "WP Multi Network" version 2.5.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-multi-network.php" instead of "wpmn-loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,004 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP127591,7122,833
CSS1250131
JavaScript16240

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity32.57
▷ Minimum class complexity5.00
▷ Maximum class complexity94.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods89
▷ Static methods00.00%
▷ Public methods5561.80%
▷ Protected methods1112.36%
▷ Private methods2325.84%
Functions36
▷ Named functions3597.22%
▷ Anonymous functions12.78%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected