10% multisite-mediasync

Code Review | Multisite MediaSync

WordPress plugin Multisite MediaSync scored10%from 54 tests.

About plugin

  • Plugin page: multisite-mediasync
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.6
  • WordPress version: 6.3.1
  • First release: Nov 9, 2016
  • Latest release: Nov 16, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: seangruenboeck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,193 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+47
    Methods with the same name as their class will not be constructors in a future version of PHP; MultisiteMediaSync has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.68ms] Passed 4 tests

Server-side resources used by Multisite MediaSync
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.07 ▼31.48
Dashboard /wp-admin2.11 ▼1.195.64 ▼42.33
Posts /wp-admin/edit.php2.11 ▼1.245.73 ▼43.24
Add New Post /wp-admin/post-new.php2.11 ▼3.785.40 ▼93.68
Media Library /wp-admin/upload.php2.11 ▼1.125.00 ▼27.30
Multisite MediaSync /wp-admin/tools.php?page=multisite-mediasync2.115.36

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multisite MediaSync
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.331.73 ▲0.2642.20 ▼0.17
Dashboard /wp-admin2,199 ▲195.62 ▲0.0891.20 ▼1.6841.10 ▲0.97
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0139.68 ▼1.8336.28 ▼0.25
Add New Post /wp-admin/post-new.php1,529 ▲323.42 ▼0.25647.06 ▼9.8055.59 ▼14.53
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.0797.31 ▲0.0746.70 ▲0.64
Multisite MediaSync /wp-admin/tools.php?page=multisite-mediasync7782.1722.6725.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+47
    Methods with the same name as their class will not be constructors in a future version of PHP; MultisiteMediaSync has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=multisite-mediasync
    • > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+47
    Methods with the same name as their class will not be constructors in a future version of PHP; MultisiteMediaSync has a deprecated constructor
    • > GET request to /wp-admin/tools.php?page=multisite-mediasync
    • > Deprecated in wp-content/plugins/multisite-mediasync/multisite-mediasync.php+173
    Function create_function() is deprecated

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-mediasync/multisite-mediasync.php:173

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

multisite-mediasync/multisite-mediasync.php Passed 13 tests

This is the main PHP file of "Multisite MediaSync" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Multisite MediaSync syncs the Media Posts in WP Posts tables for all blogs within a multisite installation.

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
No dangerous file extensions were detected167 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18253167

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/handschlag-logo-color_130@2x.png3.83KB2.85KB▼ 25.68%