Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.76ms] Passed 4 tests
This is a short check of server-side resources used by Wp Easy Contact Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.59 ▲2.09 |
Dashboard /wp-admin | 3.43 ▲0.13 | 53.43 ▲6.94 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 44.56 ▼5.81 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 84.61 ▼18.15 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 42.04 ▲6.84 |
Wp Easy Contact Form /wp-admin/options-general.php?page=wp-easy-contact-form/wp-easy-contact-form.php | 3.33 | 33.10 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
wecf_contact_mail_message_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Wp Easy Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 13.82 ▼0.53 | 11.93 ▲9.91 | 50.64 ▲12.90 |
Dashboard /wp-admin | 2,207 ▲33 | 5.70 ▲0.17 | 94.49 ▲1.37 | 39.11 ▼5.60 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.66 ▲0.66 | 39.23 ▲2.19 | 34.44 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,691 ▲163 | 23.45 ▲0.45 | 680.02 ▲9.57 | 38.43 ▼18.06 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 5.21 ▲1.07 | 103.05 ▲0.75 | 40.77 ▼6.87 |
Wp Easy Contact Form /wp-admin/options-general.php?page=wp-easy-contact-form/wp-easy-contact-form.php | 1,263 | 2.58 | 34.85 | 35.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- wecf_contact_mail_message_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-contact-form/wp-easy-contact-form.php:518
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: contactbuddy, easy contact form solution, contact form 7, fast secure contact form, contact form
wp-easy-contact-form/wp-easy-contact-form.php Passed 13 tests
The principal PHP file in "Wp Easy Contact Form" v. 1.0 is loaded by WordPress automatically on each request
86 characters long description:
Contact Form Widget - Easy to use and small contact form and also available shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin14,586 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 3,068 | 2,075 | 13,563 |
PHP | 1 | 474 | 30 | 668 |
CSS | 1 | 7 | 2 | 355 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.93MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/contact-icon-outer.png | 3.33KB | 1.53KB | ▼ 54.11% |
assets/wp-easy-contact-form-banner.png | 692.97KB | 279.36KB | ▼ 59.69% |
assets/Frontend View.png | 18.46KB | 4.77KB | ▼ 74.13% |
assets/minus_sign.png | 2.71KB | 1.47KB | ▼ 45.51% |
assets/Admin Settings.png | 232.62KB | 40.30KB | ▼ 82.68% |