Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.13ms] Passed 4 tests
A check of server-side resources used by Contact Form Email
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.35 ▼4.53 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.25 ▼5.95 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.41 ▲4.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.76 ▼1.93 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.87 ▼0.12 |
Contact Form to Email /wp-admin/options-general.php?page=cp_contactformtoemail | 3.49 | 35.51 |
Contact Form to Email /wp-admin/admin.php?page=cp_contactformtoemail | 3.25 | 35.16 |
Upgrade /wp-admin/admin.php?page=cp_contactformtoemail_upgrade | 3.22 | 29.11 |
Help: Documentation /wp-admin/admin.php?page=cp_contactformtoemail_docs | 3.22 | 28.35 |
Help: Free support /wp-admin/admin.php?page=cp_contactformtoemail_fsupport | 3.22 | 32.35 |
Help: Online demo /wp-admin/admin.php?page=cp_contactformtoemail_demo | 3.22 | 29.53 |
Server storage [IO: ▲1.07MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 171 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_cftemail_messages |
wp_cftemail_forms |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
installed_contact-form-to-email |
autoptimize_js_exclude |
can_compress_scripts |
cp_cfte_last_verified |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form Email
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲71 | 14.04 ▼0.09 | 1.62 ▼0.25 | 37.31 ▼4.67 |
Dashboard /wp-admin | 2,241 ▲61 | 5.62 ▼0.02 | 88.63 ▼11.50 | 40.38 ▼3.98 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 1.94 ▼0.06 | 38.90 ▲2.33 | 36.21 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6,242 ▲4,716 | 19.00 ▼4.11 | 937.32 ▲202.63 | 36.62 ▼28.70 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.28 ▲0.11 | 99.11 ▼2.05 | 42.52 ▼0.22 |
Contact Form to Email /wp-admin/options-general.php?page=cp_contactformtoemail | 1,574 | 2.26 | 43.73 | 33.63 |
Contact Form to Email /wp-admin/admin.php?page=cp_contactformtoemail | 1,574 | 2.12 | 41.50 | 32.83 |
Upgrade /wp-admin/admin.php?page=cp_contactformtoemail_upgrade | 2,892 | 4.02 | 75.67 | 120.06 |
Help: Documentation /wp-admin/admin.php?page=cp_contactformtoemail_docs | 4,306 | 3.52 | 80.82 | 105.00 |
Help: Free support /wp-admin/admin.php?page=cp_contactformtoemail_fsupport | 3,553 | 4.84 | 101.41 | 110.51 |
Help: Online demo /wp-admin/admin.php?page=cp_contactformtoemail_demo | 2,114 | 3.93 | 65.60 | 86.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_cftemail_forms
- wp_cftemail_messages
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- installed_contact-form-to-email
- autoptimize_js_exclude
- widget_theysaidso_widget
- widget_recent-posts
- cp_cfte_last_verified
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/contact-form-to-email/cp-public-int.inc.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/contact-form-to-email/cp-admin-int.inc.php:3
- > PHP Notice
Undefined index: cal in wp-content/plugins/contact-form-to-email/cp-admin-int-add-booking.inc.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/contact-form-to-email/cp-admin-int-add-booking.inc.php:3
- > PHP Notice
Undefined index: cal in wp-content/plugins/contact-form-to-email/cp-admin-int-edit-booking.inc.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-to-email/controllers/elementor/cp-elementor-widget.inc.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/contact-form-to-email/cp-publish-wizzard.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/contact-form-to-email/cp-admin-int-message-list.inc.php:3
- > PHP Fatal error
Uncaught Error: Class 'CP_CFTEMAIL_BaseClass' not found in wp-content/plugins/contact-form-to-email/cp-main-class.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/contact-form-to-email/cp-admin-int-list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/contact-form-to-email/cp-admin-int-report.inc.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
contact-form-to-email/form-to-email.php 92% from 13 tests
The main file in "Contact Form Email" v. 1.3.44 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-to-email.php" instead of "form-to-email.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected9,978 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 720 | 200 | 4,086 |
PO File | 58 | 960 | 506 | 2,725 |
JavaScript | 7 | 164 | 139 | 2,430 |
CSS | 4 | 74 | 162 | 737 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 276.00 |
Average method complexity | 7.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 3 | 6.00% |
▷ Private methods | 3 | 6.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 42 | |
▷ Global constants | 42 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/cupertino/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png | 0.10KB | 0.14KB | 0.00% |
css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png | 0.18KB | 0.08KB | ▼ 51.93% |
controllers/help/elementor.png | 46.11KB | 15.20KB | ▼ 67.04% |
css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png | 0.12KB | 0.15KB | 0.00% |