78% zoho-forms

Code Review | Form plugin for Wordpress - Zoho Forms

WordPress plugin Form plugin for Wordpress - Zoho Forms scored78%from 54 tests.

About plugin

  • Plugin page: zoho-forms
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2016
  • Latest release: Sep 20, 2023
  • Number of updates: 37
  • Update frequency: every 74.3 days
  • Top authors: zoho (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10,000+ active /79,944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.62ms] Passed 4 tests

A check of server-side resources used by Form plugin for Wordpress - Zoho Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.86 ▼0.82
Dashboard /wp-admin3.33 ▼0.0243.65 ▼16.75
Posts /wp-admin/edit.php3.38 ▲0.0246.30 ▼1.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.12 ▼15.60
Media Library /wp-admin/upload.php3.25 ▲0.0234.50 ▲0.78

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Form plugin for Wordpress - Zoho Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.201.81 ▲0.1438.66 ▼3.62
Dashboard /wp-admin2,209 ▲185.86 ▲0.99107.10 ▲1.1439.74 ▼3.77
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0640.88 ▲4.0134.33 ▼0.15
Add New Post /wp-admin/post-new.php6,353 ▲4,83927.56 ▲6.19908.10 ▲210.5361.84 ▲14.79
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.00103.02 ▲2.2446.05 ▲1.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/zoho-forms/tinymce/zforms_dialog.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/zoho-forms/zohoForms.php:14

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
You can take inspiration from this readme.txt

zoho-forms/zohoForms.php 92% from 13 tests

The main PHP script in "Form plugin for Wordpress - Zoho Forms" version 3.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zoho-forms.php" instead of "zohoForms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,522 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript571351,256
CSS2853980
PHP34214286

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tinymce/zFormsIcon.png0.55KB0.52KB▼ 5.00%
tinymce/zoho-logo.png14.68KB14.67KB0.08%
tinymce/zohoforms.png0.55KB0.52KB▼ 5.00%
(invalid) tinymce/fieldprop-plus.png15.06KB0.00KB▼ 100.00%
tinymce/smallLogo.png3.70KB1.79KB▼ 51.64%