90% unify-wpml-comments

Code Review | Unify WPML Comments

WordPress plugin Unify WPML Comments scored90%from 54 tests.

About plugin

  • Plugin page: unify-wpml-comments
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-5.0
  • WordPress version: 6.3.1
  • First release: Apr 26, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 6
  • Update frequency: every 37.7 days
  • Top authors: frogerme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.91ms] Passed 4 tests

A check of server-side resources used by Unify WPML Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.98 ▲4.79
Dashboard /wp-admin3.33 ▼0.0247.43 ▼12.74
Posts /wp-admin/edit.php3.38 ▲0.0244.24 ▼11.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0278.17 ▼7.79
Media Library /wp-admin/upload.php3.26 ▲0.0235.60 ▼0.04

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Unify WPML Comments: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.68 ▲0.302.12 ▲0.5747.00 ▲5.16
Dashboard /wp-admin2,195 ▲155.61 ▲0.0294.18 ▲8.1641.38 ▼0.74
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0434.54 ▼0.3832.33 ▼3.90
Add New Post /wp-admin/post-new.php1,529 ▼023.31 ▲0.18637.12 ▼12.9949.94 ▼3.16
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.02108.67 ▼5.4747.37 ▼0.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wmpl, comments, multilingual, woocommerce, reviews

unify-wpml-comments/unify-wpml-comments.php Passed 13 tests

The primary PHP file in "Unify WPML Comments" version 1.1 is used by WordPress to initiate all plugin functionality
82 characters long description:
Display all the comments on posts (including custom ones), no matter the language.

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 plugin145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25019139
Markdown1306

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin