83% transmail

Code Review | ZeptoMail

WordPress plugin ZeptoMail scored83%from 54 tests.

About plugin

  • Plugin page: transmail
  • Plugin version: 2.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 31, 2020
  • Latest release: Oct 10, 2023
  • Number of updates: 22
  • Update frequency: every 52.0 days
  • Top authors: zmintegration (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /16,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.95ms] Passed 4 tests

Server-side resources used by ZeptoMail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.54 ▼2.36
Dashboard /wp-admin3.38 ▲0.0847.04 ▲0.05
Posts /wp-admin/edit.php3.43 ▲0.0746.34 ▲2.93
Add New Post /wp-admin/post-new.php5.96 ▲0.0779.99 ▼9.49
Media Library /wp-admin/upload.php3.30 ▲0.0735.16 ▼0.01
Configure Account /wp-admin/admin.php?page=transmail-settings3.2731.12
Test Mail /wp-admin/admin.php?page=transmail-send-mail3.2730.77

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ZeptoMail
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.33 ▼1.041.83 ▲0.1043.09 ▼0.16
Dashboard /wp-admin2,235 ▲445.98 ▲1.0894.99 ▼26.3037.80 ▼7.47
Posts /wp-admin/edit.php2,118 ▲292.02 ▼0.0435.10 ▼1.0231.44 ▼5.15
Add New Post /wp-admin/post-new.php1,561 ▲4718.23 ▲0.40610.26 ▼83.7654.53 ▼1.29
Media Library /wp-admin/upload.php1,417 ▲264.20 ▼0.0296.79 ▼3.7543.20 ▼3.06
Configure Account /wp-admin/admin.php?page=transmail-settings9332.0623.8145.15
Test Mail /wp-admin/admin.php?page=transmail-send-mail7782.1723.9923.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 add_action() in wp-content/plugins/transmail/transMail.php:30

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 83% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: "none"
  • Screenshots: Screenshot #1 (Configure Account(screenshot-1.png)) image missing
You can take inspiration from this readme.txt

transmail/transMail.php 77% from 13 tests

The primary PHP file in "ZeptoMail" version 2.2.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("transmail.php" instead of "transMail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin545 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16028426
CSS1220119

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/send.png1.54KB0.92KB▼ 40.06%
assets/images/dropdown1.png1.01KB0.15KB▼ 85.05%
assets/images/dropdown.png1.01KB0.15KB▼ 85.15%
assets/images/zoho.png15.85KB5.64KB▼ 64.43%