Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- 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.59MB] [CPU: ▼52.04ms] Passed 4 tests
This is a short check of server-side resources used by SimpleMailer Contact Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.06 | 6.37 ▼33.52 |
Dashboard /wp-admin | 2.42 ▼0.88 | 9.65 ▼41.55 |
Posts /wp-admin/edit.php | 2.42 ▼0.94 | 6.52 ▼41.77 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 8.01 ▼91.31 |
Media Library /wp-admin/upload.php | 2.42 ▼0.81 | 7.85 ▼26.38 |
SimpleMailer /wp-admin/options-general.php?page=sm | 2.42 | 6.54 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_simplemailer |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_simplemailerwidget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SimpleMailer Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 14.01 ▼0.36 | 15.16 ▲13.59 | 43.98 ▲3.67 |
Dashboard /wp-admin | 2,208 ▲20 | 4.85 ▼0.03 | 98.49 ▼3.74 | 38.76 ▼1.48 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▼0.00 | 35.92 ▼6.38 | 31.24 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 21.82 ▲3.71 | 669.48 ▲58.83 | 61.22 ▼3.81 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.23 ▼0.19 | 104.28 ▲3.48 | 45.00 ▲1.84 |
SimpleMailer /wp-admin/options-general.php?page=sm | 1,220 | 2.03 | 25.23 | 34.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > 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 does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_simplemailerwidget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=sm
- > 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.
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simplemailer/custom.config.php
- > /wp-content/plugins/simplemailer/simplemailer.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include(ABSPATHwp-includes/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/simplemailer/SimpleMailerMailer.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PHPMailer' not found in wp-content/plugins/simplemailer/SimpleMailerMailer.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPMailer' not found in wp-content/plugins/simplemailer/SimpleMailerMailer.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplemailer/SimpleMailerMailer.php on line 2
- > PHP Warning
include(ABSPATHwp-includes/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/simplemailer/SimpleMailerMailer.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplemailer/SimpleMailerMailer.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simplemailer/SimpleMailerWidget.php:3
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/class-phpmailer.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simplemailer/SimpleMailerMailer.php on line 2
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/class-phpmailer.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simplemailer/SimpleMailerMailer.php on line 2
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: A description for screenshot #2 is missing in simplemailer/assets to your readme.txt
simplemailer/simplemailer.php Passed 13 tests
The main PHP file in "SimpleMailer Contact Form" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
SimpleMailer - Contact form plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,610 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 391 | 942 | 2,136 |
PO File | 1 | 109 | 119 | 271 |
Sass | 1 | 16 | 0 | 92 |
CSS | 2 | 13 | 0 | 86 |
SVG | 2 | 0 | 2 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 32.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 3 | 2.83% |
▷ Public methods | 100 | 94.34% |
▷ Protected methods | 6 | 5.66% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tr_bg.png | 14.71KB | 0.09KB | ▼ 99.36% |