84% cf7-zoho-leads

Code Review | Contact Form 7: Zoho Leads integration

WordPress plugin Contact Form 7: Zoho Leads integration scored84%from 54 tests.

About plugin

  • Plugin page: cf7-zoho-leads
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Mar 2, 2017
  • Number of updates: 12
  • Update frequency: every 12.7 days
  • Top authors: jcornutt (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /4,917 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Contact Form 7: Zoho Leads integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.34 ▼4.33
Dashboard /wp-admin3.31 ▲0.0145.58 ▼0.83
Posts /wp-admin/edit.php3.36 ▲0.0144.47 ▼0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.67 ▼4.35
Media Library /wp-admin/upload.php3.24 ▲0.0132.48 ▼0.26
Contact Form 7: Zoho Leads /wp-admin/options-general.php?page=cf7_zoho_leads_options3.2029.23

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7: Zoho Leads integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.97 ▼0.295.17 ▲3.1142.10 ▼2.72
Dashboard /wp-admin2,216 ▲285.89 ▼0.16109.58 ▲5.9937.62 ▼1.19
Posts /wp-admin/edit.php2,098 ▲62.01 ▼0.0139.60 ▼0.1734.71 ▼2.81
Add New Post /wp-admin/post-new.php1,546 ▲418.29 ▲0.08605.42 ▼13.4456.79 ▲8.40
Media Library /wp-admin/upload.php1,401 ▲194.25 ▲0.0597.60 ▼2.2841.96 ▼1.73
Contact Form 7: Zoho Leads /wp-admin/options-general.php?page=cf7_zoho_leads_options8842.0222.4242.12

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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 following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-zoho-leads/admin-menu.php:125

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

cf7-zoho-leads/cf7-zoho-leads.php Passed 13 tests

The main PHP file in "Contact Form 7: Zoho Leads integration" ver. 0.0.5 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Zoho Leads integration for Contact Form 7 forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin360 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP472100360

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin