76% commenting-feature

Code Review | Team Collaboration Plugin for WordPress Editorial teams- Multicollab

WordPress plugin Team Collaboration Plugin for WordPress Editorial teams- Multicollab scored76%from 54 tests.

About plugin

  • Plugin page: commenting-feature
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2020
  • Latest release: Nov 30, 2023
  • Number of updates: 110
  • Update frequency: every 10.5 days
  • Top authors: dots (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /12,233 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.98MB] [CPU: ▲233.78ms] 50% from 4 tests

This is a short check of server-side resources used by Team Collaboration Plugin for WordPress Editorial teams- Multicollab
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,054.98ms on /wp-admin/admin.php?page=multicollab_setup_wizard)
  • Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 233.78ms on /wp-admin/admin.php?page=multicollab_setup_wizard)
PageMemory (MB)CPU Time (ms)
Home /4.40 ▲0.9346.62 ▲6.81
Dashboard /wp-admin4.28 ▲0.9751.26 ▲3.05
Posts /wp-admin/edit.php4.40 ▲1.04971.43 ▲922.76
Add New Post /wp-admin/post-new.php7.08 ▲1.181,006.31 ▲906.39
Media Library /wp-admin/upload.php4.22 ▲0.9952.20 ▲18.85
Multicolab Wizard /wp-admin/admin.php?page=multicollab_setup_wizard4.221,054.98

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Team Collaboration Plugin for WordPress Editorial teams- Multicollab
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲10614.41 ▼0.322.29 ▲0.7143.47 ▲5.80
Dashboard /wp-admin2,251 ▲745.81 ▲0.1695.16 ▲7.9083.73 ▲42.90
Posts /wp-admin/edit.php2,230 ▲1302.28 ▲0.3035.91 ▼3.5036.50 ▲3.90
Add New Post /wp-admin/post-new.php7,875 ▲6,34926.74 ▲3.461,089.80 ▲457.4845.46 ▼5.54
Media Library /wp-admin/upload.php1,462 ▲624.42 ▲0.24106.36 ▲7.8375.54 ▲35.34
Multicolab Wizard /wp-admin/admin.php?page=multicollab_setup_wizard1,77621.56652.1637.81

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
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • cf_websocket_options
    • cf_multiedit_websocket_unique_key
    • cf_multiedit_websocket
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant COMMENTING_BLOCK_DIR - assumed 'COMMENTING_BLOCK_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/commenting-feature/admin/settings/settings-report.php on line 3
    • > PHP Warning
      require_once(COMMENTING_BLOCK_DIRadmin/classes/class-commenting-block-permissions.php): failed to open stream: No such file or directory in wp-content/plugins/commenting-feature/admin/settings/settings-permissions.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'COMMENTING_BLOCK_DIRadmin/classes/class-commenting-block-settings-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/commenting-feature/admin/settings/settings-dashboard.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/commenting-feature/admin/classes/class-commenting-block-settings-table.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'COMMENTING_BLOCK_DIRadmin/classes/class-commenting-block-permissions.php' (include_path='.:/usr/share/php') in wp-content/plugins/commenting-feature/admin/settings/settings-permissions.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/commenting-feature/admin/classes/class-commenting-block-settings-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/commenting-feature/admin/classes/class-guest-user-functions.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_safe_redirect() in wp-content/plugins/commenting-feature/admin/partials/frontend-guest-access-request-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/commenting-feature/admin/settings/settings-multilingual-options.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'COMMENTING_BLOCK_DIRadmin/classes/class-commenting-block-settings-report-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/commenting-feature/admin/settings/settings-report.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=multicollab_setup_wizard
    • > Console-api (severe) in wp-includes/js/dist/data.min.js?ver=ff7eb3945f963be850ff+1:19276
    Store \"mdstore\" is already registered.

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #2, #4, #6 in commenting-feature/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

commenting-feature/commenting-block.php 77% from 13 tests

The entry point to "Team Collaboration Plugin for WordPress Editorial teams- Multicollab" version 4.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 281 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("commenting-feature.php" instead of "commenting-block.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin17,334 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
PHP461,2081,7056,650
PO File62,3842,9104,962
JavaScript144724662,668
CSS595901,722
JSON800675
Sass1562330
SVG5006308
Markdown111019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity37.30
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods161
▷ Static methods42.48%
▷ Public methods14992.55%
▷ Protected methods31.86%
▷ Private methods95.59%
Functions23
▷ Named functions1147.83%
▷ Anonymous functions1252.17%
Constants8
▷ Global constants8100.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
38 PNG files occupy 4.84MB with 2.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/multicollab.png536.30KB164.26KB▼ 69.37%
admin/assets/images/Accepted.png6.87KB2.48KB▼ 63.96%
admin/assets/images/assigned-user.png0.40KB0.46KB0.00%
admin/assets/images/cover.png0.22KB0.21KB▼ 8.70%
admin/assets/images/comment-media-img.png195.38KB55.75KB▼ 71.47%