89% zoho-mail

Code Review | Zoho Mail for WordPress

WordPress plugin Zoho Mail for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: zoho-mail
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Dec 11, 2017
  • Latest release: Nov 1, 2023
  • Number of updates: 76
  • Update frequency: every 28.4 days
  • Top authors: zmintegration (100%)

Code review

54 tests

User reviews

36 reviews

Install metrics

10,000+ active /205,673 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.31ms] Passed 4 tests

This is a short check of server-side resources used by Zoho Mail for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.78 ▲1.17
Dashboard /wp-admin3.43 ▲0.0847.51 ▼16.55
Posts /wp-admin/edit.php3.48 ▲0.1249.62 ▲1.51
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.26 ▼15.36
Media Library /wp-admin/upload.php3.36 ▲0.1237.60 ▲1.68
Configure Account /wp-admin/admin.php?page=zmail-integ-settings3.3233.60
Test Mail /wp-admin/admin.php?page=zmail-send-mail3.3231.16
Troubleshoot /wp-admin/admin.php?page=zmail-troubleshoot3.3230.98

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Zoho Mail for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.33 ▼0.201.76 ▲0.1439.30 ▼3.50
Dashboard /wp-admin2,225 ▲475.56 ▼0.1181.37 ▼39.3640.66 ▼2.32
Posts /wp-admin/edit.php2,133 ▲332.02 ▲0.0840.47 ▲2.4835.42 ▲0.46
Add New Post /wp-admin/post-new.php1,556 ▲3023.83 ▲0.24613.72 ▼0.9862.82 ▲13.01
Media Library /wp-admin/upload.php1,436 ▲334.22 ▲0.0295.92 ▲0.5641.37 ▼0.46
Configure Account /wp-admin/admin.php?page=zmail-integ-settings9512.1421.8343.33
Test Mail /wp-admin/admin.php?page=zmail-send-mail7932.0324.8223.76
Troubleshoot /wp-admin/admin.php?page=zmail-troubleshoot9091.9925.9432.58

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid URI found ("none")
  • Screenshots: Please add an image for screenshot #1 ([Configure Account](screenshot-1.png))
You can look at the official readme.txt

zoho-mail/zohoMail.php 77% from 13 tests

The main PHP script in "Zoho Mail for WordPress" version 1.5.4 is automatically included on every request by 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 ("zoho-mail.php" instead of "zohoMail.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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 plugin818 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110637662
CSS1230156

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
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/dropdown.png1.01KB0.15KB▼ 85.15%
assets/images/dropdown1.png1.01KB0.15KB▼ 85.05%
assets/images/zoho.png15.85KB5.64KB▼ 64.43%