Translate WordPress – Google Language Translator

google-language-translator

Translate WordPress with Google Language Translator multilanguage plugin which allows to insert Google Translate widget anywhere on your website.

D
49%
Versie Bijgewerkt 3,438,450+ downloads 100,000+ actieve installaties Auteur: edo888 Bron: wordpress.org WordPress.org

Score breakdown

B Compatibility
C php-compatibility
F coding-standards
F wp-since

No minimum PHP version is declared.

Vereist WordPress 2.9 of hoger
Getest tot 6.9.4 Actueel
Laatst bijgewerkt Recent
Plugin-afhankelijkheden Geen
WP–PHP compatibility info WP 2.9+ requires PHP 4.3+. This plugin does not declare a minimum PHP version.
Ok
Declared PHP
Detected PHP
5.6+
Tested versions
PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4 PHP 8.0 PHP 8.1 PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5

Lowest required PHP version: 5.6

Analysed on

The coding standards scan found 31 error(s) and 189 warning(s), and the weighted issue density is 11.82 per 100 non-empty PHP lines across 2626 lines. Error-bearing plugins at this density fail.

31
errors
189
warnings
3
files with issues
5
files scanned
11.82
issues / 100 lines

Detected 31 error(s) and 189 warning(s) across 3 file(s) with issues, with a weighted density of 11.82 per 100 non-empty PHP lines.

Issues by rule

WordPress.Security.ValidatedSanitizedInput.InputNotSanitized 61
WordPress.Security.ValidatedSanitizedInput.MissingUnslash 61
WordPress.Security.ValidatedSanitizedInput.InputNotValidated 48
WordPress.WP.AlternativeFunctions.curl_curl_setopt 17
WordPress.Security.NonceVerification.Recommended 14
WordPress.DateTime.RestrictedFunctions.date_date 4
WordPress.PHP.DevelopmentFunctions.error_log_print_r 2
WordPress.Security.NonceVerification.Missing 2
WordPress.WP.AlternativeFunctions.file_system_operations_is_writable 2
WordPress.WP.AlternativeFunctions.strip_tags_strip_tags 2
WordPress.PHP.DevelopmentFunctions.prevent_path_disclosure_error_reporting 1
WordPress.WP.AlternativeFunctions.curl_curl_close 1
WordPress.WP.AlternativeFunctions.curl_curl_exec 1
WordPress.WP.AlternativeFunctions.curl_curl_getinfo 1
WordPress.WP.AlternativeFunctions.curl_curl_init 1
WordPress.WP.AlternativeFunctions.file_system_operations_fopen 1
WordPress.WP.AlternativeFunctions.file_system_operations_is_writeable 1

Issues 25

  • error
    strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.
    WordPress.WP.AlternativeFunctions.strip_tags_strip_tags
    google-language-translator/widget.php line 31:70
  • error
    File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: is_writable().
    WordPress.WP.AlternativeFunctions.file_system_operations_is_writable
    google-language-translator/google-language-translator.php line 159:46
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_URI']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 332:103
  • warning
    $_SERVER['REQUEST_URI'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 332:103
  • warning
    Detected usage of a non-sanitized input variable: $_SERVER['REQUEST_URI']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    google-language-translator/google-language-translator.php line 332:103
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['HTTP_HOST']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 335:51
  • warning
    $_SERVER['HTTP_HOST'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 335:51
  • warning
    Detected usage of a non-sanitized input variable: $_SERVER['HTTP_HOST']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    google-language-translator/google-language-translator.php line 335:51
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['HTTP_HOST']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 336:101
  • warning
    $_SERVER['HTTP_HOST'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 336:101
  • warning
    Detected usage of a non-sanitized input variable: $_SERVER['HTTP_HOST']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    google-language-translator/google-language-translator.php line 336:101
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_URI']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 406:111
  • warning
    $_SERVER['REQUEST_URI'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 406:111
  • warning
    Detected usage of a non-sanitized input variable: $_SERVER['REQUEST_URI']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    google-language-translator/google-language-translator.php line 406:111
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['HTTP_HOST']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 409:59
  • warning
    $_SERVER['HTTP_HOST'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 409:59
  • warning
    Detected usage of a non-sanitized input variable: $_SERVER['HTTP_HOST']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    google-language-translator/google-language-translator.php line 409:59
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['HTTP_HOST']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 410:109
  • warning
    $_SERVER['HTTP_HOST'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 410:109
  • warning
    Detected usage of a non-sanitized input variable: $_SERVER['HTTP_HOST']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    google-language-translator/google-language-translator.php line 410:109
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_URI']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 445:111
  • warning
    $_SERVER['REQUEST_URI'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 445:111
  • warning
    Detected usage of a non-sanitized input variable: $_SERVER['REQUEST_URI']
    WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    google-language-translator/google-language-translator.php line 445:111
  • warning
    Detected usage of a possibly undefined superglobal array index: $_SERVER['HTTP_HOST']. Check that the array index exists before using it.
    WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    google-language-translator/google-language-translator.php line 448:59
  • warning
    $_SERVER['HTTP_HOST'] not unslashed before sanitization. Use wp_unslash() or similar
    WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    google-language-translator/google-language-translator.php line 448:59
Analysed on

The plugin declares WordPress 2.9, but wp-since found 5 compatibility issue(s) that push the suggested minimum WordPress version to 3.1.0.

Issues Found
Declared min WP
2.9+
Suggested min WP
3.1.0+
Tool output
✅ Minimum version declared: 2.9 (from readme)

🚨 Compatibility issues found:

┌───────────────────────────────┬──────────────────┐
│ Symbol                        │ Introduced in WP │
├───────────────────────────────┼──────────────────┤
│ network_home_url (function)   │ 3.0.0            │
│ submit_button (function)      │ 3.1.0            │
│ get_current_screen (function) │ 3.1.0            │
│ home_url (function)           │ 3.0.0            │
│ add_settings_error (function) │ 3.0.0            │
└───────────────────────────────┴──────────────────┘

📌 Suggested version required:  3.1.0

Issues 5

  • info
  • info
  • info
  • info
  • info
Analysed on

Cijferschaal

A Uitstekend B Goed C Acceptabel D Slecht F Onvoldoende