94% wp-smpt-zm

Code Review | WP MAIL SMTP ZM

WordPress plugin WP MAIL SMTP ZM scored 94% from 54 tests.

About plugin

  • Plugin page: wp-smpt-zm
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.3
  • WordPress version: 5.9.2
  • First release: Oct 9, 2015
  • Latest release: Oct 9, 2015
  • Number of updates: 3
  • Update frequency: every 7.0 days
  • Top authors: ZaneMatthew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 8,245 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼295.38ms] Passed 4 tests

Server-side resources used by WP MAIL SMTP ZM
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1155.44 ▼1.70
Dashboard /wp-admin3.51 ▲0.1033.87 ▼25.80
Posts /wp-admin/edit.php3.73 ▲0.0940.81 ▲0.97
Add New Post /wp-admin/post-new.php7.04 ▲0.0796.80 ▼1,152.86
Media Library /wp-admin/upload.php3.45 ▲0.1524.86 ▼1.17
WP Mail SMTP ZM /wp-admin/options-general.php?page=wp_mail_smtp_zm3.4224.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
wp_mail_smtp_zm_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP MAIL SMTP ZM
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,777 ▲2315.89 ▲0.226.92 ▲1.362.18 ▼0.41
Dashboard /wp-admin2,902 ▲416.14 ▲0.02123.08 ▼15.62191.54 ▲20.94
Posts /wp-admin/edit.php2,712 ▲213.27 ▲0.0363.05 ▼1.15139.38 ▼4.30
Add New Post /wp-admin/post-new.php1,673 ▲3816.32 ▼1.29410.83 ▼148.12167.14 ▼36.30
Media Library /wp-admin/upload.php1,719 ▲215.59 ▲0.05161.60 ▲5.68198.23 ▲4.59
WP Mail SMTP ZM /wp-admin/options-general.php?page=wp_mail_smtp_zm1,2712.7556.61113.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-smpt-zm/wp-mail-smtp-zm.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Lumber' not found in wp-content/plugins/wp-smpt-zm/lib/quilt/quilt.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smpt-zm/inc/mail.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smpt-zm/inc/settings.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Log)
You can take inspiration from this readme.txt

wp-smpt-zm/wp-mail-smtp-zm.php 92% from 13 tests

"WP MAIL SMTP ZM" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-smpt-zm.php" instead of "wp-mail-smtp-zm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,751 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP56779461,601
JavaScript35015102
CSS19048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity111.00
▷ Minimum class complexity73.00
▷ Maximum class complexity149.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods79
▷ Static methods00.00%
▷ Public methods79100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin