77% forms-signature-formidable-online-contract-automation

Code Review | Formidable Forms Signature Online Contract Automation

WordPress plugin Formidable Forms Signature Online Contract Automation scored77%from 54 tests.

About plugin

  • Plugin page: forms-signature-f...
  • Plugin version: 1.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Jul 10, 2023
  • Number of updates: 127
  • Update frequency: every 18.4 days
  • Top authors: approveme (82.68%)stephenapproveme (18.11%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /16,133 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.35MB] [CPU: ▲1.01ms] Passed 4 tests

Analyzing server-side resources used by Formidable Forms Signature Online Contract Automation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3740.71 ▼6.98
Dashboard /wp-admin3.69 ▲0.3948.64 ▲3.95
Posts /wp-admin/edit.php3.74 ▲0.3953.04 ▲4.91
Add New Post /wp-admin/post-new.php6.21 ▲0.3399.46 ▲2.14
Media Library /wp-admin/upload.php3.55 ▲0.3243.11 ▲7.69
About /wp-admin/admin.php?page=esign-formidableform-about3.6333.92
E-signature /wp-admin/admin.php?page=esign-formidableforms-about3.6234.64

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

Browser metrics Passed 4 tests

A check of browser resources used by Formidable Forms Signature Online Contract Automation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.57 ▼0.861.74 ▼0.3541.19 ▼6.74
Dashboard /wp-admin2,232 ▲405.82 ▲0.93103.22 ▼2.5488.82 ▲48.30
Posts /wp-admin/edit.php2,121 ▲321.99 ▼0.0338.08 ▲3.4934.48 ▲1.14
Add New Post /wp-admin/post-new.php1,701 ▲15924.63 ▲6.32690.93 ▲72.4565.81 ▲14.11
Media Library /wp-admin/upload.php1,411 ▲234.21 ▲0.0095.75 ▼5.6567.39 ▲22.71
About /wp-admin/admin.php?page=esign-formidableform-about1,8702.8679.30238.33
E-signature /wp-admin/admin.php?page=esign-formidableforms-about1,8672.8867.2678.39

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 did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • WP_ESignature__Formidable_Forms_Digital_Signature_documentation
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/views/esig-core-about.php
    • > /wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/assets/js/index.php
  • 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/forms-signature-formidable-online-contract-automation/formidable-forms-approveme-digital-signature.php:43
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/rating-widget/views/esig-ratting-widget-view.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/rating-widget/views/esig-ratting-widget-view.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/about/views/esign-iframe.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/rating-widget/views/esig-ratting-widget-view.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/rating-widget/views/esig-ratting-widget-view.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/views/alert-almost-done.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/includes/esig_action_settings.php:4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/rating-widget/views/esig-ratting-widget-view.php on line 2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/forms-signature-formidable-online-contract-automation/admin/rating-widget/views/esig-ratting-widget-view.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Tags: You are using too many tags: 27 tag instead of maximum 10
You can take inspiration from this readme.txt

forms-signature-formidable-online-contract-automation/formidable-forms-approveme-digital-signature.php 77% from 13 tests

The entry point to "Formidable Forms Signature Online Contract Automation" version 1.8.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 252 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("forms-signature-formidable-online-contract-automation.php" instead of "formidable-forms-approveme-digital-signature.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected4,251 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP268823272,395
CSS6126431,440
JavaScript59610210
SVG1221206

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity28.38
▷ Minimum class complexity4.00
▷ Maximum class complexity84.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods92
▷ Static methods4346.74%
▷ Public methods8693.48%
▷ Protected methods00.00%
▷ Private methods66.52%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
37 PNG files occupy 2.59MB with 1.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/formidableform-add-on-5a-1.png16.25KB10.08KB▼ 37.95%
admin/about/assets/images/gf-girl-on-laptop-small.png21.18KB5.83KB▼ 72.47%
admin/about/assets/images/companies/HBO_Latino_Logo.png3.19KB1.90KB▼ 40.38%
(invalid) icon.png28.12KB0.00KB▼ 100.00%
admin/about/assets/images/formidableform-add-on-step-6.png190.52KB74.18KB▼ 61.07%