84% falang-for-wpbakery-lite

Code Review | Falang for WPBakery Lite

WordPress plugin Falang for WPBakery Lite scored84%from 54 tests.

About plugin

  • Plugin page: falang-for-wpbake...
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Sep 19, 2023
  • Number of updates: 14
  • Update frequency: every 63.9 days
  • Top authors: sbouey (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,153 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.73ms] Passed 4 tests

Server-side resources used by Falang for WPBakery Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.30 ▼5.24
Dashboard /wp-admin3.31 ▲0.0145.85 ▼1.17
Posts /wp-admin/edit.php3.36 ▲0.0144.86 ▼2.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.22 ▼9.89
Media Library /wp-admin/upload.php3.23 ▲0.0138.28 ▲2.75

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Falang for WPBakery Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.47 ▲0.091.62 ▼0.2438.01 ▼5.22
Dashboard /wp-admin2,215 ▲244.86 ▼1.01109.70 ▲2.6739.91 ▲2.93
Posts /wp-admin/edit.php2,100 ▲142.00 ▼0.0141.15 ▲2.7133.42 ▼0.34
Add New Post /wp-admin/post-new.php1,538 ▲423.07 ▼0.09708.30 ▲91.8559.63 ▲6.84
Media Library /wp-admin/upload.php1,397 ▲94.22 ▲0.0296.68 ▼5.6342.00 ▼5.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/falang-for-wpbakery-lite/falang-for-wpbakery-lite.php:31

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: "www.faboba.com/falangw/"
The official readme.txt might help

falang-for-wpbakery-lite/falang-for-wpbakery-lite.php Passed 13 tests

The main file in "Falang for WPBakery Lite" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
Manage translation for WPBakery with Falang

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin791 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP2149230548
XML23628184
JSON70054
CSS1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity50.00
▷ Minimum class complexity43.00
▷ Maximum class complexity57.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods410.81%
▷ Public methods2567.57%
▷ Protected methods38.11%
▷ Private methods924.32%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants444.44%
▷ Class constants555.56%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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