Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.59MB] [CPU: ▼16.00ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form & SMTP Plugin for WordPress by PirateForms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.18 ▲1.96 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.18 ▼2.66 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 56.17 ▲11.42 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.62 | 36.66 ▼61.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 36.08 ▼1.65 |
Migration /wp-admin/admin.php?page=pirateforms-admin-migration | 3.33 | 33.26 |
Settings /wp-admin/admin.php?page=pirateforms-admin | 3.58 | 40.61 |
All Entries /wp-admin/edit.php?post_type=pf_contact | 3.36 | 35.95 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_pirate_forms_contact_widget |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
pirate_forms_settings_array |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Contact Form & SMTP Plugin for WordPress by PirateForms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,040 ▲294 | 13.58 ▼0.80 | 6.32 ▲4.63 | 40.08 ▼5.63 |
Dashboard /wp-admin | 2,325 ▲136 | 5.89 ▲1.02 | 98.91 ▼22.13 | 79.53 ▲31.38 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.06 ▲0.04 | 37.15 ▲1.23 | 38.09 ▲7.11 |
Add New Post /wp-admin/post-new.php | 6,485 ▲4,971 | 23.32 ▲5.65 | 990.62 ▲318.91 | 43.12 ▼10.79 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.28 ▲0.07 | 102.07 ▲2.05 | 46.68 ▲1.71 |
Migration /wp-admin/admin.php?page=pirateforms-admin-migration | 876 | 2.07 | 27.78 | 38.21 |
Settings /wp-admin/admin.php?page=pirateforms-admin | 2,303 | 7.78 | 182.64 | 58.86 |
All Entries /wp-admin/edit.php?post_type=pf_contact | 1,076 | 2.12 | 43.02 | 29.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_pirate_forms_contact_widget
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 39× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: wrap_classes in wp-content/plugins/pirate-forms/public/partials/fields/number.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pirate-forms/admin/partials/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Autoload\\AutoloadGenerator' not found in wp-content/plugins/pirate-forms/vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php:30
- > PHP Notice
Undefined variable: wrap_classes in wp-content/plugins/pirate-forms/public/partials/fields/checkbox.php on line 14
- > PHP Notice
Undefined variable: wrap_classes in wp-content/plugins/pirate-forms/public/partials/fields/email.php on line 14
- > PHP Notice
Undefined variable: name in wp-content/plugins/pirate-forms/public/partials/fields/text.php on line 18
- > PHP Notice
Undefined variable: name in wp-content/plugins/pirate-forms/public/partials/fields/tel.php on line 18
- > PHP Notice
Undefined variable: name in wp-content/plugins/pirate-forms/public/partials/fields/number.php on line 18
- > PHP Notice
Undefined variable: wrap_classes in wp-content/plugins/pirate-forms/public/partials/fields/text.php on line 14
- > PHP Notice
Undefined variable: name in wp-content/plugins/pirate-forms/public/partials/fields/textarea.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Screenshot 1. How to use contact form in posts/pages), #2 (Screenshot 2. How to customize contact form labels), #3 (Screenshot 3. How to use reCaptcha), #4 (Screenshot 4. Enabling SMTP)
pirate-forms/pirate-forms.php Passed 13 tests
The entry point to "Contact Form & SMTP Plugin for WordPress by PirateForms" version 2.5.2 is a PHP file that has certain tags in its header comment area
67 characters long description:
Easily creates a nice looking, simple contact form on your WP site.
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
Everything looks great! No dangerous files found in this plugin10,599 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 1,308 | 2,808 | 7,835 |
JavaScript | 7 | 108 | 109 | 746 |
PO File | 3 | 318 | 423 | 683 |
CSS | 5 | 103 | 3 | 609 |
Markdown | 4 | 303 | 0 | 527 |
JSON | 3 | 0 | 0 | 125 |
XML | 2 | 5 | 0 | 45 |
YAML | 1 | 2 | 1 | 29 |
PHP code Passed 2 tests
An short overview of 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.40 |
Average class complexity | 27.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 236.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 2 | 5.71% |
▷ Concrete classes | 33 | 94.29% |
▷ Final classes | 2 | 6.06% |
Methods | 360 | |
▷ Static methods | 29 | 8.06% |
▷ Public methods | 282 | 78.33% |
▷ Protected methods | 13 | 3.61% |
▷ Private methods | 65 | 18.06% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 24 | |
▷ Global constants | 11 | 45.83% |
▷ Class constants | 13 | 54.17% |
▷ Public constants | 13 | 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
7 PNG files occupy 0.24MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/wpforms-builder.png | 89.37KB | 31.40KB | ▼ 64.86% |
screenshot-4.png | 23.06KB | 9.18KB | ▼ 60.19% |
screenshot-1.png | 38.46KB | 14.83KB | ▼ 61.43% |
(invalid) admin/css/icon-128x128.png | 7.25KB | 0.00KB | ▼ 100.00% |
admin/img/wpforms-migration.png | 32.74KB | 11.68KB | ▼ 64.31% |