Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.77MB] [CPU: ▼54.16ms] Passed 4 tests
Server-side resources used by
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.23 | 6.16 ▼38.31 |
Dashboard /wp-admin | 2.23 ▼1.08 | 7.46 ▼38.07 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 7.70 ▼44.27 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 7.40 ▼95.99 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 12.07 ▼22.49 |
Kingmailer /wp-admin/options-general.php?page=kingmailer-smtp | 2.23 | 6.21 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
kingmailer-smtp |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.31 ▼1.47 | 3.87 ▲2.01 | 40.20 ▲0.62 |
Dashboard /wp-admin | 2,224 ▲33 | 5.84 ▲0.97 | 114.12 ▲10.45 | 44.93 ▲4.27 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.01 ▲0.03 | 33.70 ▼6.54 | 34.09 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,536 ▼11 | 23.46 ▲0.31 | 659.74 ▲0.81 | 60.70 ▲9.82 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.31 ▲0.10 | 100.49 ▼2.01 | 43.49 ▼3.74 |
Kingmailer /wp-admin/options-general.php?page=kingmailer-smtp | 986 | 1.71 | 26.45 | 34.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- 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 did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- kingmailer-smtp
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=kingmailer-smtp
- > 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 50% 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 fix the following
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kingmailer-smtp/includes/MailCatcher.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'Kingmailer' not found in wp-content/plugins/kingmailer-smtp/includes/admin.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kingmailer-smtp/kingmailer-smtp.php:56
- > PHP Warning
require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/kingmailer-smtp/includes/MailCatcherV6.php on line 26
- > PHP Warning
require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/kingmailer-smtp/includes/MailCatcher.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/kingmailer-smtp/includes/MailCatcher.php on line 26
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/kingmailer-smtp/includes/MailCatcher.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/kingmailer-smtp/includes/MailCatcherV6.php on line 26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kingmailer-smtp/includes/MailCatcherV6.php on line 26
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/kingmailer-smtp/includes/MailCatcherV6.php on line 26
- > PHP Warning
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: sendgrid smtp, wordpress smtp, mailgun smtp, gmail smtp, kingmailer...
kingmailer-smtp/kingmailer-smtp.php Passed 13 tests
The primary PHP file in "" version 0.3.12 is used by WordPress to initiate all plugin functionality
73 characters long description:
Buy SMTP with Bitcoin. Build for WooCommerce and WordPress. Try for free.
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
Everything looks great! No dangerous files found in this plugin1,065 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 281 | 760 | 991 |
JavaScript | 1 | 11 | 7 | 41 |
Markdown | 1 | 15 | 0 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 47 | 92.16% |
▷ Protected methods | 4 | 7.84% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected