72% text-united-translation

Code Review | Translate WordPress Websites with TextUnited

WordPress plugin Translate WordPress Websites with TextUnited scored72%from 54 tests.

About plugin

  • Plugin page: text-united-trans...
  • Plugin version: 1.0.36
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2021
  • Latest release: Mar 11, 2023
  • Number of updates: 52
  • Update frequency: every 14.2 days
  • Top authors: textunited (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /3,050 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▲243.76ms] 50% from 4 tests

Server-side resources used by Translate WordPress Websites with TextUnited
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 535.73ms on /wp-admin/admin.php?page=text-united-translation/mainsettings.php)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 243.76ms on /wp-admin/admin.php?page=text-united-translation/faq.php)
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.15304.97 ▲263.70
Dashboard /wp-admin3.49 ▲0.15326.49 ▲264.73
Posts /wp-admin/edit.php3.53 ▲0.17413.90 ▲360.52
Add New Post /wp-admin/post-new.php6.03 ▲0.14320.12 ▲210.02
Media Library /wp-admin/upload.php3.35 ▲0.12273.55 ▲236.59
Settings /wp-admin/admin.php?page=text-united-translation/importer.php3.47822.69
Text United /wp-admin/admin.php?page=text-united-translation/mainsettings.php3.39535.73
How to use? /wp-admin/admin.php?page=text-united-translation/faq.php3.39353.08

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 1,235 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
TUcustomTypes
db_upgraded
TUlanguagesAdd
can_compress_scripts
widget_theysaidso_widget
TUprojectInfo
widget_recent-comments
TUtoken
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Translate WordPress Websites with TextUnited
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.92 ▼0.437.34 ▲5.6737.92 ▼2.53
Dashboard /wp-admin2,245 ▲715.15 ▼0.4096.28 ▼7.3237.58 ▼13.59
Posts /wp-admin/edit.php2,147 ▲472.18 ▲0.2337.15 ▼0.2536.88 ▲3.62
Add New Post /wp-admin/post-new.php1,568 ▲4222.08 ▼1.41689.66 ▲5.7635.98 ▼20.10
Media Library /wp-admin/upload.php1,447 ▲474.70 ▲0.51101.78 ▼7.7640.76 ▼6.32
Settings /wp-admin/admin.php?page=text-united-translation/importer.php9292.0927.6160.83
Text United /wp-admin/admin.php?page=text-united-translation/mainsettings.php9502.0926.4265.87
How to use? /wp-admin/admin.php?page=text-united-translation/faq.php1,0452.1426.8737.47

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 11 options
    • TUtoken
    • TUcustomTypes
    • widget_theysaidso_widget
    • TUlanguagesAdd
    • db_upgraded
    • can_compress_scripts
    • TUdefaultLanguage
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=text-united-translation/faq.php
    • > Notice in wp-content/plugins/text-united-translation/admin/partials/faq-page.php+90
    Undefined variable: active4

SRP 0% 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/text-united-translation/public/partials/text-united-translation-public-display.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/text-united-translation/admin/partials/faq-page.php:88
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/text-united-translation/admin/partials/submunu-page.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/text-united-translation/admin/partials/text-united-translation-admin-display.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: language selector, localization, translation, translate, multilingual...

text-united-translation/text-united-translation.php 92% from 13 tests

The entry point to "Translate WordPress Websites with TextUnited" version 1.0.36 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin70,998 lines of code in 636 files:
LanguageFilesBlank linesComment linesLines of code
SVG5443255,512
JavaScript712,6148229,754
PHP141,0246133,097
CSS7148142,635

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity66.29
▷ Minimum class complexity1.00
▷ Maximum class complexity225.00
Average method complexity6.86
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods78
▷ Static methods33.85%
▷ Public methods7393.59%
▷ Protected methods00.00%
▷ Private methods56.41%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
13 PNG files occupy 0.27MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/partials/img/media2.png3.96KB2.08KB▼ 47.46%
assets/icon-128x128.png5.20KB4.06KB▼ 21.79%
admin/img/text_united_logo.png6.62KB3.79KB▼ 42.67%
public/img/logo-icon.png1.24KB1.54KB0.00%
admin/partials/img/logo-icon.png1.24KB1.54KB0.00%