84% signature-field-with-contact-form-7

Code Review | Signature Field With Contact Form 7

WordPress plugin Signature Field With Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: signature-field-w...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 5
  • Update frequency: every 54.4 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.36ms] Passed 4 tests

A check of server-side resources used by Signature Field With Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.53 ▼1.31
Dashboard /wp-admin3.31 ▲0.0053.19 ▼4.11
Posts /wp-admin/edit.php3.36 ▲0.0048.96 ▼2.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.99 ▼13.36
Media Library /wp-admin/upload.php3.23 ▲0.0040.36 ▲4.20

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Signature Field With Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.39 ▼0.191.77 ▼0.2343.11 ▼0.90
Dashboard /wp-admin2,195 ▲215.62 ▲0.0983.46 ▼23.6838.06 ▼3.07
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0134.87 ▼1.0035.41 ▲0.58
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.51663.60 ▼34.1053.89 ▼6.75
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.0499.21 ▼9.2541.93 ▼4.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/signature-field-with-contact-form-7/inc/tag.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/signature-field-with-contact-form-7/inc/filter.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/signature-field-with-contact-form-7/inc/form-tag.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/signature-field-with-contact-form-7/signature-field-with-contact-form-7.php:14

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 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

signature-field-with-contact-form-7/signature-field-with-contact-form-7.php Passed 13 tests

Analyzing the main PHP file in "Signature Field With Contact Form 7" version 1.0
71 characters long description:
This plugin allows create Digital Signature With Contact form 7 plugin.

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
There were no executable files found in this plugin635 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript461151349
PHP54914283
CSS1003

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.21
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin