80% rtl-bakery

Code Review | WPBakery RTL

WordPress plugin WPBakery RTL scored80%from 54 tests.

About plugin

  • Plugin page: rtl-bakery
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 12, 2022
  • Latest release: May 29, 2022
  • Number of updates: 11
  • Update frequency: every 1.6 days
  • Top authors: combar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /4,920 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.24MB] [CPU: ▼46.02ms] Passed 4 tests

This is a short check of server-side resources used by WPBakery RTL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7213.96 ▼23.50
Dashboard /wp-admin2.77 ▼0.5315.67 ▼34.85
Posts /wp-admin/edit.php2.78 ▼0.5815.14 ▼32.13
Add New Post /wp-admin/post-new.php2.78 ▼3.1115.99 ▼93.61
Media Library /wp-admin/upload.php2.78 ▼0.4515.13 ▼19.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WPBakery RTL: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.74 ▲0.382.12 ▲0.5843.73 ▲5.76
Dashboard /wp-admin2,222 ▲335.85 ▲0.9394.63 ▼22.8743.66 ▲1.32
Posts /wp-admin/edit.php2,104 ▲152.03 ▲0.0135.09 ▼7.2234.32 ▲0.35
Add New Post /wp-admin/post-new.php1,525 ▲1117.43 ▼0.05697.82 ▲40.9259.44 ▲2.86
Media Library /wp-admin/upload.php1,401 ▲164.24 ▲0.05101.88 ▼15.9645.62 ▼2.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/rtl-bakery/rtl-bakery.php+76
    Undefined index: _rtl_bakery_admin_notice
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: persian, wpbakery, arabic, hebrew, visual composer...

rtl-bakery/rtl-bakery.php Passed 13 tests

This is the main PHP file of "WPBakery RTL" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
RTL Bakery sets the direction of reading and writing of the WPBakery page builder for proper working in RTL languages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin408 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS21818333
PHP1112550
PO File12225

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin