68% kingmailer-smtp

Code Review |

WordPress plugin scored68%from 54 tests.

About plugin

  • Plugin page: kingmailer-smtp
  • Plugin version: 0.3.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Jul 24, 2023
  • Number of updates: 60
  • Update frequency: every 16.2 days
  • Top authors: kingmailer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,426 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.236.16 ▼38.31
Dashboard /wp-admin2.23 ▼1.087.46 ▼38.07
Posts /wp-admin/edit.php2.23 ▼1.137.70 ▼44.27
Add New Post /wp-admin/post-new.php2.23 ▼3.667.40 ▼95.99
Media Library /wp-admin/upload.php2.23 ▼1.0012.07 ▼22.49
Kingmailer /wp-admin/options-general.php?page=kingmailer-smtp2.236.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.31 ▼1.473.87 ▲2.0140.20 ▲0.62
Dashboard /wp-admin2,224 ▲335.84 ▲0.97114.12 ▲10.4544.93 ▲4.27
Posts /wp-admin/edit.php2,103 ▲142.01 ▲0.0333.70 ▼6.5434.09 ▼3.20
Add New Post /wp-admin/post-new.php1,536 ▼1123.46 ▲0.31659.74 ▲0.8160.70 ▲9.82
Media Library /wp-admin/upload.php1,409 ▲184.31 ▲0.10100.49 ▼2.0143.49 ▼3.74
Kingmailer /wp-admin/options-general.php?page=kingmailer-smtp9861.7126.4534.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP7281760991
JavaScript111741
Markdown115033

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 code0.40
Average class complexity22.67
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods51
▷ Static methods35.88%
▷ Public methods4792.16%
▷ Protected methods47.84%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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