10% multisite-media-display

Code Review | Multisite Media Display

WordPress plugin Multisite Media Display scored10%from 54 tests.

About plugin

  • Plugin page: multisite-media-d...
  • Plugin version: 1.42
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2016
  • Latest release: Mar 24, 2020
  • Number of updates: 56
  • Update frequency: every 21.2 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,876 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/multisite-media-display/mutlisite-media-display.php+543
    syntax error, unexpected end of file

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

A check of server-side resources used by Multisite Media Display
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.27 ▲1.48
Dashboard /wp-admin3.31 ▲0.0045.02 ▲2.60
Posts /wp-admin/edit.php3.36 ▲0.0041.69 ▼3.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.18 ▲1.60
Media Library /wp-admin/upload.php3.23 ▲0.0032.06 ▼3.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Multisite Media Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.59 ▼0.834.56 ▲2.6040.70 ▼7.16
Dashboard /wp-admin2,203 ▲155.80 ▲0.7094.04 ▼8.4936.92 ▼7.70
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0835.51 ▼1.2831.88 ▼3.51
Add New Post /wp-admin/post-new.php1,519 ▼023.07 ▼0.01624.13 ▼60.3362.32 ▲0.34
Media Library /wp-admin/upload.php1,388 ▼34.18 ▲0.0294.57 ▼5.0141.09 ▼1.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/multisite-media-display/mutlisite-media-display.php on line 543

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: multisite media display

multisite-media-display/mutlisite-media-display.php 92% from 13 tests

"Multisite Media Display" version 1.42's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multisite-media-display.php" instead of "mutlisite-media-display.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected391 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP146110386
XML1005

PHP code Passed 2 tests

This is a very shot 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.28
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 1.33MB with 1.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png117.80KB12.13KB▼ 89.71%
assets/screenshot-1.png956.78KB114.34KB▼ 88.05%
assets/icon-128x128.png77.04KB5.67KB▼ 92.64%
assets/banner-772x250.png205.78KB25.21KB▼ 87.75%