83% all-sites-columns-for-multisite

Code Review | All Sites Columns for Multisite

WordPress plugin All Sites Columns for Multisite scored83%from 54 tests.

About plugin

  • Plugin page: all-sites-columns...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2022
  • Latest release: Sep 25, 2023
  • Number of updates: 6
  • Update frequency: every 53.5 days
  • Top authors: lenasterg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /212 total downloads


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.55ms] Passed 4 tests

This is a short check of server-side resources used by All Sites Columns for Multisite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.04 ▼5.78
Dashboard /wp-admin3.32 ▼0.0344.83 ▼14.22
Posts /wp-admin/edit.php3.37 ▲0.0149.87 ▲4.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.51 ▼6.62
Media Library /wp-admin/upload.php3.24 ▲0.0133.55 ▲0.44

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by All Sites Columns for Multisite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼0.741.84 ▼0.0045.21 ▼1.20
Dashboard /wp-admin2,203 ▲155.81 ▼0.0597.15 ▼7.7339.37 ▼0.21
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0038.89 ▲1.9935.89 ▲2.58
Add New Post /wp-admin/post-new.php1,533 ▲1123.25 ▲0.24604.49 ▼24.1753.26 ▼5.55
Media Library /wp-admin/upload.php1,385 ▼04.16 ▼0.06100.72 ▼1.4343.16 ▲0.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-sites-columns-for-multisite/ls-wpms-sites-columns.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Requires php: The plugin version is formatted incorrectly
  • Screenshots: Please add images for these screenshots: #1 (The network Sites administration table with all the sortable columns), #2 (Screen option panel of network Sites administration page)
The official readme.txt is a good inspiration

all-sites-columns-for-multisite/ls-wpms-sites-columns.php 92% from 13 tests

The main PHP script in "All Sites Columns for Multisite" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("all-sites-columns-for-multisite.php" instead of "ls-wpms-sites-columns.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
Success! There were no dangerous files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

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.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png27.96KB9.95KB▼ 64.42%
screenshot-1.png54.82KB16.12KB▼ 70.60%