84% multisite-site-index

Code Review | Multisite Site Index

WordPress plugin Multisite Site Index scored84%from 54 tests.

About plugin

  • Plugin page: multisite-site-index
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2016
  • Latest release: Sep 18, 2023
  • Number of updates: 15
  • Update frequency: every 166.7 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.87ms] Passed 4 tests

A check of server-side resources used by Multisite Site Index
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0335.59 ▼5.56
Dashboard /wp-admin3.33 ▲0.0246.72 ▼3.75
Posts /wp-admin/edit.php3.38 ▲0.0249.99 ▲2.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.43 ▼8.90
Media Library /wp-admin/upload.php3.25 ▲0.0233.06 ▼1.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multisite Site Index
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼0.971.62 ▼0.6141.78 ▼5.91
Dashboard /wp-admin2,206 ▲184.86 ▼0.99108.21 ▼10.1943.73 ▲0.61
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0135.38 ▼3.8431.77 ▼1.27
Add New Post /wp-admin/post-new.php1,533 ▲522.89 ▼0.38648.55 ▼33.4653.70 ▼1.17
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0699.81 ▼1.8743.46 ▼0.99

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/multisite-site-index/multisite-site-index.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: site index, multisite

multisite-site-index/multisite-site-index.php Passed 13 tests

The main PHP script in "Multisite Site Index" version 1.1 is automatically included on every request by WordPress
82 characters long description:
Display an index of all sites on a multisite network with a widget or a shortcode.

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
Everything looks great! No dangerous files found in this plugin123 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13339123

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin