90% e-signature-rtl-right-to-left

Code Review | WP ESIGNATURE RTL (Right to Left)

WordPress plugin WP ESIGNATURE RTL (Right to Left) scored90%from 54 tests.

About plugin

  • Plugin page: e-signature-rtl-r...
  • Plugin version: 1.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2016
  • Latest release: May 24, 2023
  • Number of updates: 36
  • Update frequency: every 73.9 days
  • Top authors: approveme (86.11%)stephenapproveme (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,097 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.19ms] Passed 4 tests

An overview of server-side resources used by WP ESIGNATURE RTL (Right to Left)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.04 ▼1.14
Dashboard /wp-admin3.33 ▼0.0146.47 ▼13.75
Posts /wp-admin/edit.php3.38 ▲0.0349.99 ▼2.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.58 ▼13.40
Media Library /wp-admin/upload.php3.25 ▲0.0334.64 ▼7.12

Server storage [IO: ▲0.07MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WP ESIGNATURE RTL (Right to Left): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.47 ▲0.071.69 ▼0.8439.12 ▼1.61
Dashboard /wp-admin2,213 ▲255.94 ▲1.04106.70 ▼8.1038.72 ▼2.50
Posts /wp-admin/edit.php2,095 ▲62.02 ▼0.0134.98 ▼8.7532.60 ▼2.31
Add New Post /wp-admin/post-new.php1,540 ▲2123.44 ▲0.29678.03 ▼23.3653.63 ▼10.97
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.0697.60 ▼12.7343.94 ▼4.37

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: right-to-left, wordpress right-to-left, wordpress rtl, wp esignature rtl, rtl...

e-signature-rtl-right-to-left/esig-rtl.php 92% from 13 tests

The main PHP file in "WP ESIGNATURE RTL (Right to Left)" ver. 1.7.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("e-signature-rtl-right-to-left.php" instead of "esig-rtl.php")

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
Good job! No executable or dangerous file extensions detected3,054 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS6530602,928
PHP14427126

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods428.57%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin