10% bravo-translate

Code Review | Bravo Translate

WordPress plugin Bravo Translate scored 10% from 54 tests.

About plugin

  • Plugin page: bravo-translate
  • Plugin version: 1.2
  • PHP compatiblity: 4.0.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Apr 28, 2023
  • Number of updates: 8
  • Update frequency: every 102.6 days
  • Top authors: guelben (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 4,006 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/bravo-translate/activation.php+23
    Trying to get property 'num_rows' of non-object

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.67ms] Passed 4 tests

This is a short check of server-side resources used by Bravo Translate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.62 ▲2.09
Dashboard /wp-admin3.37 ▲0.0746.68 ▲0.63
Posts /wp-admin/edit.php3.49 ▲0.1349.87 ▼1.59
Add New Post /wp-admin/post-new.php5.96 ▲0.0897.11 ▼7.80
Media Library /wp-admin/upload.php3.30 ▲0.0737.47 ▲4.61

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables
wp_bravo_translate
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
BRAVOTRAN_notice
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Bravo Translate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.32 ▼1.431.63 ▼0.5041.75 ▼8.30
Dashboard /wp-admin2,222 ▲314.88 ▼0.12107.58 ▲10.1038.79 ▼3.64
Posts /wp-admin/edit.php2,102 ▲132.01 ▼0.0539.83 ▲1.6337.81 ▲4.02
Add New Post /wp-admin/post-new.php1,555 ▲2218.90 ▼4.47610.98 ▼12.9356.33 ▼6.68
Media Library /wp-admin/upload.php1,398 ▲74.22 ▼0.0896.97 ▼1.5641.69 ▼0.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: translators, localisation, easy, simple, productivity...

bravo-translate/bravo-translate.php 92% from 13 tests

The main PHP file in "Bravo Translate" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 257 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin542 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP711970371
JavaScript14092
PO File1161660
CSS10019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin