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.36MB] [CPU: ▼3.87ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Simple SMTP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 37.00 ▼10.70 |
Dashboard /wp-admin | 3.76 ▲0.46 | 48.99 ▲2.55 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 45.94 ▼1.15 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 82.49 ▼6.18 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.10 ▲3.57 |
Mail /wp-admin/options-general.php?page=wpsimplesmtp | 3.60 | 33.94 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Simple SMTP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.26 ▼0.08 | 1.67 ▼0.15 | 44.45 ▼2.54 |
Dashboard /wp-admin | 2,201 ▲24 | 5.53 ▼0.14 | 82.71 ▼14.84 | 37.86 ▼4.23 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 35.32 ▼0.72 | 31.83 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.10 ▼0.12 | 677.16 ▼19.65 | 64.32 ▲4.04 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.19 ▼0.00 | 94.71 ▼4.55 | 47.17 ▲1.77 |
Mail /wp-admin/options-general.php?page=wpsimplesmtp | 1,079 | 2.00 | 24.63 | 34.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-smtp/src/mail/class-maildisable.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-smtp/src/mail/class-maildisable.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'wpsimplesmtp\\Settings' not found in wp-content/plugins/simple-smtp/src/settings/class-multisite.php:17
- > PHP Warning
require_once(ABSPATHWPINC/PHPMailer/PHPMailer.php): failed to open stream: No such file or directory in wp-content/plugins/simple-smtp/src/mail/class-maildisable.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function wpsimplesmtp\\is_multisite() in wp-content/plugins/simple-smtp/src/class-options.php:48
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/PHPMailer/PHPMailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-smtp/src/mail/class-maildisable.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'wpsimplesmtp\\Settings' not found in wp-content/plugins/simple-smtp/src/settings/class-singular.php:21
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: dispatch, sender, smtp, email, mail
simple-smtp/wp-simple-smtp.php 92% from 13 tests
The primary PHP file in "WordPress Simple SMTP" version 1.3.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-smtp.php" instead of "wp-simple-smtp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,506 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 476 | 1,344 | 2,434 |
JavaScript | 1 | 11 | 23 | 66 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 22 | 15.28% |
▷ Public methods | 130 | 90.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 9.72% |
Functions | 26 | |
▷ Named functions | 3 | 11.54% |
▷ Anonymous functions | 23 | 88.46% |
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
No PNG files were detected