Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Error in wp-content/plugins/dd-contact-form/inc/functions.php+408
Uncaught Error: Call to undefined function mysql_result() in wp-content/plugins/dd-contact-form/inc/functions.php:408
Stack trace:
#0 wp-includes/class-wp-hook.php(310): dd_contact_form_activation()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.75ms] Passed 4 tests
Server-side resources used by DD Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.12 ▼2.96 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.19 ▼8.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.51 ▲1.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.04 ▼11.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.03 ▲0.20 |
Server storage [IO: ▲0.45MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_contact |
wp_contact_methods |
wp_contact_info |
wp_enquiries |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by DD Contact Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.18 ▼1.18 | 1.73 ▼0.05 | 42.83 ▲3.52 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.05 | 108.32 ▲0.85 | 36.66 ▼5.17 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.02 ▲0.03 | 36.30 ▼4.35 | 35.21 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.32 ▲0.21 | 666.23 ▲47.93 | 59.36 ▼2.14 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.28 ▲0.06 | 94.34 ▼2.41 | 39.84 ▼1.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-includes/option.php+2520
Trying to access array offset on value of type null
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/dd-contact-form/inc/ddManagerPage.php:26
- > PHP Notice
Undefined index: ddcf_session_initialised in wp-content/plugins/dd-contact-form/inc/ddContactSession.php on line 83
- > PHP Fatal error
Uncaught Error: Call to undefined function check_ajax_referer() in wp-content/plugins/dd-contact-form/inc/ddContactSession.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/dd-contact-form/inc/ddOptionsPage.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function check_ajax_referer() in wp-content/plugins/dd-contact-form/inc/ddManagerSession.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function is_singular() in wp-content/plugins/dd-contact-form/inc/ddContactPage.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dd-contact-form/inc/functions.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dd-contact-form/inc/functions.php:44
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: contact form, form, contacts management, contact, davedub
dd-contact-form/ddContactForm.php 85% from 13 tests
The primary PHP file in "DD Contact Form" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 768 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dd-contact-form.php" instead of "ddContactForm.php")
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
There were no executable files found in this plugin5,344 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 526 | 505 | 2,932 |
PHP | 9 | 319 | 366 | 1,979 |
CSS | 5 | 78 | 101 | 433 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 27 | |
▷ Named functions | 27 | 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
28 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-bg_inset-soft_0_6EBBE4_1x100.png | 0.20KB | 0.08KB | ▼ 58.62% |
css/images/ui-bg_flat_0_333_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |
css/images/ui-bg_inset-soft_15_121212_1x100.png | 0.27KB | 0.17KB | ▼ 35.74% |
css/images/ui-icons_f1f1f1_256x240.png | 6.76KB | 4.17KB | ▼ 38.20% |