83% multi-networks-setup

Code Review | Multi Networks Setup

WordPress plugin Multi Networks Setup scored83%from 54 tests.

About plugin

  • Plugin page: multi-networks-setup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: May 7, 2014
  • Latest release: Jun 4, 2014
  • Number of updates: 6
  • Update frequency: every 4.7 days
  • Top authors: madpixels (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,083 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Multi Networks Setup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.36 ▲1.93
Dashboard /wp-admin3.31 ▲0.0143.30 ▼5.29
Posts /wp-admin/edit.php3.36 ▲0.0143.73 ▲0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.42 ▼3.30
Media Library /wp-admin/upload.php3.24 ▲0.0133.97 ▼2.75

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Networks Setup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.121.67 ▼0.0239.32 ▼0.55
Dashboard /wp-admin2,203 ▲215.81 ▼0.05103.34 ▲0.4139.64 ▼4.12
Posts /wp-admin/edit.php2,086 ▲181.99 ▼0.0335.89 ▼0.5732.64 ▼1.82
Add New Post /wp-admin/post-new.php1,533 ▼023.15 ▼0.22650.89 ▼46.8555.40 ▼15.62
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0192.45 ▼22.8539.93 ▼9.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-networks-setup/index.php:35
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/multi-networks-setup/sunrise.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/multi-networks-setup/class-wpmnet-networks-list-table.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

multi-networks-setup/index.php 92% from 13 tests

The main PHP script in "Multi Networks Setup" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multi-networks-setup.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin287 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP375208287

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
PNG images were not found in this plugin