84% multilingual-comments

Code Review | Multilingual Comments

WordPress plugin Multilingual Comments scored84%from 54 tests.

About plugin

  • Plugin page: multilingual-comm...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Jul 21, 2017
  • Latest release: May 29, 2019
  • Number of updates: 6
  • Update frequency: every 113.0 days
  • Top authors: Yame (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /2,397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.70ms] Passed 4 tests

This is a short check of server-side resources used by Multilingual Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.08 ▼2.74
Dashboard /wp-admin3.39 ▲0.0846.91 ▼1.66
Posts /wp-admin/edit.php3.50 ▲0.1451.85 ▼5.86
Add New Post /wp-admin/post-new.php5.99 ▲0.1099.94 ▼4.52
Media Library /wp-admin/upload.php3.31 ▲0.0839.31 ▲5.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Multilingual Comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲16813.73 ▼0.505.02 ▲3.1640.83 ▼2.09
Dashboard /wp-admin2,229 ▲445.88 ▲0.02111.31 ▼19.8843.36 ▼3.68
Posts /wp-admin/edit.php2,109 ▲202.00 ▼0.0438.50 ▲0.9431.64 ▼5.34
Add New Post /wp-admin/post-new.php1,531 ▲1723.09 ▲5.34693.85 ▼1.4571.67 ▲7.56
Media Library /wp-admin/upload.php1,408 ▲204.21 ▼0.18104.40 ▼15.3846.26 ▼5.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/multilingual-comments/public/partials/multilingual-comments-public-display.php
    • > /wp-content/plugins/multilingual-comments/admin/partials/multilingual-comments-admin-display.php

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: reviews, review, multilingual, woocommerce, comment...

multilingual-comments/multilingual-comments.php Passed 13 tests

The main file in "Multilingual Comments" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Shows Multilingual Comments & Reviews

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin301 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12165541295
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin