Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/contact-ajax-form/form-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; IWAJAX_Contact_Widget has a deprecated constructor
Server metrics [RAM: ▼1.55MB] [CPU: ▼52.96ms] Passed 4 tests
An overview of server-side resources used by Contact AJAX forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.01 | 8.49 ▼30.02 |
Dashboard /wp-admin | 2.47 ▼0.87 | 9.86 ▼58.10 |
Posts /wp-admin/edit.php | 2.47 ▼0.88 | 9.56 ▼33.49 |
Add New Post /wp-admin/post-new.php | 2.47 ▼3.41 | 10.62 ▼90.22 |
Media Library /wp-admin/upload.php | 2.47 ▼0.76 | 12.23 ▼26.01 |
All Forms /wp-admin/edit.php?post_type=iwacontactform | 2.47 | 9.76 |
Contact AJAX Form /wp-admin/options-general.php?page=ajaxcontact | 2.47 | 9.48 |
Add New Form /wp-admin/post-new.php?post_type=iwacontactform | 2.47 | 9.89 |
Submissions /wp-admin/edit.php?post_type=iwacontactsubmission | 2.47 | 10.26 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 9 new options
New WordPress options |
---|
ajaxcontactvalues |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-comments |
widget_iwajax_contact_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Contact AJAX forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲137 | 13.59 ▼0.80 | 8.35 ▲6.56 | 43.34 ▼0.38 |
Dashboard /wp-admin | 2,221 ▲43 | 5.72 ▲0.01 | 86.50 ▼17.59 | 71.84 ▲28.20 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.26 ▲0.28 | 38.64 ▲1.06 | 34.06 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,715 ▲189 | 22.15 ▼1.00 | 673.34 ▲84.40 | 51.01 ▼3.83 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.35 ▲0.14 | 104.22 ▲8.34 | 74.16 ▲33.37 |
All Forms /wp-admin/edit.php?post_type=iwacontactform | 1,140 | 2.24 | 32.47 | 29.07 |
Contact AJAX Form /wp-admin/options-general.php?page=ajaxcontact | 733 | 1.65 | 11.09 | 20.97 |
Add New Form /wp-admin/post-new.php?post_type=iwacontactform | 2,151 | 2.88 | 59.79 | 75.36 |
Submissions /wp-admin/edit.php?post_type=iwacontactsubmission | 1,116 | 2.24 | 31.97 | 30.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/contact-ajax-form/form-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; IWAJAX_Contact_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 9 options
- widget_iwajax_contact_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- ajaxcontactvalues
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=iwacontactsubmission
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/contact-ajax-form/form-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; IWAJAX_Contact_Widget has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=iwacontactsubmission
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/contact-ajax-form/form-widget.php+94
Function create_function() is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=iwacontactsubmission
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in IWAJAX_Contact_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=ajaxcontact
- > Error in wp-content/plugins/contact-ajax-form/wpset/wpset.inc.php+409
Uncaught Error: Call to undefined function split() in wp-content/plugins/contact-ajax-form/wpset/wpset.inc.php:409
Stack trace:
#0 wp-content/plugins/contact-ajax-form/wpset/wpset.inc.php(797): IWAJAX_WPSet->_getSettingsHtml()
#1 wp-includes/class-wp-hook.php(310): IWAJAX_WPSet->printPageHtml()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown- 28 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=iwacontactform
- > Notice in wp-content/plugins/contact-ajax-form/form-admin.php+654
Undefined variable: field_type
SRP 50% 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/contact-ajax-form/ajax-contact.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/contact-ajax-form/form-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-ajax-form/form-display.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-ajax-form/form-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-ajax-form/functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'IWAJAX_WPSet' not found in wp-content/plugins/contact-ajax-form/ajax-settings.php:4
- > 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)
No browser errors were detected
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 reduce the number of tags, currently 14 tag instead of maximum 10
contact-ajax-form/ajax-contact.php 92% from 13 tests
"Contact AJAX forms" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("contact-ajax-form.php" instead of "ajax-contact.php")
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 detected2,595 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 555 | 775 | 1,870 |
JavaScript | 3 | 34 | 18 | 325 |
PO File | 1 | 127 | 146 | 277 |
CSS | 3 | 34 | 0 | 123 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 40.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 65.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 34.48% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
30 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wpset/images/tab-bar-bg.png | 0.91KB | 0.08KB | ▼ 91.05% |
images/field-icons/ui-password.png | 0.27KB | 0.23KB | ▼ 14.91% |
images/field-icons/ui-menu.png | 0.35KB | 0.38KB | 0.00% |
images/tiny-success.png | 0.87KB | 0.64KB | ▼ 26.29% |
images/post-type-icon.png | 0.44KB | 0.46KB | 0.00% |