10% verbingo-translator

Code Review | Verbingo Translator

WordPress plugin Verbingo Translator scored 10% from 54 tests.

About plugin

  • Plugin page: verbingo-translator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Aug 28, 2015
  • Number of updates: 29
  • Update frequency: every 3.5 days
  • Top authors: Qasim Jan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,263 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/verbingo-translator/verbingo_settings.php+11
    Constant ABSPATH already defined

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.34ms] Passed 4 tests

This is a short check of server-side resources used by Verbingo Translator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.86 ▼36.82
Dashboard /wp-admin2.09 ▼1.225.24 ▼47.44
Posts /wp-admin/edit.php2.09 ▼1.276.00 ▼41.24
Add New Post /wp-admin/post-new.php2.09 ▼3.806.04 ▼87.87
Media Library /wp-admin/upload.php2.09 ▼1.146.57 ▼28.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 325 new files
Database: 2 new tables, 7 new options
New tables
wp_ver_selected
wp_translation
New WordPress options
db_upgraded
widget_verbingo-widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Verbingo Translator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17113.72 ▼0.666.48 ▲4.7144.19 ▼8.90
Dashboard /wp-admin2,210 ▲224.89 ▼0.99110.70 ▲8.2597.72 ▲56.49
Posts /wp-admin/edit.php2,108 ▲222.09 ▲0.0836.31 ▲0.1836.00 ▲2.17
Add New Post /wp-admin/post-new.php1,684 ▲14722.70 ▼0.52670.52 ▼15.4663.93 ▲8.83
Media Library /wp-admin/upload.php1,407 ▲194.30 ▲0.08100.64 ▼12.0985.40 ▲37.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/verbingo-translator/verbingo_settings.php+11
    Constant ABSPATH already defined
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_translation
    • wp_ver_selected
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_verbingo-widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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 everything seems fine, this is not 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
Please fix the following
  • 4× 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/verbingo-translator/verbingo_main.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/verbingo-translator/verbingo_widget_form.php:50
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/verbingo-translator/verbingo_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verbingo-translator/verbingo_admin.php:444

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: translation, verbingo translator, translator, file translation

verbingo-translator/verbingo_settings.php 92% from 13 tests

"Verbingo Translator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("verbingo-translator.php" instead of "verbingo_settings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,010 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP612664775
CSS1238133
JavaScript1165102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity8.00
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2890.32%
▷ Protected methods00.00%
▷ Private methods39.68%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
316 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/flags/tz.png0.50KB0.72KB0.00%
img/flags/bj.png0.30KB0.66KB0.00%
img/flags/az.png0.41KB0.75KB0.00%
img/flags/lt.png0.33KB0.73KB0.00%
img/flags/mu.png0.34KB0.73KB0.00%