10% multilang-comment

Code Review | Multilang Comment

WordPress plugin Multilang Comment scored 10% from 54 tests.

About plugin

  • Plugin page: multilang-comment
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 5.8.1
  • First release: Nov 28, 2016
  • Latest release: Dec 3, 2016
  • Number of updates: 9
  • Update frequency: every 1.1 days
  • Top authors: bharat dangar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 740 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/multilang-comment/multilang-comment.php+14
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.45ms] Passed 4 tests

Analyzing server-side resources used by Multilang Comment
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0235.96 ▲1.51
Dashboard /wp-admin3.08 ▲0.0345.57 ▼0.41
Posts /wp-admin/edit.php3.13 ▲0.0346.73 ▲1.12
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.82 ▼575.17
Media Library /wp-admin/upload.php3.03 ▲0.0233.39 ▲0.65
multilang Comment /wp-admin/options-general.php?page=multilang-comment/multilang-comment.php3.0029.45

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
brtcmt_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multilang Comment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.79 ▲0.189.43 ▼0.8345.18 ▼4.64
Dashboard /wp-admin2,981 ▲476.11 ▲0.18141.76 ▼24.79107.48 ▲1.33
Posts /wp-admin/edit.php2,744 ▲82.72 ▲0.0169.45 ▲6.0690.18 ▲0.97
Add New Post /wp-admin/post-new.php1,692 ▲7718.72 ▼2.70430.81 ▲125.38109.74 ▲4.48
Media Library /wp-admin/upload.php1,818 ▲85.02 ▼0.01155.68 ▲0.26109.67 ▼8.87
multilang Comment /wp-admin/options-general.php?page=multilang-comment/multilang-comment.php1,1022.0960.6390.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multilang-comment/multilang-comment.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

multilang-comment/multilang-comment.php Passed 13 tests

The main PHP script in "Multilang Comment" version 1.1 is automatically included on every request by WordPress
53 characters long description:
Plugin provide functionality for comment in multilang

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin121 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12718104
JavaScript15217

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
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
No PNG files were detected