10% goo-translate-widget

Code Review | Goo Translate Widget

WordPress plugin Goo Translate Widget scored10%from 54 tests.

About plugin

  • Plugin page: goo-translate-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 6.3.1
  • First release: Sep 27, 2015
  • Latest release: Dec 11, 2016
  • Number of updates: 9
  • Update frequency: every 49.0 days
  • Top authors: Gioni (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /10,694 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/goo-translate-widget/translate-widget.php+13
    Function create_function() is deprecated

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

An overview of server-side resources used by Goo Translate Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.50 ▼40.39
Dashboard /wp-admin2.05 ▼1.305.68 ▼57.47
Posts /wp-admin/edit.php2.05 ▼1.315.74 ▼51.55
Add New Post /wp-admin/post-new.php2.05 ▼3.845.17 ▼102.07
Media Library /wp-admin/upload.php2.05 ▼1.185.48 ▼31.11

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_translate_wgt
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Goo Translate Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▲0.121.79 ▼0.0744.22 ▲0.35
Dashboard /wp-admin2,192 ▲185.57 ▼0.0284.33 ▼6.2437.78 ▼8.66
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0138.30 ▼0.7435.48 ▲2.53
Add New Post /wp-admin/post-new.php1,545 ▼523.16 ▲0.34641.27 ▲3.8955.35 ▲7.50
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0195.66 ▼6.7642.07 ▼6.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/goo-translate-widget/translate-widget.php+13
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_translate_wgt
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goo-translate-widget/translate-widget.php:13

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 errors were detected

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
5 plugin tags: translator, translate, translation, multilingual, website translator

goo-translate-widget/translate-widget.php 77% from 13 tests

Analyzing the main PHP file in "Goo Translate Widget" version 1.0
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("goo-translate-widget.php" instead of "translate-widget.php")

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
Success! There were no dangerous files found in this plugin183 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1199145
PO File16638

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.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.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

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