Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.17ms] Passed 4 tests
Server-side resources used by Ninja Forms Signature Contract Add-On
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.52 ▼1.31 |
Dashboard /wp-admin | 3.44 ▲0.10 | 48.23 ▼12.38 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.96 ▲2.76 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.63 ▼9.76 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.16 ▲8.12 |
E-signature /wp-admin/admin.php?page=esign-ninja-about | 3.41 | 30.42 |
About /wp-admin/admin.php?page=esign-ninjaforms-about | 3.28 | 32.42 |
Server storage [IO: ▲2.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
WP_ESignature__Ninja_Forms_Digital_Signature_documentation |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ninja Forms Signature Contract Add-On
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.20 ▼1.15 | 1.88 ▲0.25 | 43.72 ▼1.13 |
Dashboard /wp-admin | 2,220 ▲40 | 5.79 ▲0.18 | 98.21 ▼2.23 | 94.06 ▲48.43 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.30 ▲0.32 | 33.52 ▼5.11 | 35.01 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,718 ▲183 | 22.57 ▲4.29 | 733.95 ▲97.05 | 37.43 ▼33.41 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.34 ▲0.12 | 100.14 ▲5.94 | 67.41 ▲27.49 |
E-signature /wp-admin/admin.php?page=esign-ninja-about | 1,866 | 2.88 | 74.78 | 215.74 |
About /wp-admin/admin.php?page=esign-ninjaforms-about | 1,887 | 2.89 | 66.71 | 118.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- WP_ESignature__Ninja_Forms_Digital_Signature_documentation
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ninja-signature-contract-forms-add-on/admin/assets/js/index.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ESIG_NF_SETTING' not found in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/esig-nfds-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/rating-widget/views/esig-ratting-widget-view.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/views/esig-ninja-action-view.php:3
- > PHP Notice
Undefined variable: data in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/rating-widget/views/esig-ratting-widget-view.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/rating-widget/views/esig-ratting-widget-view.php on line 1
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/ninja-signature-contract-forms-add-on/admin/admin/about/includes/esig-activations-states.php' (include_path='.:/usr/share/php') in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/about/views/alert-modal.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/about/views/esign-iframe.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ninja-signature-contract-forms-add-on/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/ninja-signature-contract-forms-add-on/admin/about/views/autoload.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ninja-signature-contract-forms-add-on/admin/about/autoload.php:17
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
ninja-signature-contract-forms-add-on/ninja-forms-digital-signature.php 77% from 13 tests
"Ninja Forms Signature Contract Add-On" version 3.1.7.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ninja-signature-contract-forms-add-on.php" instead of "ninja-forms-digital-signature.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 258 characters long)
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin5,410 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,228 | 440 | 3,511 |
CSS | 6 | 119 | 33 | 1,456 |
JavaScript | 5 | 87 | 31 | 223 |
SVG | 11 | 1 | 1 | 196 |
PO File | 1 | 2 | 2 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 36.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 113 | |
▷ Static methods | 58 | 51.33% |
▷ Public methods | 105 | 92.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 7.08% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 1.55MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/about/assets/images/companies/HBO_Latino_Logo.png | 3.19KB | 1.90KB | ▼ 40.38% |
admin/about/assets/images/nf-add-on-step-4.png | 47.89KB | 28.87KB | ▼ 39.72% |
admin/about/assets/images/gf-preview-webpage.png | 11.63KB | 11.62KB | 0.10% |
admin/about/assets/images/gf-team-contracts.png | 25.94KB | 26.05KB | 0.00% |
admin/rating-widget/views/esign-monster.png | 12.46KB | 3.78KB | ▼ 69.70% |