84% multisite-blog-alias

Code Review | Multisite Blog Alias

WordPress plugin Multisite Blog Alias scored 84% from 54 tests.

About plugin

  • Plugin page: multisite-blog-alias
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2019
  • Latest release: May 3, 2023
  • Number of updates: 24
  • Update frequency: every 57.8 days
  • Top authors: podpirate (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 4,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Multisite Blog Alias
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.15 ▼8.07
Dashboard /wp-admin3.31 ▲0.0046.32 ▼8.68
Posts /wp-admin/edit.php3.36 ▲0.0044.55 ▼3.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.80 ▼11.26
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▼0.27

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Multisite Blog Alias: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲7113.16 ▲0.021.92 ▼3.1041.86 ▲4.74
Dashboard /wp-admin2,206 ▲184.85 ▼1.00115.37 ▲8.3437.40 ▼7.85
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0333.93 ▼7.7136.16 ▼1.64
Add New Post /wp-admin/post-new.php1,533 ▼023.39 ▲0.30686.06 ▲3.3661.77 ▲6.04
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0496.84 ▼6.4642.24 ▲0.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 18× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Admin/NetworkAdmin.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Model/Model.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/WPCLI/Commands/AliasDomain.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Ajax/AjaxHandler.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/WPCLI/WPCLIAliasDomain.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Core/Core.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Core/Sunrise.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Asset/Asset.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Core/PluginComponent.php
    • > /wp-content/plugins/multisite-blog-alias/include/BlogAlias/Core/Plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: redirect, domain, multisite, network

multisite-blog-alias/index.php 85% from 13 tests

The main file in "Multisite Blog Alias" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.6" instead of "5.5")
  • Main file name: The principal plugin file should be the same as the plugin slug ("multisite-blog-alias.php" instead of "index.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
No dangerous file extensions were detected2,153 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP196221,1461,857
PO File2122172294
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces8
Interfaces2
Traits0
Classes13
▷ Abstract classes323.08%
▷ Concrete classes1076.92%
▷ Final classes00.00%
Methods121
▷ Static methods108.26%
▷ Public methods8973.55%
▷ Protected methods119.09%
▷ Private methods2117.36%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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