77% digital-signature-for-gravity-forms

Code Review | Digital Signature For Gravity Forms

WordPress plugin Digital Signature For Gravity Forms scored77%from 54 tests.

About plugin

  • Plugin page: digital-signature...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2023
  • Latest release: Mar 9, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.14ms] Passed 4 tests

A check of server-side resources used by Digital Signature For Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0545.34 ▼3.25
Dashboard /wp-admin3.35 ▲0.0447.18 ▼2.95
Posts /wp-admin/edit.php3.40 ▲0.0448.71 ▼1.92
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.80 ▼8.42
Media Library /wp-admin/upload.php3.27 ▲0.0438.72 ▲2.06

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Digital Signature For Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18413.85 ▼0.565.43 ▲3.6339.65 ▼7.70
Dashboard /wp-admin2,225 ▲405.16 ▲0.26111.13 ▼11.7742.61 ▼3.42
Posts /wp-admin/edit.php2,113 ▲422.52 ▲0.5042.67 ▲6.0334.28 ▲0.03
Add New Post /wp-admin/post-new.php1,528 ▼523.46 ▲0.35649.93 ▼38.1534.47 ▼18.66
Media Library /wp-admin/upload.php1,407 ▲224.47 ▲0.26109.33 ▲5.7146.17 ▲0.01

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

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/digital-signature-for-gravity-forms/gravity-forms-digital-signature.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-signature-for-gravity-forms/inc/backend.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

digital-signature-for-gravity-forms/gravity-forms-digital-signature.php 85% from 13 tests

The principal PHP file in "Digital Signature For Gravity Forms" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("digital-signature-for-gravity-forms.php" instead of "gravity-forms-digital-signature.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin817 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3129180610
PHP27321207

PHP code Passed 2 tests

An short overview of 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.17
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin