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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.34ms] Passed 4 tests
Analyzing server-side resources used by Easy Digital Downloads Digital Signature
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.78 ▲3.64 |
Dashboard /wp-admin | 3.33 ▲0.03 | 60.79 ▲7.89 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.87 ▼6.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.81 ▼12.41 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 42.40 ▲5.47 |
About /wp-admin/admin.php?page=esign-edd-about | 3.35 | 33.83 |
E-Signature /wp-admin/edit.php?post_type=download&page=esign-edd-about | 3.22 | 34.35 |
Server storage [IO: ▲1.41MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 84 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
Easy Digital Downloads Digital Signature: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.46 ▲0.26 | 1.91 ▲0.20 | 44.22 ▲0.05 |
Dashboard /wp-admin | 2,217 ▲39 | 5.56 ▼0.09 | 96.15 ▼10.18 | 76.70 ▲34.85 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.00 ▲0.02 | 34.88 ▼6.79 | 34.11 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,713 ▲185 | 22.32 ▼0.78 | 766.26 ▲93.98 | 58.05 ▼12.24 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.13 ▼0.04 | 99.75 ▲2.41 | 87.69 ▲43.06 |
About /wp-admin/admin.php?page=esign-edd-about | 1,732 | 2.89 | 79.57 | 214.30 |
E-Signature /wp-admin/edit.php?post_type=download&page=esign-edd-about | 1,752 | 2.88 | 68.13 | 108.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/edd-digital-signature-add-on/views/esig-core-about.php
- > /wp-content/plugins/edd-digital-signature-add-on/views/esig-not-core-view.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/edd-digital-signature-add-on/rating-widget/views/esig-ratting-widget-view.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/edd-digital-signature-add-on/about/autoload.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/edd-digital-signature-add-on/about/views/esign-iframe.php:4
- > PHP Fatal error
Uncaught Error: Class 'Esig_Edd_Settings' not found in wp-content/plugins/edd-digital-signature-add-on/includes/esig-edd-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-digital-signature-add-on/views/core-msg.php:4
- > PHP Notice
Undefined variable: data in wp-content/plugins/edd-digital-signature-add-on/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/edd-digital-signature-add-on/rating-widget/views/esig-ratting-widget-view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/edd-digital-signature-add-on/autoload.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/edd-digital-signature-add-on/views/edd-esig-product-view.php:6
- > PHP Notice
Undefined variable: data in wp-content/plugins/edd-digital-signature-add-on/rating-widget/views/esig-ratting-widget-view.php on line 1
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #11 (**Checkout Completion:**Once customers have signed the necessary agreement, they’ll be sent to the final Easy Digital Downloads screen to finalize the transaction.), #12 (**View Signed Document Email:**Customers will be sent an email that includes the link to the document (and PDF if you opt for this method).), #13 (**Save as PDF:**Customers can either print or download their signed document from the website. To do this, they need to click “View Signed Document” from the link in the email they attained upon signing the document. With the Attach as PDF add-on install you could also automatically include thee signed contract as a PDF attachment in this email.)
- Tags: There are too many tags (28 tag instead of maximum 10)
edd-digital-signature-add-on/edd-digital-signature.php 77% from 13 tests
The main file in "Easy Digital Downloads Digital Signature" v. 1.7.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 236 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("edd-digital-signature-add-on.php" instead of "edd-digital-signature.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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,194 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 707 | 266 | 2,232 |
CSS | 5 | 116 | 33 | 1,395 |
PO File | 1 | 61 | 61 | 228 |
SVG | 11 | 1 | 1 | 196 |
JavaScript | 3 | 53 | 9 | 143 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.22 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 68 | 72.34% |
▷ Public methods | 91 | 96.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.19% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.60MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
about/assets/images/gf-magic-hat.png | 27.96KB | 6.81KB | ▼ 75.66% |
about/assets/images/edd-add-on-step-1.png | 23.28KB | 7.37KB | ▼ 68.33% |
about/assets/images/gf-advisor.png | 48.61KB | 48.68KB | 0.00% |
about/assets/images/edd-add-on-step-3.png | 80.37KB | 25.57KB | ▼ 68.18% |
about/assets/images/monster-support.png | 24.68KB | 24.70KB | 0.00% |