Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼12.71ms] 75% from 4 tests
This is a short check of server-side resources used by Electronic Signature
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,559.04ms on /wp-admin/admin.php?page=ssign_dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 41.24 ▲0.30 |
Dashboard /wp-admin | 3.58 ▲0.23 | 49.24 ▼17.08 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.62 ▼2.04 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 74.06 ▼31.19 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 35.37 ▼0.54 |
Settings /wp-admin/admin.php?page=ss_control_panel | 3.44 | 38.64 |
Signed Log Detail /wp-admin/admin.php?page=ssign_signed_docs_details | 3.44 | 33.04 |
Updates & Tips /wp-admin/admin.php?page=ssign_dashboard | 3.55 | 2,559.04 |
Signed Docs /wp-admin/admin.php?page=ss_signed_docs | 3.44 | 37.88 |
Help & Setup /wp-admin/admin.php?page=ssign_help_setup | 3.44 | 32.26 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 94 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ssing_lead_report |
wp_ssing_log |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
swift_sign_version |
Browser metrics Passed 4 tests
Electronic Signature: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲227 | 13.74 ▼0.61 | 4.98 ▲3.30 | 31.81 ▼13.74 |
Dashboard /wp-admin | 2,276 ▲88 | 5.07 ▼0.79 | 101.14 ▼2.83 | 81.75 ▲46.96 |
Posts /wp-admin/edit.php | 2,180 ▲91 | 2.08 ▲0.06 | 40.64 ▼0.91 | 42.46 ▲5.19 |
Add New Post /wp-admin/post-new.php | 1,743 ▲215 | 21.09 ▲2.73 | 712.57 ▼17.75 | 31.05 ▼22.51 |
Media Library /wp-admin/upload.php | 1,461 ▲70 | 4.32 ▲0.06 | 103.15 ▲1.34 | 95.85 ▲52.19 |
Settings /wp-admin/admin.php?page=ss_control_panel | 919 | 1.83 | 28.71 | 34.53 |
Signed Log Detail /wp-admin/admin.php?page=ssign_signed_docs_details | 880 | 1.81 | 29.54 | 30.67 |
Updates & Tips /wp-admin/admin.php?page=ssign_dashboard | 979 | 2.25 | 31.26 | 46.35 |
Signed Docs /wp-admin/admin.php?page=ss_signed_docs | 906 | 1.79 | 27.59 | 31.54 |
Help & Setup /wp-admin/admin.php?page=ssign_help_setup | 893 | 1.91 | 34.04 | 39.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant SWIFTSIGN_MINIMUM_WP_VERSION - assumed 'SWIFTSIGN_MINIMUM_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/electronic-signatures/admin/swiftsignature-admin.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/electronic-signatures/swiftsignature-thanks.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/electronic-signatures/section/swiftsignature-shortcode.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/electronic-signatures/shortcode-generator/swiftsignature_shortcode_generator.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/electronic-signatures/section/swiftsignature-form-shortcode.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/electronic-signatures/swiftsignature-pagetemplater.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/electronic-signatures/admin/swiftsignature-admin.php:32
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/electronic-signatures/admin/swiftsignature-admin.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/electronic-signatures/swiftsignature.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/electronic-signatures/admin/section/swiftsignature-dashboard.php:179
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=ss_control_panel
- > Network (severe)
wp-content/plugins/electronic-signatures/admin/section/css/sc_rcswitcher.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=ss_control_panel
- > Network (severe)
wp-content/plugins/electronic-signatures/admin/section/js/sc_rcswitcher.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: electronic signature, e-sign, e-signature, waivers
electronic-signatures/swiftsignature.php 77% from 13 tests
This is the main PHP file of "Electronic Signature" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/swiftsign/")
- 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: It is recommended to name the main PHP file as the plugin slug ("electronic-signatures.php" instead of "swiftsignature.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,623 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 143 | 172 | 3,098 |
JavaScript | 12 | 573 | 437 | 2,641 |
PHP | 14 | 161 | 171 | 1,081 |
PO File | 9 | 324 | 338 | 803 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
32 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
images/close.png | 1.09KB | 1.71KB | 0.00% |
css/images/checkbox.png | 0.50KB | 0.31KB | ▼ 38.57% |
admin/images/ss-help-1.png | 22.89KB | 9.90KB | ▼ 56.75% |
shortcode-generator/js/eSignature.png | 0.65KB | 0.46KB | ▼ 28.72% |