79% muut

Code Review | Muut – Commenting and Forums Re-Imagined

WordPress plugin Muut – Commenting and Forums Re-Imagined scored 79% from 54 tests.

About plugin

  • Plugin page: muut
  • Plugin version: 3.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8.0
  • WordPress version: 5.8.1
  • First release: Apr 11, 2014
  • Latest release: Nov 2, 2015
  • Number of updates: 54
  • Update frequency: every 22.5 days
  • Top authors: PaulHughes01 (94.44%)courtneycouch (7.41%)

Code review

54 tests

User reviews

19 reviews

Install metrics

200+ active / 30,810 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
Install script ran successfully

Server metrics [RAM: ▲0.86MB] [CPU: ▼159.42ms] Passed 4 tests

A check of server-side resources used by Muut – Commenting and Forums Re-Imagined
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.9046.27 ▲22.12
Dashboard /wp-admin3.89 ▲0.8362.92 ▲10.50
Posts /wp-admin/edit.php4.00 ▲0.8955.47 ▲1.49
Add New Post /wp-admin/post-new.php6.32 ▲0.88111.85 ▼652.57
Media Library /wp-admin/upload.php3.82 ▲0.8244.38 ▲2.90

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options
widget_muut_latest_comments_widget
widget_muut_trending_posts_widget
widget_muut_online_users_widget
widget_muut_my_feed_widget
muut_options
widget_muut_channel_embed_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Muut – Commenting and Forums Re-Imagined
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲9516.03 ▼0.0210.03 ▲0.2654.21 ▲5.61
Dashboard /wp-admin3,001 ▲706.17 ▲0.20158.40 ▼27.15116.74 ▼10.99
Posts /wp-admin/edit.php2,770 ▲312.73 ▲0.0173.29 ▲1.74104.54 ▲8.12
Add New Post /wp-admin/post-new.php1,680 ▲9917.91 ▼0.31478.37 ▲38.80191.70 ▲73.09
Media Library /wp-admin/upload.php1,838 ▲165.07 ▲0.04173.73 ▲19.06130.18 ▼9.08

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_muut_my_feed_widget
    • widget_muut_trending_posts_widget
    • widget_muut_latest_comments_widget
    • widget_muut_channel_embed_widget
    • widget_muut_online_users_widget
    • muut_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 25× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/muut/lib/escaped-fragments.class.php
    • > /wp-content/plugins/muut/lib/custom-post-types.class.php
    • > /wp-content/plugins/muut/lib/initializer.class.php
    • > /wp-content/plugins/muut/lib/admin/admin-settings.class.php
    • > /wp-content/plugins/muut/lib/post-muut.utility.class.php
    • > /wp-content/plugins/muut/lib/admin/admin-field-validation.utility.class.php
    • > /wp-content/plugins/muut/lib/channel.utility.class.php
    • > /wp-content/plugins/muut/lib/admin/admin-contextual-help.class.php
    • > /wp-content/plugins/muut/lib/files.utility.class.php
    • > /wp-content/plugins/muut/lib/shortcodes.class.php
  • 34× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Muut_Post_Utility' not found in wp-content/plugins/muut/views/blocks/metabox-tab-forum.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/muut/views/blocks/help-tab-settings-commenting.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/muut/templates/forum-page.php:13
    • > PHP Notice
      Undefined variable: latest_comments_data in wp-content/plugins/muut/views/widgets/widget-latest-comments.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/muut/views/blocks/help-tab-post-editor-forum.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/muut/views/blocks/help-tab-settings-general.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function muut() in wp-content/plugins/muut/views/blocks/forum-page-embed.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/muut/views/widgets/admin-widget-online-users.php:20
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/muut/views/widgets/admin-widget-my-feed.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/muut/views/blocks/help-tab-settings-overview.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: widgets, comments, social, forum, realtime...

muut/muut.php Passed 13 tests

The main PHP script in "Muut – Commenting and Forums Re-Imagined" version 3.0.6 is automatically included on every request by WordPress
114 characters long description:
A complete re-imagining of what online discussions should be. Real‑time forums and commenting for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin9,357 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP541,0103,4774,796
JavaScript118492,0223,398
PO File1182215722
CSS49528441

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity33.41
▷ Minimum class complexity3.00
▷ Maximum class complexity111.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods315
▷ Static methods4413.97%
▷ Public methods25781.59%
▷ Protected methods5015.87%
▷ Private methods82.54%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants00.00%
▷ Class constants20100.00%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/webhooks-instructions@2x.png38.10KB42.15KB0.00%
resources/images/webhooks-instructions.png24.10KB26.69KB0.00%
vendor/jqueryui-editable/img/clear.png0.50KB0.38KB▼ 22.59%