84% wp-hotmail-smtp

Code Review | WP Hotmail SMTP

WordPress plugin WP Hotmail SMTP scored84%from 54 tests.

About plugin

  • Plugin page: wp-hotmail-smtp
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Aug 21, 2018
  • Number of updates: 29
  • Update frequency: every 23.0 days
  • Top authors: inkthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.65ms] Passed 4 tests

An overview of server-side resources used by WP Hotmail SMTP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.51 ▼4.60
Dashboard /wp-admin3.41 ▲0.1151.33 ▼2.78
Posts /wp-admin/edit.php3.52 ▲0.1751.46 ▼1.26
Add New Post /wp-admin/post-new.php5.99 ▲0.10104.73 ▼1.52
Media Library /wp-admin/upload.php3.33 ▲0.1039.14 ▼1.68

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Hotmail SMTP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.69 ▲0.401.66 ▼0.1739.90 ▼0.73
Dashboard /wp-admin2,221 ▲445.55 ▼0.1089.26 ▼0.1343.85 ▲1.28
Posts /wp-admin/edit.php2,127 ▲302.16 ▲0.1539.84 ▲1.2237.27 ▼1.31
Add New Post /wp-admin/post-new.php1,549 ▲2323.34 ▲0.24615.53 ▼71.9045.65 ▼7.08
Media Library /wp-admin/upload.php1,426 ▲294.17 ▲0.01100.81 ▲7.0445.72 ▲0.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-hotmail-smtp/wp-hotmail-smtp.php:38

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-hotmail-smtp/wp-hotmail-smtp.php Passed 13 tests

"WP Hotmail SMTP" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
WP Hotmail SMTP allows you to send all outgoing emails via Hotmail SMTP server from your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected543 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP59690543

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.50
▷ Minimum class complexity4.00
▷ Maximum class complexity24.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods32100.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
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
m_bolt_img.png22.17KB8.42KB▼ 62.01%
screenshot-2.png60.35KB26.67KB▼ 55.80%
screenshot-1.png79.96KB37.99KB▼ 52.49%