Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/my-contact-form/contact.php+79
Undefined variable: attachments
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.42ms] Passed 4 tests
Server-side resources used by Contact form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.21 ▲2.42 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.75 ▼3.37 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.29 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.37 ▼12.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.53 ▼2.63 |
Contact List /wp-admin/admin.php?page=contact-list | 3.18 | 29.50 |
Contact Form /wp-admin/admin.php?page=contact-form | 3.18 | 26.97 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cf_contact |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Contact form: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,195 ▲460 | 14.05 ▼0.68 | 5.27 ▲3.46 | 39.64 ▼9.03 |
Dashboard /wp-admin | 2,316 ▲125 | 4.99 ▼0.83 | 108.51 ▼2.28 | 86.96 ▲40.67 |
Posts /wp-admin/edit.php | 2,211 ▲122 | 2.36 ▲0.36 | 39.58 ▼0.54 | 33.70 ▲0.48 |
Add New Post /wp-admin/post-new.php | 6,292 ▲4,750 | 23.62 ▲5.25 | 872.33 ▲231.57 | 45.76 ▼12.69 |
Media Library /wp-admin/upload.php | 1,508 ▲126 | 4.43 ▲0.19 | 97.63 ▼7.25 | 83.31 ▲40.56 |
Contact List /wp-admin/admin.php?page=contact-list | 921 | 1.96 | 24.37 | 26.00 |
Contact Form /wp-admin/admin.php?page=contact-form | 904 | 1.95 | 27.72 | 23.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=contact-form
- > Notice in wp-content/plugins/my-contact-form/html/form.php+20
Undefined index: id
- > GET request to /wp-admin/admin.php?page=contact-list
- > Notice in wp-content/plugins/my-contact-form/html/contact-list.php+40
Undefined index: act
- > GET request to /wp-admin/admin.php?page=contact-form
- > Notice in wp-content/plugins/my-contact-form/html/form.php+39
Undefined variable: name
- > GET request to /wp-admin/admin.php?page=contact-form
- > Notice in wp-content/plugins/my-contact-form/html/form.php+40
Undefined variable: email
- > GET request to /wp-admin/admin.php?page=contact-form
- > Notice in wp-content/plugins/my-contact-form/html/form.php+41
Undefined variable: mob
- > GET request to /wp-admin/admin.php?page=contact-form
- > Notice in wp-content/plugins/my-contact-form/html/form.php+42
Undefined variable: msg
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/my-contact-form/html/form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: comments, spam
my-contact-form/contact.php 92% from 13 tests
This is the main PHP file of "Contact form" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("my-contact-form.php" instead of "contact.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin311 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 96 | 25 | 267 |
JavaScript | 1 | 17 | 0 | 37 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/contact.png | 0.58KB | 0.30KB | ▼ 48.65% |