78% bablic

Code Review | Translate Your WP Website Hassle Free!

WordPress plugin Translate Your WP Website Hassle Free! scored 78% from 54 tests.

About plugin

  • Plugin page: bablic
  • Plugin version: 2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2012
  • Latest release: Mar 30, 2023
  • Number of updates: 91
  • Update frequency: every 41.7 days
  • Top authors: ishaijaffe (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

100+ active / 10,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.41MB] [CPU: ▼19.27ms] Passed 4 tests

An overview of server-side resources used by Translate Your WP Website Hassle Free!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2332.31 ▼9.61
Dashboard /wp-admin3.62 ▲0.3247.05 ▼8.52
Posts /wp-admin/edit.php3.67 ▲0.3150.98 ▼0.18
Add New Post /wp-admin/post-new.php3.43 ▼2.4536.61 ▼58.76
Media Library /wp-admin/upload.php3.48 ▲0.2536.78 ▲1.95
Bablic /wp-admin/options-general.php?page=bablic3.4231.69

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 14 new options
New WordPress options
theysaidso_admin_options
bablic_item
widget_theysaidso_widget
bablic.trial_started
bablic.snippet
bablic.time
bablic.version
widget_recent-comments
bablic.site_id
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Translate Your WP Website Hassle Free!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.78 ▼0.8122.20 ▲20.3337.66 ▼9.17
Dashboard /wp-admin2,236 ▲475.45 ▼0.39129.28 ▲20.0436.24 ▼8.94
Posts /wp-admin/edit.php2,119 ▲332.63 ▲0.6357.30 ▲20.4631.82 ▲0.74
Add New Post /wp-admin/post-new.php1,540 ▲2619.00 ▲1.41598.50 ▼63.2754.79 ▲3.38
Media Library /wp-admin/upload.php1,418 ▲304.70 ▲0.30113.47 ▲18.0036.97 ▼6.70
Bablic /wp-admin/options-general.php?page=bablic9382.3544.4952.92

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 14 options
    • widget_recent-comments
    • bablic.access_token
    • widget_theysaidso_widget
    • bablic.snippet
    • bablic.version
    • db_upgraded
    • theysaidso_admin_options
    • bablic.meta
    • bablic.time
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=bablic
    • > Notice in wp-content/plugins/bablic/sdk.php+315
    Undefined property: BablicSDK::$snippet
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bablic
    • > Notice in wp-content/plugins/bablic/sdk.php+287
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/bablic/Bablic.php:58

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
The official readme.txt might help

bablic/Bablic.php 92% from 13 tests

The entry point to "Translate Your WP Website Hassle Free!" version 2.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bablic.php" instead of "Bablic.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,015 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2193343992
PO File13023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity48.20
▷ Minimum class complexity2.00
▷ Maximum class complexity156.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods88
▷ Static methods00.00%
▷ Public methods7484.09%
▷ Protected methods00.00%
▷ Private methods1415.91%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin