89% mailazy

Code Review | WP SMTP and Email API

WordPress plugin WP SMTP and Email API scored89%from 54 tests.

About plugin

  • Plugin page: mailazy
  • Plugin version: 2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0
  • WordPress version: 6.3.1
  • First release: Dec 31, 2021
  • Latest release: Jul 21, 2022
  • Number of updates: 14
  • Update frequency: every 14.5 days
  • Top authors: mailazy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,251 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.12ms] Passed 4 tests

This is a short check of server-side resources used by WP SMTP and Email API
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.58 ▲2.41
Dashboard /wp-admin3.38 ▲0.0349.19 ▼13.88
Posts /wp-admin/edit.php3.49 ▲0.1448.08 ▼4.15
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.86 ▼24.84
Media Library /wp-admin/upload.php3.30 ▲0.0739.55 ▲4.32

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP SMTP and Email API
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.24 ▼0.321.71 ▲0.1443.91 ▲1.56
Dashboard /wp-admin2,215 ▲385.60 ▼0.0184.35 ▼3.0372.73 ▲31.71
Posts /wp-admin/edit.php2,120 ▲201.98 ▼0.0538.88 ▲2.8535.22 ▼6.03
Add New Post /wp-admin/post-new.php1,694 ▲16822.24 ▼0.86714.81 ▲38.8466.86 ▼5.85
Media Library /wp-admin/upload.php1,417 ▲144.22 ▼0.00103.15 ▲0.9974.63 ▲31.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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 93% 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
Attributes that require attention:
  • Screenshots: Add a description for screenshot #4 in mailazy/assets to your readme.txt
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

mailazy/mailazy.php Passed 13 tests

"WP SMTP and Email API" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
Mailazy provides a secure and delightful experience to your customer with Email API OR SMTP.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin796 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6110279694
SVG10058
CSS10044

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity28.50
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods36.67%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/favicon.png0.70KB0.52KB▼ 26.36%