84% backend-google-translate

Code Review | Backend Google Translate

WordPress plugin Backend Google Translate scored84%from 54 tests.

About plugin

  • Plugin page: backend-google-tr...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2022
  • Latest release: Aug 11, 2023
  • Number of updates: 6
  • Update frequency: every 52.0 days
  • Top authors: vaibhavgvb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /861 total downloads


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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Backend Google Translate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.41 ▼8.37
Dashboard /wp-admin3.31 ▲0.0145.68 ▼4.08
Posts /wp-admin/edit.php3.36 ▲0.0145.03 ▲0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.17 ▼1.70
Media Library /wp-admin/upload.php3.23 ▲0.0038.20 ▲6.89

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Backend Google Translate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,629 ▲2,88316.55 ▲2.168.25 ▲6.2236.90 ▼10.93
Dashboard /wp-admin2,226 ▲445.84 ▼0.02104.94 ▼3.2971.26 ▲28.96
Posts /wp-admin/edit.php4,949 ▲2,8604.75 ▲2.58118.77 ▲81.9266.24 ▲33.71
Add New Post /wp-admin/post-new.php1,774 ▲24423.67 ▲0.62675.11 ▲2.4541.62 ▼16.34
Media Library /wp-admin/upload.php1,393 ▲85.01 ▲0.82104.20 ▲0.5164.28 ▲19.89

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backend-google-translate/backend-gtranslate.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

backend-google-translate/backend-gtranslate.php 92% from 13 tests

The main PHP script in "Backend Google Translate" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("backend-google-translate.php" instead of "backend-gtranslate.php")

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
Everything looks great! No dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected