Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5643
File class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
Server metrics [RAM: ▼1.88MB] [CPU: ▼55.51ms] Passed 4 tests
Server-side resources used by Form to mail
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.65 ▼35.72 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.90 ▼44.50 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 8.06 ▼38.23 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.12 ▼103.58 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.68 ▼26.49 |
Настройка /wp-admin/edit.php?post_type=ftm_form&page=ftm_settings | 2.12 | 6.34 |
Новая форма /wp-admin/post-new.php?post_type=ftm_form | 2.12 | 6.32 |
Формы /wp-admin/edit.php?post_type=ftm_form | 2.12 | 7.22 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Form to mail
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.28 ▼1.47 | 4.74 ▲3.09 | 39.67 ▼5.90 |
Dashboard /wp-admin | 2,237 ▲52 | 4.90 ▼0.97 | 99.54 ▼10.96 | 39.06 ▼2.99 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.06 ▲0.02 | 40.37 ▲0.75 | 38.94 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,545 ▲23 | 23.00 ▼0.38 | 638.18 ▼47.75 | 69.68 ▲9.77 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.25 ▲0.04 | 103.12 ▼0.57 | 44.93 ▼1.20 |
Настройка /wp-admin/edit.php?post_type=ftm_form&page=ftm_settings | 890 | 2.07 | 23.77 | 28.90 |
Новая форма /wp-admin/post-new.php?post_type=ftm_form | 2,198 | 6.53 | 131.58 | 62.71 |
Формы /wp-admin/edit.php?post_type=ftm_form | 1,084 | 2.02 | 30.07 | 28.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5643
File class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ftm_form
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5643
File class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ftm_form
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5643
File class-smtp.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
- > GET request to /wp-admin/edit.php?post_type=ftm_form&page=ftm_settings
- > Notice in wp-content/plugins/form-to-mail/admin/settings.php+7
Undefined index: ftm_settings_tab
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ftm_form
- > Notice in wp-content/plugins/form-to-mail/admin/contentbox.php+54
Undefined index: label
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ftm_form
- > Notice in wp-content/plugins/form-to-mail/admin/contentbox.php+57
Undefined index: name
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ftm_form
- > Notice in wp-content/plugins/form-to-mail/admin/contentbox.php+64
Undefined index: type
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ftm_form
- > Notice in wp-content/plugins/form-to-mail/admin/contentbox.php+70
Undefined index: required
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
The following issues need your attention
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-to-mail/posttype.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-to-mail/form/js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-to-mail/admin/settings-general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-to-mail/form/submitform.php:2
- > PHP Warning
require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/form-to-mail/form/ftmSubmit.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-to-mail/posttype.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/form-to-mail/form/ftmSubmit.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-to-mail/admin/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-to-mail/admin/settings-callback.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/form-to-mail/form/ftmSubmit.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: form, feedback, contact, contact form, email...
form-to-mail/form-to-mail.php Passed 13 tests
The primary PHP file in "Form to mail" version 2.0.0 is used by WordPress to initiate all plugin functionality
43 characters long description:
Отправка формы на почту
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected798 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 59 | 79 | 798 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 58.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 41.18% |
Functions | 28 | |
▷ Named functions | 28 | 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 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
No PNG images were found in this plugin