83% wpml-to-multilingualpress

Code Review | WPML to MultilingualPress

WordPress plugin WPML to MultilingualPress scored83%from 54 tests.

About plugin

  • Plugin page: wpml-to-multiling...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2014
  • Latest release: Nov 28, 2019
  • Number of updates: 41
  • Update frequency: every 45.4 days
  • Top authors: Bueltge (80.49%)nullbyte (12.2%)derpixler (9.76%)dnaber-de (4.88%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /24,039 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.00MB] [CPU: ▼5.10ms] Passed 4 tests

Server-side resources used by WPML to MultilingualPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.71 ▲2.69
Dashboard /wp-admin3.31 ▲0.0046.94 ▼4.38
Posts /wp-admin/edit.php3.36 ▲0.0048.71 ▼2.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.48 ▼15.40
Media Library /wp-admin/upload.php3.23 ▲0.0037.59 ▲1.82

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

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

Browser metrics Passed 4 tests

WPML to MultilingualPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.27 ▼1.114.59 ▲2.8142.24 ▲1.99
Dashboard /wp-admin2,218 ▲115.83 ▲0.8898.83 ▼8.6839.91 ▼6.47
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0139.38 ▼2.1436.81 ▼1.41
Add New Post /wp-admin/post-new.php1,555 ▲1018.12 ▼5.25653.63 ▼21.9662.85 ▼1.74
Media Library /wp-admin/upload.php1,394 ▼64.23 ▼0.02100.36 ▼13.0645.94 ▼2.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpml-to-multilingualpress/wpml2mlp.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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #1, #2 in wpml-to-multilingualpress/assets to your readme.txt
You can take inspiration from this readme.txt

wpml-to-multilingualpress/wpml2mlp.php 92% from 13 tests

The main PHP file in "WPML to MultilingualPress" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpml-to-multilingualpress.php" instead of "wpml2mlp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1268

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
PNG images were not found in this plugin