10% language-translate

Code Review | Language Translation

WordPress plugin Language Translation scored 10% from 53 tests.

About plugin

  • Plugin page: language-translate
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 5.8.1
  • First release: Nov 6, 2014
  • Latest release: Dec 24, 2014
  • Number of updates: 21
  • Update frequency: every 2.3 days
  • Top authors: esparkbiz (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 3,620 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/language-translate/includes/widgets/class-lt-order.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; Lt_Order has a deprecated constructor

Server metrics [RAM: ▼1.59MB] [CPU: ▼313.85ms] Passed 4 tests

An overview of server-side resources used by Language Translation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼0.7910.48 ▼25.64
Dashboard /wp-admin2.06 ▼0.997.64 ▼32.90
Posts /wp-admin/edit.php2.06 ▼1.047.25 ▼27.24
Add New Post /wp-admin/post-new.php2.06 ▼3.377.83 ▼1,166.85
Media Library /wp-admin/upload.php2.06 ▼0.956.84 ▼28.39
/wp-admin/admin.php?page=lt-conv-price-opt2.067.53
All Conversions /wp-admin/edit.php?post_type=lang_conv2.066.46
Orders /wp-admin/edit.php?post_type=lang_conv&page=lt-orders2.067.88
Languages /wp-admin/edit.php?post_type=lang_trans2.066.72
Settings /wp-admin/edit.php?post_type=lang_conv&page=lt-settings2.067.06
Add New /wp-admin/post-new.php?post_type=lang_conv2.068.38

Server storage [IO: ▲0.96MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 4 new options
New WordPress options
lt_set_option
lt_options
lt_set_pages
widget_lt-order

Browser metrics Passed 4 tests

Language Translation: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,871 ▲26516.50 ▲0.9522.26 ▲13.7148.58 ▲3.46
Dashboard /wp-admin2,985 ▲1326.19 ▲0.34146.82 ▲14.08106.98 ▼4.58
Posts /wp-admin/edit.php2,764 ▲612.70 ▲0.0269.84 ▲1.1984.94 ▼21.87
Add New Post /wp-admin/post-new.php1,627 ▲3921.63 ▼0.26278.14 ▼11.74110.89 ▲3.31
Media Library /wp-admin/upload.php1,830 ▲585.03 ▲0.03151.65 ▼12.08121.92 ▼11.77
/wp-admin/admin.php?page=lt-conv-price-opt1,0672.1057.4555.48
All Conversions /wp-admin/edit.php?post_type=lang_conv1,4452.6473.6171.98
Orders /wp-admin/edit.php?post_type=lang_conv&page=lt-orders1,2672.1056.2657.46
Languages /wp-admin/edit.php?post_type=lang_trans1,4332.6467.4661.21
Settings /wp-admin/edit.php?post_type=lang_conv&page=lt-settings2,0552.1159.0981.29
Add New /wp-admin/post-new.php?post_type=lang_conv2,0653.37104.6286.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/language-translate/includes/widgets/class-lt-order.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; Lt_Order has a deprecated constructor
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_lt-order

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=lang_conv
    • > Deprecated in wp-content/plugins/language-translate/includes/widgets/class-lt-order.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; Lt_Order has a deprecated constructor
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=lang_conv
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in Lt_Order is deprecated since version 4.3.0! Use __construct() instead.

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 Passed 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
5 plugin tags: translator, deals, posts, plugin, widget

language-translate/language-translate.php Passed 13 tests

Analyzing the main PHP file in "Language Translation" version 1.0.0
112 characters long description:
Language Translation provides a facility where the end-user can convert the contents from one language to other.

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 detected5,815 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47592532,293
PHP258167402,241
CSS44710774
SVG200507

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions70
▷ Named functions70100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin