84% multi-site-plugins-add-new

Code Review | Multi Site Plugins Add New

WordPress plugin Multi Site Plugins Add New scored84%from 54 tests.

About plugin

  • Plugin page: multi-site-plugin...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0
  • WordPress version: 6.3.1
  • First release: Jul 20, 2013
  • Latest release: Oct 21, 2018
  • Number of updates: 7
  • Update frequency: every 274.1 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active /5,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.01ms] Passed 4 tests

This is a short check of server-side resources used by Multi Site Plugins Add New
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.47 ▼7.09
Dashboard /wp-admin3.31 ▲0.0050.32 ▼2.13
Posts /wp-admin/edit.php3.36 ▲0.0048.36 ▲0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.95 ▼14.61
Media Library /wp-admin/upload.php3.23 ▲0.0039.89 ▼0.19

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Multi Site Plugins Add New
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.331.74 ▼0.2243.00 ▼1.60
Dashboard /wp-admin2,195 ▲185.81 ▲0.1584.01 ▼21.8239.41 ▼3.67
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0139.51 ▲1.7233.51 ▼3.95
Add New Post /wp-admin/post-new.php1,534 ▲618.35 ▼4.70650.60 ▲11.2266.05 ▲7.12
Media Library /wp-admin/upload.php1,403 ▲124.14 ▼0.0399.41 ▼2.9541.56 ▼5.19

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_network_admin() in wp-content/plugins/multi-site-plugins-add-new/ms-plugins-add-new.php:16

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: add new, multisite, plugins, multi site

multi-site-plugins-add-new/ms-plugins-add-new.php 92% from 13 tests

The main PHP file in "Multi Site Plugins Add New" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multi-site-plugins-add-new.php" instead of "ms-plugins-add-new.php")

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 plugin34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File11118
PHP111916

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected