89% zoho-campaigns

Code Review | Zoho Campaigns

WordPress plugin Zoho Campaigns scored 89% from 54 tests.

About plugin

  • Plugin page: zoho-campaigns
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2015
  • Latest release: Feb 16, 2023
  • Number of updates: 72
  • Update frequency: every 39.7 days
  • Top authors: Zoho Campaigns (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

3,000+ active / 54,966 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼2.68ms] Passed 4 tests

This is a short check of server-side resources used by Zoho Campaigns
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0842.73 ▼2.01
Dashboard /wp-admin3.61 ▲0.3144.09 ▼3.68
Posts /wp-admin/edit.php3.71 ▲0.3551.10 ▲4.50
Add New Post /wp-admin/post-new.php6.30 ▲0.4186.20 ▼5.94
Media Library /wp-admin/upload.php3.55 ▲0.3235.50 ▲0.91
Zoho Campaigns /wp-admin/admin.php?page=zc-start3.4740.45
Signup Forms /wp-admin/admin.php?page=zc-forms3.4733.40

Server storage [IO: ▲1.11MB] [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: 38 new files
Database: 1 new table, 6 new options
New tables
wp_zcwc_forms
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zoho Campaigns
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲8013.57 ▼0.864.62 ▲2.2143.10 ▲0.18
Dashboard /wp-admin2,238 ▲475.84 ▲0.9299.94 ▼2.6473.66 ▲30.10
Posts /wp-admin/edit.php2,127 ▲381.99 ▼0.0736.93 ▲0.3634.63 ▲2.68
Add New Post /wp-admin/post-new.php1,709 ▲19524.72 ▲7.33642.72 ▲21.5254.29 ▲4.45
Media Library /wp-admin/upload.php1,423 ▲354.15 ▼0.01115.46 ▲19.9848.02 ▲6.18
Zoho Campaigns /wp-admin/admin.php?page=zc-start8621.9327.5943.79
Signup Forms /wp-admin/admin.php?page=zc-forms8591.8127.5323.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: email marketing, woocommerce, abandoned cart, signup forms, marketing automation

zoho-campaigns/index.php 77% from 13 tests

The primary PHP file in "Zoho Campaigns" version 2.0.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 235 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zoho-campaigns.php" instead of "index.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "3.7.1")

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
No dangerous file extensions were detected8,916 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS37761545,626
PHP91181632,060
JavaScript28031763
SVG1784467

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity86.50
▷ Minimum class complexity42.00
▷ Maximum class complexity131.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods57
▷ Static methods57100.00%
▷ Public methods5392.98%
▷ Protected methods47.02%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants1173.33%
▷ Class constants426.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/campaign-woocommerce-integration.png21.99KB9.03KB▼ 58.95%
assets/images/zcampaign-to-woocommerce.png21.69KB15.48KB▼ 28.62%