73% tranzly

Code Review | WordPress Translation plugin for Post, Pages & WooCommerce products. Tranzly IO AI DeepL automatic WordPress Translator.

WordPress plugin WordPress Translation plugin for Post, Pages & WooCommerce products. Tranzly IO AI DeepL automatic WordPress Translator. scored73%from 54 tests.

About plugin

  • Plugin page: tranzly
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2020
  • Latest release: Feb 14, 2023
  • Number of updates: 20
  • Update frequency: every 42.4 days
  • Top authors: tranzly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

6,000+ active /7,993 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲5.29MB] [CPU: ▲11.64ms] 75% from 4 tests

An overview of server-side resources used by WordPress Translation plugin for Post, Pages & WooCommerce products. Tranzly IO AI DeepL automatic WordPress Translator.
Please take the time to fix the following items
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.29MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.29 ▲5.8258.94 ▲23.90
Dashboard /wp-admin9.31 ▲5.9672.31 ▲13.21
Posts /wp-admin/edit.php9.31 ▲5.9579.82 ▲36.98
Add New Post /wp-admin/post-new.php9.31 ▲3.4269.89 ▼22.60
Media Library /wp-admin/upload.php9.31 ▲6.0866.95 ▲32.05
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius9.3158.57

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 299 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
fs_active_plugins
widget_tranzly_language_switcher
fs_gdpr
fs_accounts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Translation plugin for Post, Pages & WooCommerce products. Tranzly IO AI DeepL automatic WordPress Translator.
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲19613.54 ▼0.999.15 ▲7.2729.76 ▼8.61
Dashboard /wp-admin2,237 ▲575.81 ▲0.2696.64 ▲7.1443.92 ▲2.26
Posts /wp-admin/edit.php2,143 ▲432.27 ▲0.2536.14 ▼3.7735.52 ▼1.14
Add New Post /wp-admin/post-new.php1,848 ▲32023.30 ▲0.26659.37 ▼10.2355.78 ▼13.84
Media Library /wp-admin/upload.php1,445 ▲454.44 ▲0.2595.62 ▼0.0942.87 ▼1.22
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius1,0971.9724.5838.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/tranzly/freemius/includes/class-freemius.php+8772
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 11 options in the database
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-posts
    • widget_tranzly_language_switcher
    • fs_debug_mode
    • widget_theysaidso_widget
    • widget_recent-comments
    • fs_active_plugins
    • can_compress_scripts
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tranzly/admin/class-tranzly-admin.php:108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tranzly/includes/class-tranzly-posts-translator.php:441
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tranzly/includes/class-tranzly-meta-box.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tranzly/includes/class-tranzly-settings-page.php:672

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
9 plugin tags: deepl, bulk translation, multilingual, automatic translation, translators...

tranzly/tranzly.php 92% from 13 tests

The main PHP script in "WordPress Translation plugin for Post, Pages & WooCommerce products. Tranzly IO AI DeepL automatic WordPress Translator." version 2.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 329 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin62,560 lines of code in 232 files:
LanguageFilesBlank linesComment linesLines of code
PHP1308,56317,95335,913
PO File126,9608,45515,240
JavaScript682,69180710,378
CSS1710319763
Markdown1680214
JSON20035
SVG20017

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity81.66
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
Methods1,355
▷ Static methods19314.24%
▷ Public methods96671.29%
▷ Protected methods181.33%
▷ Private methods37127.38%
Functions107
▷ Named functions107100.00%
▷ Anonymous functions00.00%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.32MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/assets/img/English.png6.87KB3.69KB▼ 46.32%
freemius/assets/img/bulksms.png5.96KB4.30KB▼ 27.81%
includes/assets/img/Dutch.png22.82KB9.23KB▼ 59.56%
includes/assets/img/German.png6.08KB3.06KB▼ 49.61%