90% wpml-to-polylang

Code Review | WPML to Polylang

WordPress plugin WPML to Polylang scored90%from 54 tests.

About plugin

  • Plugin page: wpml-to-polylang
  • Plugin version: 0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Dec 29, 2013
  • Latest release: Aug 10, 2023
  • Number of updates: 29
  • Update frequency: every 121.1 days
  • Top authors: Chouby (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

7,000+ active /122,130 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.17ms] Passed 4 tests

Server-side resources used by WPML to Polylang
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.54 ▼5.29
Dashboard /wp-admin3.34 ▲0.0344.97 ▼3.36
Posts /wp-admin/edit.php3.45 ▲0.0946.15 ▼2.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.64 ▲4.48
Media Library /wp-admin/upload.php3.26 ▲0.0335.03 ▲2.39
WPML importer /wp-admin/tools.php?page=wpml-importer3.2330.85

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPML to Polylang
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.60 ▼1.021.76 ▼0.0140.57 ▼9.80
Dashboard /wp-admin2,210 ▲224.85 ▼0.0599.75 ▼20.1437.71 ▼4.39
Posts /wp-admin/edit.php2,093 ▲72.03 ▲0.0139.73 ▲5.0035.04 ▲2.06
Add New Post /wp-admin/post-new.php1,545 ▲1718.65 ▲0.34630.78 ▲12.1955.27 ▲6.95
Media Library /wp-admin/upload.php1,386 ▼54.20 ▼0.0196.20 ▼1.1139.36 ▼5.22
WPML importer /wp-admin/tools.php?page=wpml-importer7942.0923.7425.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: multilingual, bilingual, wpml, importer, polylang

wpml-to-polylang/wpml-to-polylang.php 92% from 13 tests

The principal PHP file in "WPML to Polylang" v. 0.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,599 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP233589601,505
JavaScript1101553
JSON20041

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity12.31
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes16
▷ Abstract classes318.75%
▷ Concrete classes1381.25%
▷ Final classes00.00%
Methods102
▷ Static methods1716.67%
▷ Public methods5452.94%
▷ Protected methods4645.10%
▷ Private methods21.96%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.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