Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.11ms] Passed 4 tests
Analyzing server-side resources used by Contact Forms 7 Digital Signature Add-On
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.36 ▲1.25 |
Dashboard /wp-admin | 3.43 ▲0.09 | 44.73 ▼14.57 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.06 ▼2.87 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 102.36 ▼1.95 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.47 ▼1.05 |
E-signature /wp-admin/admin.php?page=esign-cf7-about | 3.39 | 33.59 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
WP_ESignature__Cf7_Forms_Digital_Signature_documentation |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Forms 7 Digital Signature Add-On
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲69 | 13.88 ▼0.53 | 1.81 ▼0.21 | 44.14 ▲2.02 |
Dashboard /wp-admin | 2,249 ▲61 | 5.20 ▲0.32 | 100.24 ▼5.68 | 90.07 ▲49.95 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.48 ▲0.49 | 32.64 ▼7.18 | 33.94 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,561 ▲18 | 18.35 ▼0.04 | 672.22 ▲70.71 | 40.37 ▼10.83 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.37 ▲0.18 | 102.66 ▲1.47 | 77.44 ▲33.73 |
E-signature /wp-admin/admin.php?page=esign-cf7-about | 1,847 | 2.87 | 72.16 | 211.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- WP_ESignature__Cf7_Forms_Digital_Signature_documentation
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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/digital-signature-contact-form-7-addon/admin/views/esig-core-about.php
- > /wp-content/plugins/digital-signature-contact-form-7-addon/admin/assets/js/index.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/digital-signature-contact-form-7-addon/admin/about/autoload.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/digital-signature-contact-form-7-addon/admin/views/esig-cf7-view.php:186
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/digital-signature-contact-form-7-addon/admin/views/alert-almost-done.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/digital-signature-contact-form-7-addon/admin/rating-widget/views/esig-ratting-widget-view.php:1
- > PHP Fatal error
Uncaught Error: Class 'ESIG_CF7_SETTING' not found in wp-content/plugins/digital-signature-contact-form-7-addon/admin/esig-cf7-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/digital-signature-contact-form-7-addon/admin/views/core-alert.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/digital-signature-contact-form-7-addon/admin/about/views/esign-iframe.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/digital-signature-contact-form-7-addon/cf7-signature-addon.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/digital-signature-contact-form-7-addon/admin/about/views/cf7-esign-about-steps.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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:
- Tags: Please delete some tags, you are using 29 tag instead of maximum 10
digital-signature-contact-form-7-addon/cf7-signature-addon.php 85% from 13 tests
"Contact Forms 7 Digital Signature Add-On" version 1.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- 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
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("digital-signature-contact-form-7-addon.php" instead of "cf7-signature-addon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,085 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 868 | 320 | 2,232 |
CSS | 5 | 117 | 33 | 1,401 |
JavaScript | 6 | 102 | 13 | 256 |
SVG | 11 | 1 | 1 | 196 |
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 code | 0.35 |
Average class complexity | 24.57 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 28 | 37.33% |
▷ Public methods | 68 | 90.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.33% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 11 | |
▷ Global constants | 6 | 54.55% |
▷ Class constants | 5 | 45.45% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
35 PNG files occupy 3.13MB with 1.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/rating-widget/views/esign-monster.png | 12.46KB | 3.78KB | ▼ 69.70% |
admin/about/assets/images/gf-completed-steps.png | 23.42KB | 23.45KB | 0.00% |
admin/about/assets/images/cf7-add-on-step-3.png | 80.37KB | 25.57KB | ▼ 68.18% |
admin/about/assets/images/cf7-add-on-step-7.png | 450.84KB | 166.18KB | ▼ 63.14% |
admin/assets/images/cf7-add-on-step-3.png | 21.33KB | 11.27KB | ▼ 47.15% |