Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.34ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Digital Signature
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 45.94 ▲2.03 |
Dashboard /wp-admin | 3.48 ▲0.13 | 54.65 ▼8.71 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.12 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 87.64 ▼6.98 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 40.04 ▲5.07 |
E-signature /wp-admin/admin.php?page=esign | 3.47 | 34.09 |
About /wp-admin/admin.php?page=esign-woocommerce-about | 3.47 | 34.37 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
WP_ESignature__woocommerce_documentation |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WooCommerce Digital Signature: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.35 ▼0.24 | 1.84 ▲0.24 | 44.46 ▼1.60 |
Dashboard /wp-admin | 2,209 ▲39 | 5.49 ▼0.19 | 86.85 ▼12.27 | 74.69 ▲33.19 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.95 ▼0.06 | 37.60 ▼2.15 | 34.20 ▼6.68 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.08 ▼0.55 | 655.30 ▲8.59 | 53.35 ▼4.33 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.20 ▲0.03 | 98.94 ▼2.61 | 72.58 ▲26.21 |
E-signature /wp-admin/admin.php?page=esign | 1,718 | 2.74 | 69.07 | 72.47 |
About /wp-admin/admin.php?page=esign-woocommerce-about | 1,762 | 2.88 | 78.35 | 158.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- WP_ESignature__woocommerce_documentation
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woocommerce-digital-signature/admin/views/esig-core-about.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/woocommerce-digital-signature/admin/rating-widget/views/esig-ratting-widget-view.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-digital-signature/admin/rating-widget/views/esig-ratting-widget-view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woocommerce-digital-signature/admin/about/views/woocommerce-esign-about-steps.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woocommerce-digital-signature/admin/about/views/esign-iframe.php:4
- > PHP Notice
Undefined variable: data in wp-content/plugins/woocommerce-digital-signature/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/woocommerce-digital-signature/admin/rating-widget/views/esig-ratting-widget-view.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-digital-signature/includes/esigWooFilters.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-digital-signature/admin/rating-widget/views/esig-ratting-widget-view.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woocommerce-digital-signature/admin/about/autoload.php:17
- > PHP Notice
Undefined variable: data in wp-content/plugins/woocommerce-digital-signature/admin/rating-widget/views/esig-ratting-widget-view.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: e-signatures, sign documents online, sign document, woocommerce, terms of service and privacy policy...
woocommerce-digital-signature/woocommerce-digital-signature.php 77% from 13 tests
Analyzing the main PHP file in "WooCommerce Digital Signature" version 1.7.8
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("5.1" instead of "3.7")
- Description: The description should be shorter than 140 characters (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,604 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,013 | 507 | 2,660 |
CSS | 5 | 125 | 33 | 1,391 |
SVG | 11 | 1 | 1 | 196 |
PO File | 2 | 48 | 53 | 183 |
JavaScript | 3 | 70 | 27 | 174 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 49 | 39.84% |
▷ Public methods | 110 | 89.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 10.57% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.36MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/about/assets/images/gf-count-on-us.png | 32.44KB | 32.96KB | 0.00% |
admin/about/assets/images/gf-advisor.png | 48.61KB | 48.68KB | 0.00% |
admin/rating-widget/views/esign-monster.png | 12.46KB | 3.78KB | ▼ 69.70% |
admin/about/assets/images/woo-add-on-step-4.png | 47.89KB | 28.87KB | ▼ 39.72% |
admin/about/assets/images/gf-completed-steps.png | 23.42KB | 23.45KB | 0.00% |