84% merged-comments-wpml

Code Review | Merged Comments for WPML

WordPress plugin Merged Comments for WPML scored84%from 54 tests.

About plugin

  • Plugin page: merged-comments-wpml
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 14, 2022
  • Latest release: Jul 14, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: poonasor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /221 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Merged Comments for WPML
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.53 ▼3.13
Dashboard /wp-admin3.31 ▲0.0146.26 ▼1.33
Posts /wp-admin/edit.php3.28 ▼0.0850.74 ▲3.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.02 ▼2.15
Media Library /wp-admin/upload.php3.23 ▲0.0036.40 ▲2.15

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
recovery_mode_email_last_sent
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Merged Comments for WPML
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.29 ▼1.312.09 ▲0.2044.41 ▼2.30
Dashboard /wp-admin2,206 ▲185.79 ▲0.8799.32 ▼8.5638.53 ▼5.06
Posts /wp-admin/edit.php1,197 ▼8951.53 ▼0.539.10 ▼25.4128.85 ▼4.64
Add New Post /wp-admin/post-new.php1,528 ▲1423.16 ▲5.64600.03 ▼53.4349.12 ▼15.51
Media Library /wp-admin/upload.php1,388 ▲64.25 ▲0.0896.52 ▼2.7542.45 ▼0.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/merged-comments-wpml/merged-comments-wpml.php:76

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
5 plugin tags: translation, wpml, multilingual, i18n, comments

merged-comments-wpml/merged-comments-wpml.php 92% from 13 tests

Analyzing the main PHP file in "Merged Comments for WPML" version 3.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 197 characters long)

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
No dangerous file extensions were detected45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172645

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin