89% wp-auto-translate-free

Code Review | WP Auto Translate Free

WordPress plugin WP Auto Translate Free scored89%from 54 tests.

About plugin

  • Plugin page: wp-auto-translate...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 6.3.1
  • First release: Mar 21, 2019
  • Latest release: Sep 27, 2022
  • Number of updates: 14
  • Update frequency: every 91.9 days
  • Top authors: translatewebsite (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /17,309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.90ms] Passed 4 tests

Server-side resources used by WP Auto Translate Free
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.18 ▼2.92
Dashboard /wp-admin3.33 ▼0.0144.74 ▼17.04
Posts /wp-admin/edit.php3.38 ▲0.0347.75 ▼0.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.53 ▼27.61
Media Library /wp-admin/upload.php3.26 ▲0.0335.62 ▲0.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Auto Translate Free
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲24713.63 ▼0.922.08 ▲0.0162.02 ▲18.83
Dashboard /wp-admin2,222 ▲344.83 ▼0.23109.45 ▲2.4438.76 ▼4.76
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0238.70 ▲1.7834.60 ▼3.40
Add New Post /wp-admin/post-new.php1,533 ▲1923.30 ▲5.62667.80 ▼14.0960.37 ▲18.58
Media Library /wp-admin/upload.php1,401 ▲104.21 ▲0.0497.98 ▼6.3541.54 ▼1.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration 90% 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
4 plugin tags: auto translate, autotranslate, translate, translator

wp-auto-translate-free/wp-translatorea.php 77% from 13 tests

The main PHP file in "WP Auto Translate Free" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-auto-translate-free.php" instead of "wp-translatorea.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("https://euroalphabet.eu/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin552 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP68950220
CSS1292145
JavaScript1331279
PO File1394859
JSON10047
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods440.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin