84% mu-post-to-multiple-blogs

Code Review | MU Post to Multiple Blogs

WordPress plugin MU Post to Multiple Blogs scored84%from 54 tests.

About plugin

  • Plugin page: mu-post-to-multip...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Jan 8, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: bdombro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,236 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by MU Post to Multiple Blogs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.88 ▲1.76
Dashboard /wp-admin3.33 ▼0.0249.64 ▼29.12
Posts /wp-admin/edit.php3.38 ▲0.0251.82 ▲0.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.81 ▼7.03
Media Library /wp-admin/upload.php3.25 ▲0.0240.22 ▲3.00

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MU Post to Multiple Blogs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.78 ▲0.1440.37 ▼0.91
Dashboard /wp-admin2,198 ▲215.62 ▼0.0589.84 ▼11.0040.98 ▼0.91
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0136.08 ▲0.1232.56 ▼2.74
Add New Post /wp-admin/post-new.php1,526 ▼222.99 ▼0.67691.77 ▼11.5961.61 ▼4.96
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.08102.49 ▼2.8543.54 ▼0.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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/mu-post-to-multiple-blogs/mu-post-to-multiple-blogs.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
1 plugin tags: wordpressmu

mu-post-to-multiple-blogs/mu-post-to-multiple-blogs.php Passed 13 tests

The principal PHP file in "MU Post to Multiple Blogs" v. 1.0 is loaded by WordPress automatically on each request
120 characters long description:
Allows the posting to multiple blogs at a time, bubble-out style. Must be logged in as network admin to see the option.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected619 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1118128571
PO File1191848

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin