89% zoho-marketinghub

Code Review | Zoho Marketing Automation

WordPress plugin Zoho Marketing Automation scored89%from 54 tests.

About plugin

  • Plugin page: zoho-marketinghub
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-5.7.2
  • WordPress version: 6.3.1
  • First release: May 4, 2019
  • Latest release: Oct 20, 2021
  • Number of updates: 25
  • Update frequency: every 36.7 days
  • Top authors: Zoho Campaigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /12,975 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.20MB] [CPU: ▼12.52ms] Passed 4 tests

A check of server-side resources used by Zoho Marketing Automation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.61 ▼0.76
Dashboard /wp-admin3.55 ▲0.2147.11 ▼17.07
Posts /wp-admin/edit.php3.65 ▲0.2943.17 ▲0.60
Add New Post /wp-admin/post-new.php6.25 ▲0.3675.91 ▼32.85
Media Library /wp-admin/upload.php3.51 ▲0.2834.36 ▲2.72
Signup Forms /wp-admin/admin.php?page=mh-forms3.4133.30
Web Assistant /wp-admin/admin.php?page=mh-wa3.4134.43
Zoho Marketing Automation /wp-admin/admin.php?page=mh-start3.4129.05

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 1 new table, 7 new options
New tables
wp_zmhub_forms
New WordPress options
zmh_plugin_version
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Zoho Marketing Automation: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲13014.36 ▲0.011.63 ▼0.3942.36 ▼6.29
Dashboard /wp-admin2,282 ▲1055.61 ▼0.0685.69 ▼11.9839.00 ▼4.34
Posts /wp-admin/edit.php2,187 ▲872.15 ▲0.1436.65 ▼4.4436.14 ▲1.09
Add New Post /wp-admin/post-new.php1,569 ▲4322.98 ▼0.03655.87 ▲49.0762.54 ▲4.90
Media Library /wp-admin/upload.php1,485 ▲854.22 ▲0.0396.94 ▲5.5947.60 ▲7.86
Signup Forms /wp-admin/admin.php?page=mh-forms9311.9426.1845.83
Web Assistant /wp-admin/admin.php?page=mh-wa9311.9129.2731.23
Zoho Marketing Automation /wp-admin/admin.php?page=mh-start9341.8025.7126.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: web analytics, marketing hub, website tracking, automation, sign-up form

zoho-marketinghub/zmh.php 85% from 13 tests

This is the main PHP file of "Zoho Marketing Automation" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zoho-marketinghub.php" instead of "zmh.php")

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
There were no executable files found in this plugin7,861 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS37331545,357
PHP8121491,414
JavaScript38324663
SVG1482427

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity75.50
▷ Minimum class complexity31.00
▷ Maximum class complexity120.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods48
▷ Static methods48100.00%
▷ Public methods4491.67%
▷ Protected methods48.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants1071.43%
▷ Class constants428.57%
▷ Public constants4100.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
PNG images were not found in this plugin