78% digital-signature-for-contact-form-7

Code Review | Digital Signature For Contact Form 7

WordPress plugin Digital Signature For Contact Form 7 scored 78% from 54 tests.

About plugin

  • Plugin page: digital-signature...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 10, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 12
  • Update frequency: every 42.0 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active / 4,906 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.36ms] Passed 4 tests

This is a short check of server-side resources used by Digital Signature For Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0833.43 ▼11.40
Dashboard /wp-admin3.38 ▲0.0853.30 ▲6.69
Posts /wp-admin/edit.php3.43 ▲0.0755.14 ▲9.40
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.06 ▼9.69
Media Library /wp-admin/upload.php3.30 ▲0.0742.41 ▲8.95

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Digital Signature For Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲17614.20 ▼0.365.33 ▲3.5944.02 ▼1.30
Dashboard /wp-admin2,229 ▲375.08 ▲0.14113.74 ▲3.1541.06 ▲0.93
Posts /wp-admin/edit.php2,122 ▲362.36 ▲0.3644.18 ▲4.6137.38 ▲2.14
Add New Post /wp-admin/post-new.php1,535 ▲723.28 ▲5.09652.50 ▲61.0836.96 ▼17.09
Media Library /wp-admin/upload.php1,414 ▲234.49 ▲0.28105.00 ▲10.1345.83 ▲4.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/digital-signature-for-contact-form-7/digital-signature-cf7.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-signature-for-contact-form-7/main/resources/digital-signature-language.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-signature-for-contact-form-7/main/resources/digital-signature-installation-require.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-signature-for-contact-form-7/main/resources/digital-signature-load-js-css.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Contributors: Contributors not specified
You can look at the official readme.txt

digital-signature-for-contact-form-7/digital-signature-cf7.php 92% from 13 tests

This is the main PHP file of "Digital Signature For Contact Form 7" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("digital-signature-for-contact-form-7.php" instead of "digital-signature-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin969 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3131180636
PHP57037314
CSS10019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin