WordPress plugin Translate scored 84% from 54 tests.

About plugin

  • Plugin page: translatecom-webs...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: May 9, 2016
  • Latest release: Jul 1, 2020
  • Number of updates: 54
  • Update frequency: every 28.1 days
  • Top authors: bobemerge (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 2,678 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.97ms] Passed 4 tests

Analyzing server-side resources used by Translate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.59 ▼2.22
Dashboard /wp-admin3.32 ▲0.0149.06 ▼0.74
Posts /wp-admin/edit.php3.37 ▲0.0147.88 ▲1.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.45 ▼6.31
Media Library /wp-admin/upload.php3.24 ▲0.0135.18 ▲2.46

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
wt_active
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Translate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲13813.32 ▼1.433.84 ▲1.5742.26 ▼7.52
Dashboard /wp-admin2,206 ▲184.87 ▼0.94112.61 ▼4.21101.30 ▲58.33
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0535.52 ▼1.9133.46 ▼0.68
Add New Post /wp-admin/post-new.php1,681 ▲16722.77 ▲5.17717.71 ▲14.1654.58 ▲2.94
Media Library /wp-admin/upload.php1,397 ▲94.21 ▲0.0799.93 ▼0.3648.61 ▲6.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • wt_active
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/translatecom-website-translator/iframe.php
    • > /wp-content/plugins/translatecom-website-translator/embed.php
    • > /wp-content/plugins/translatecom-website-translator/plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: language, translator, translation, localization, multilingual...

translatecom-website-translator/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Translate" version 2.2
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("translatecom-website-translator.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin22,261 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54,10816,27220,969
CSS316334537
HTML22115521
SVG1106157
PHP3175177

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
18 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/sprite.png58.59KB18.53KB▼ 68.38%
img/arrow_sans_down.png0.13KB0.14KB0.00%
img/visa.png1.24KB0.92KB▼ 26.05%
img/external-link.png0.78KB0.38KB▼ 51.32%
img/logo.png0.86KB0.69KB▼ 19.68%