83% multisite-post-reader

Code Review | Multisite Post Reader

WordPress plugin Multisite Post Reader scored83%from 54 tests.

About plugin

  • Plugin page: multisite-post-re...
  • Plugin version: 3.02
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Apr 6, 2023
  • Number of updates: 57
  • Update frequency: every 40.0 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active /4,659 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
Install script ran successfully

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

A check of server-side resources used by Multisite Post Reader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.07 ▼1.31
Dashboard /wp-admin3.31 ▲0.0150.58 ▼3.62
Posts /wp-admin/edit.php3.37 ▲0.0151.27 ▼0.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.39 ▼9.12
Media Library /wp-admin/upload.php3.24 ▲0.0135.57 ▲1.18
Multisite Post Reader Info/Usage /wp-admin/options-general.php?page=mpr_settings3.2034.48

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

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

Browser metrics Passed 4 tests

Multisite Post Reader: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.41 ▲0.062.46 ▲0.5846.23 ▲3.85
Dashboard /wp-admin2,204 ▲245.60 ▼0.0796.27 ▲4.3040.09 ▼2.45
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0334.04 ▼2.2431.98 ▼6.78
Add New Post /wp-admin/post-new.php1,545 ▼023.19 ▼0.24671.21 ▲60.8754.69 ▲0.20
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0196.95 ▼14.5940.12 ▼8.10
Multisite Post Reader Info/Usage /wp-admin/options-general.php?page=mpr_settings1,1742.0023.3145.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please 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 get_bloginfo() in wp-content/plugins/multisite-post-reader/multisite-post-reader.php:610

User-side errors Passed 1 test

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

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
1 plugin tags: multisite post reader

multisite-post-reader/multisite-post-reader.php 85% from 13 tests

The main PHP script in "Multisite Post Reader" version 3.02 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: Please don't use more than 140 characters for the plugin description (currently 204 characters long)

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 plugin556 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP160159480
CSS11263
XML20013

PHP code Passed 2 tests

An overview 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.46
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 3.21MB with 2.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/cellarweb-logo-2022.png954.49KB191.67KB▼ 79.92%
assets/icon-256x256.png564.60KB34.29KB▼ 93.93%
css/soda-cup-straw.png121.76KB58.15KB▼ 52.24%
assets/banner-1000x200.png608.61KB83.60KB▼ 86.26%
assets/icon-128x128.png220.68KB11.48KB▼ 94.80%