77% signature-fluent-contract-forms-add-on

Code Review | Electronic Signature Add-on for Fluent Forms

WordPress plugin Electronic Signature Add-on for Fluent Forms scored77%from 54 tests.

About plugin

  • Plugin page: signature-fluent-...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 6, 2022
  • Latest release: Sep 5, 2023
  • Number of updates: 34
  • Update frequency: every 10.7 days
  • Top authors: approveme (73.53%)stephenapproveme (29.41%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼7.72ms] Passed 4 tests

An overview of server-side resources used by Electronic Signature Add-on for Fluent Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2334.81 ▼11.08
Dashboard /wp-admin3.54 ▲0.1946.02 ▼14.95
Posts /wp-admin/edit.php3.65 ▲0.3052.20 ▲7.23
Add New Post /wp-admin/post-new.php6.14 ▲0.2593.25 ▼10.16
Media Library /wp-admin/upload.php3.46 ▲0.2337.46 ▲5.33
E-Signature /wp-admin/admin.php?page=esign-fluentform-about3.5642.20
About /wp-admin/admin.php?page=esign-fluentforms-about3.5633.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
WP_ESignature__Fluent_Forms_Digital_Signature_documentation
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Electronic Signature Add-on for Fluent Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.47 ▼0.931.68 ▼0.1941.70 ▼1.12
Dashboard /wp-admin2,238 ▲505.07 ▼0.79106.82 ▼9.3479.09 ▲35.08
Posts /wp-admin/edit.php2,133 ▲442.32 ▲0.2739.16 ▼0.9637.55 ▲3.43
Add New Post /wp-admin/post-new.php1,709 ▲18924.70 ▲1.41743.02 ▲67.5437.38 ▼28.24
Media Library /wp-admin/upload.php1,417 ▲294.47 ▲0.2798.85 ▲0.3981.73 ▲36.30
E-Signature /wp-admin/admin.php?page=esign-fluentform-about1,8382.8779.18192.19
About /wp-admin/admin.php?page=esign-fluentforms-about1,8572.8870.26102.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • WP_ESignature__Fluent_Forms_Digital_Signature_documentation

Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/signature-fluent-contract-forms-add-on/admin/views/autoload.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/signature-fluent-contract-forms-add-on/admin/about/views/fluent-esign-about-steps.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/signature-fluent-contract-forms-add-on/admin/about/views/esign-iframe.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/signature-fluent-contract-forms-add-on/admin/about/autoload.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/signature-fluent-contract-forms-add-on/admin/views/fluent-esign-about-steps.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/signature-fluent-contract-forms-add-on/admin/views/alert-almost-done.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=esign-fluentforms-about
    • > Network (severe)
    wp-content/plugins/signature-fluent-contract-forms-add-on/admin/assets/images/pen_icon.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please a description for screenshot #16 in signature-fluent-contract-forms-add-on/assets to your readme.txt
The official readme.txt might help

signature-fluent-contract-forms-add-on/electronic-signature-for-fluent-forms.php 69% from 13 tests

"Electronic Signature Add-on for Fluent Forms" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 260 characters long)
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("signature-fluent-contract-forms-add-on.php" instead of "electronic-signature-for-fluent-forms.php")

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
Everything looks great! No dangerous files found in this plugin3,492 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP196932321,906
CSS389281,160
SVG1211287
JavaScript4569139

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity26.33
▷ Minimum class complexity5.00
▷ Maximum class complexity59.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods65
▷ Static methods3046.15%
▷ Public methods5990.77%
▷ Protected methods00.00%
▷ Private methods69.23%
Functions16
▷ Named functions1487.50%
▷ Anonymous functions212.50%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 1.39MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/views/fluent-form.png70.47KB25.53KB▼ 63.77%
admin/about/assets/images/ff-add-on-step-7.png185.26KB66.03KB▼ 64.36%
admin/about/assets/images/ff-add-on-5a-1.png123.07KB44.56KB▼ 63.79%
admin/about/assets/images/ff-add-on-step-1.png25.66KB10.43KB▼ 59.34%
admin/about/assets/images/fluent-advisor.png51.35KB48.68KB▼ 5.21%