84% falang-for-divi-lite

Code Review | Falang for Divi Lite

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

About plugin

  • Plugin page: falang-for-divi-lite
  • Plugin version: 1.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2020
  • Latest release: Nov 23, 2023
  • Number of updates: 21
  • Update frequency: every 53.1 days
  • Top authors: sbouey (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /3,518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Falang for Divi Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.50 ▼3.93
Dashboard /wp-admin3.38 ▲0.0847.68 ▼3.69
Posts /wp-admin/edit.php3.49 ▲0.1446.34 ▼4.75
Add New Post /wp-admin/post-new.php5.96 ▲0.0893.65 ▼1.48
Media Library /wp-admin/upload.php3.30 ▲0.0834.49 ▲1.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Falang for Divi Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.22 ▼0.131.70 ▼0.2537.46 ▼8.24
Dashboard /wp-admin2,206 ▲265.61 ▼0.0592.30 ▼5.4841.12 ▼6.65
Posts /wp-admin/edit.php2,108 ▲82.09 ▲0.0840.76 ▲0.4935.26 ▲2.54
Add New Post /wp-admin/post-new.php1,534 ▲823.22 ▲0.05670.55 ▼28.6856.72 ▼0.71
Media Library /wp-admin/upload.php1,411 ▲84.27 ▲0.0798.75 ▲1.1943.08 ▼1.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/falang-for-divi-lite/falang-for-divi-lite.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: "www.faboba.com/falangw/"
  • Screenshots: These screenshots require images: #1 (Button Translation page), #2 (Text Translation page), #3 (Accordion Translation page)
Please take inspiration from this readme.txt

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

The entry point to "Falang for Divi Lite" version 1.14 is a PHP file that has certain tags in its header comment area
39 characters long description:
Manage translation for Divi with Falang

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin674 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP2177298575
JSON110099

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity53.00
▷ Minimum class complexity40.00
▷ Maximum class complexity66.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods410.53%
▷ Public methods2976.32%
▷ Protected methods37.89%
▷ Private methods615.79%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
There were not PNG files found in your plugin