83% launchpad-smtp

Code Review | Launchpad WP SMTP

WordPress plugin Launchpad WP SMTP scored83%from 54 tests.

About plugin

  • Plugin page: launchpad-smtp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: May 9, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: vinhdd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /503 total downloads

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.03MB] [CPU: ▼6.81ms] Passed 4 tests

This is a short check of server-side resources used by Launchpad WP SMTP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.36 ▼2.75
Dashboard /wp-admin3.34 ▲0.0346.93 ▼3.07
Posts /wp-admin/edit.php3.39 ▲0.0341.85 ▼6.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.08 ▼14.97
Media Library /wp-admin/upload.php3.26 ▲0.0334.00 ▲0.16
Launchpad SMTP /wp-admin/options-general.php?page=launchpad-smtp/launchpad-wp-smtp.php3.2033.49

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
launchpad_wp_smtp_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Launchpad WP SMTP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.24 ▼1.354.62 ▲2.7142.71 ▼1.63
Dashboard /wp-admin2,213 ▲254.83 ▼0.0597.08 ▼6.7237.78 ▼3.09
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0437.48 ▼0.8932.48 ▼1.59
Add New Post /wp-admin/post-new.php1,539 ▲623.13 ▲0.00667.74 ▲32.7254.49 ▲5.32
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0296.47 ▼2.5843.28 ▼0.62
Launchpad SMTP /wp-admin/options-general.php?page=launchpad-smtp/launchpad-wp-smtp.php7632.1724.2824.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • launchpad_wp_smtp_options
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% 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)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=launchpad-smtp/launchpad-wp-smtp.php
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Launchpad_WP_SMTP' does not have a method 'launchpad_smtp_page'

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 ("Gmail.com" settings), #2 ("Yahoo.com" settings), #3 ("Live.com" settings), #4 ("163.com" settings), #5 ("QQ.com" settings)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

launchpad-smtp/launchpad-wp-smtp.php 85% from 13 tests

The main PHP script in "Launchpad WP SMTP" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("launchpad-smtp.php" instead of "launchpad-wp-smtp.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected380 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23815319
PO File1232261

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/163.png0.19KB0.13KB▼ 32.82%
images/qq.png0.96KB1.18KB0.00%
images/gmail.png0.68KB0.83KB0.00%
images/yahoo.png1.51KB0.81KB▼ 46.68%
images/microsoft.png0.71KB0.76KB0.00%