Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.31MB] [CPU: ▲2.16ms] Passed 4 tests
Server-side resources used by Contact Form builder with drag & drop for WordPress - Kali Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.14 | 44.97 ▲7.29 |
Dashboard /wp-admin | 4.66 ▲1.32 | 59.66 ▼0.71 |
Posts /wp-admin/edit.php | 4.77 ▲1.42 | 55.82 ▲9.11 |
Add New Post /wp-admin/post-new.php | 7.59 ▲1.71 | 93.59 ▼7.06 |
Media Library /wp-admin/upload.php | 4.58 ▲1.35 | 52.93 ▲17.78 |
Form Entries /wp-admin/edit.php?post_type=kaliforms_submitted | 4.65 | 47.40 |
SMTP Settings /wp-admin/edit.php?post_type=kaliforms_forms&page=kaliforms-email-settings | 4.57 | 44.39 |
Add New /wp-admin/post-new.php?post_type=kaliforms_forms | 5.46 | 64.11 |
Form entries /wp-admin/edit.php?post_type=kaliforms_forms&page=kaliforms-form-entries | 4.61 | 46.67 |
All forms /wp-admin/edit.php?post_type=kaliforms_forms | 4.74 | 48.15 |
Extensions /wp-admin/edit.php?post_type=kaliforms_forms&page=kaliforms-extensions | 4.55 | 42.84 |
Server storage [IO: ▲9.00MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 511 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-comments |
kaliforms_smtp_disable_autotls |
kaliforms_notices |
widget_theysaidso_widget |
widget_recent-posts |
kaliforms_smtp_provider |
db_upgraded |
kaliforms_settings_updated_for_220 |
kaliforms_smtp_auth |
kaliforms_rating_timestamp |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form builder with drag & drop for WordPress - Kali Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲315 | 13.48 ▼0.87 | 8.04 ▲6.41 | 37.29 ▼2.29 |
Dashboard /wp-admin | 2,343 ▲163 | 5.66 ▲0.06 | 83.49 ▼2.78 | 77.44 ▲34.56 |
Posts /wp-admin/edit.php | 2,168 ▲71 | 2.07 ▲0.05 | 35.15 ▲0.33 | 35.56 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,730 ▲204 | 22.06 ▼1.47 | 718.41 ▲80.76 | 52.55 ▲0.24 |
Media Library /wp-admin/upload.php | 1,470 ▲67 | 4.21 ▲0.07 | 93.10 ▼8.79 | 82.98 ▲38.64 |
Form Entries /wp-admin/edit.php?post_type=kaliforms_submitted | 1,170 | 2.23 | 33.52 | 29.38 |
SMTP Settings /wp-admin/edit.php?post_type=kaliforms_forms&page=kaliforms-email-settings | 1,329 | 8.83 | 245.08 | 91.57 |
Add New /wp-admin/post-new.php?post_type=kaliforms_forms | 2,580 | 11.61 | 319.86 | 110.98 |
Form entries /wp-admin/edit.php?post_type=kaliforms_forms&page=kaliforms-form-entries | 1,079 | 4.58 | 147.63 | 59.88 |
All forms /wp-admin/edit.php?post_type=kaliforms_forms | 1,766 | 2.18 | 38.01 | 36.04 |
Extensions /wp-admin/edit.php?post_type=kaliforms_forms&page=kaliforms-extensions | 1,402 | 2.11 | 29.19 | 29.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 14 options in the database
- kaliforms_settings_updated_for_220
- kaliforms_rating_timestamp
- widget_theysaidso_widget
- can_compress_scripts
- kaliforms_smtp_disable_autotls
- kaliforms_smtp_auth
- db_upgraded
- kaliforms_email_log
- kaliforms_notices
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kali-forms/Inc/Utils/EmailUtilities/class-mailer.php on line 6
- > PHP Warning
require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/kali-forms/Inc/Utils/EmailUtilities/class-mailer.php on line 6
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/kali-forms/Inc/Utils/EmailUtilities/class-mailer.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/kali-forms/Inc/Utils/EmailUtilities/class-mailer.php on line 6
- > PHP Fatal error
Trait 'KaliForms\\Inc\\Utils\\MetaHelper' not found in wp-content/plugins/kali-forms/Inc/Utils/class-payments-action-helper.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'KaliForms\\Inc\\Utils\\EmailProviders\\Sender' not found in wp-content/plugins/kali-forms/Inc/Utils/EmailProviders/class-smtp.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPMailer\\PHPMailer\\PHPMailer' not found in wp-content/plugins/kali-forms/Inc/Utils/EmailUtilities/class-mailer-v6.php:6
- > PHP Fatal error
Uncaught Error: Class 'KaliForms\\Inc\\Utils\\EmailProviders\\Sender' not found in wp-content/plugins/kali-forms/Inc/Utils/EmailProviders/class-default-mailer.php:7
- > PHP Fatal error
Uncaught Error: Class 'KaliForms\\Inc\\Utils\\EmailProviders\\Sender' not found in wp-content/plugins/kali-forms/Inc/Utils/EmailProviders/class-wp-default.php:7
- > PHP Fatal error
Uncaught Error: Class 'KaliForms\\Inc\\Utils\\EmailProviders\\Sender' not found in wp-content/plugins/kali-forms/Inc/Utils/EmailProviders/class-postmark.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
kali-forms/kali-forms.php 92% from 13 tests
The main PHP file in "Contact Form builder with drag & drop for WordPress - Kali Forms" ver. 2.3.29 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected46,194 lines of code in 461 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSX | 136 | 783 | 521 | 15,076 |
PHP | 131 | 1,754 | 5,511 | 12,880 |
JavaScript | 133 | 1,122 | 10,013 | 12,296 |
CSS | 12 | 241 | 154 | 3,010 |
Sass | 19 | 444 | 19 | 2,463 |
SVG | 28 | 0 | 3 | 383 |
Bourne Shell | 1 | 32 | 37 | 83 |
JSON | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 7 | |
Classes | 122 | |
▷ Abstract classes | 4 | 3.28% |
▷ Concrete classes | 118 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 682 | |
▷ Static methods | 38 | 5.57% |
▷ Public methods | 575 | 84.31% |
▷ Protected methods | 43 | 6.30% |
▷ Private methods | 64 | 9.38% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
31 PNG files occupy 0.48MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/styles/rounded-borders-bg.png | 11.10KB | 3.30KB | ▼ 70.22% |
public/assets/img/styles/border-bottom.png | 8.86KB | 2.28KB | ▼ 74.21% |
public/assets/img/gmail.png | 23.79KB | 3.90KB | ▼ 83.62% |
public/assets/img/mailgun.png | 41.45KB | 14.53KB | ▼ 64.94% |
public/assets/img/styles/input-label-merge.png | 7.63KB | 2.06KB | ▼ 73.07% |