90% w2q-wpml-to-qtranslate

Code Review | W2Q: WPML to qTranslate

WordPress plugin W2Q: WPML to qTranslate scored90%from 54 tests.

About plugin

  • Plugin page: w2q-wpml-to-qtran...
  • Plugin version: 0.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2015
  • Latest release: Feb 28, 2015
  • Number of updates: 11
  • Update frequency: every 0.4 days
  • Top authors: josk79 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /3,215 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.01MB] [CPU: ▼3.71ms] Passed 4 tests

This is a short check of server-side resources used by W2Q: WPML to qTranslate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.15 ▼5.92
Dashboard /wp-admin3.31 ▲0.0152.30 ▲1.07
Posts /wp-admin/edit.php3.36 ▲0.0152.69 ▲4.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.06 ▼7.92
Media Library /wp-admin/upload.php3.24 ▲0.0136.52 ▼2.08
W2Q: WPML to qTranslate /wp-admin/options-general.php?page=w2q-wpml-to-qtranslate3.1936.07

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for W2Q: WPML to qTranslate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.61 ▼0.781.96 ▲0.2241.31 ▼3.33
Dashboard /wp-admin2,210 ▲195.90 ▼0.04107.13 ▲5.5639.61 ▼5.16
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0340.58 ▲4.2234.97 ▲2.65
Add New Post /wp-admin/post-new.php1,537 ▲1823.13 ▼0.10674.75 ▲40.8353.40 ▼14.32
Media Library /wp-admin/upload.php1,386 ▲44.18 ▲0.03101.98 ▲2.7146.14 ▲4.37
W2Q: WPML to qTranslate /wp-admin/options-general.php?page=w2q-wpml-to-qtranslate8912.0225.7578.43

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
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === w2q-wpml-to-qtranslate === )
The official readme.txt might help

w2q-wpml-to-qtranslate/w2q-wpml-to-qtranslate.php Passed 13 tests

The principal PHP file in "W2Q: WPML to qTranslate" v. 0.9.3 is loaded by WordPress automatically on each request
72 characters long description:
Migrate WPML translations to qTranslate. Goodbye WPML, hello qTranslate.

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
There were no executable files found in this plugin423 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP212391376
JavaScript1263247

PHP code Passed 2 tests

An overview 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.40
Average class complexity31.50
▷ Minimum class complexity16.00
▷ Maximum class complexity47.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods516.67%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin