84% falang-for-elementor-lite

Code Review | Falang for Elementor Lite

WordPress plugin Falang for Elementor Lite scored 84% from 54 tests.

About plugin

  • Plugin page: falang-for-elemen...
  • Plugin version: 1.16
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 16, 2020
  • Latest release: Aug 22, 2023
  • Number of updates: 25
  • Update frequency: every 41.6 days
  • Top authors: sbouey (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active / 6,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Falang for Elementor Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0146.80 ▲5.30
Dashboard /wp-admin3.31 ▲0.0146.89 ▼2.25
Posts /wp-admin/edit.php3.36 ▲0.0146.86 ▲1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.52 ▼1.74
Media Library /wp-admin/upload.php3.23 ▲0.0132.00 ▼3.05

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Falang for Elementor Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.63 ▼0.682.01 ▲0.2141.66 ▼3.16
Dashboard /wp-admin2,218 ▲305.86 ▲0.90105.37 ▼4.1142.05 ▼4.82
Posts /wp-admin/edit.php2,100 ▲112.01 ▲0.0139.06 ▲4.1838.77 ▲6.39
Add New Post /wp-admin/post-new.php1,523 ▼1117.81 ▼5.32679.02 ▲16.9649.33 ▼0.64
Media Library /wp-admin/upload.php1,397 ▲94.21 ▲0.0296.93 ▼2.4443.38 ▼1.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/falang-for-elementor-lite/falang-for-elementor-lite.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #2 (icon-list Translation page) image required
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

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

The principal PHP file in "Falang for Elementor Lite" v. 1.16 is loaded by WordPress automatically on each request
44 characters long description:
Manage translation for Elementor with Falang

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected987 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171271646
XML23628184
JSON1140157

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity63.50
▷ Minimum class complexity43.00
▷ Maximum class complexity84.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods411.11%
▷ Public methods2672.22%
▷ Protected methods38.33%
▷ Private methods719.44%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.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
No PNG images were found in this plugin