Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.75ms] Passed 4 tests
Analyzing server-side resources used by SMTP for Contact From 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.74 ▼3.00 |
Dashboard /wp-admin | 3.41 ▲0.07 | 50.19 ▼16.16 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.87 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 99.82 ▼16.94 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.12 ▲4.32 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
cf7-smtp-options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for SMTP for Contact From 7
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▲0.00 | 2.24 ▲0.55 | 42.97 ▼2.70 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▼0.06 | 93.44 ▼4.89 | 42.82 ▲4.27 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.97 ▼0.05 | 39.76 ▼1.24 | 37.17 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,532 ▼22 | 17.72 ▼5.60 | 616.89 ▼5.55 | 53.51 ▼9.91 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.28 ▲0.05 | 99.93 ▼0.28 | 44.64 ▲1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cf7-smtp/cf7-smtp.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/Settings_Page.php:19
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Core\\Mailer' not found in wp-content/plugins/cf7-smtp/backend/views/send_mail.php:19
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/Enqueue.php:19
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/ActDeact.php:20
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/core/Mailer.php:24
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/core/Cron.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-smtp/backend/views/admin.php:19
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/rest/Rest_SendMail.php:26
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/Notices.php:19
- > PHP Fatal error
Uncaught Error: Class 'cf7_smtp\\Engine\\Base' not found in wp-content/plugins/cf7-smtp/backend/ImpExp.php:19
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #1 in cf7-smtp/assets to your readme.txt
cf7-smtp/cf7-smtp.php 92% from 13 tests
The primary PHP file in "SMTP for Contact From 7" version 0.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Good job! No executable or dangerous file extensions detected2,706 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 632 | 1,429 | 2,444 |
HTML | 3 | 26 | 167 | 131 |
JSON | 2 | 0 | 0 | 129 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 20.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 30 | 21.43% |
▷ Public methods | 121 | 86.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 13.57% |
Functions | 21 | |
▷ Named functions | 7 | 33.33% |
▷ Anonymous functions | 14 | 66.67% |
Constants | 18 | |
▷ Global constants | 6 | 33.33% |
▷ Class constants | 12 | 66.67% |
▷ Public constants | 11 | 91.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin