68% integration-of-zoho-crm-and-contact-form-7

Code Review | Integration of Zoho CRM and Contact Form 7

WordPress plugin Integration of Zoho CRM and Contact Form 7 scored68%from 54 tests.

About plugin

  • Plugin page: integration-of-zo...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2021
  • Latest release: Mar 11, 2023
  • Number of updates: 17
  • Update frequency: every 37.3 days
  • Top authors: bitpressadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /1,782 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Integration of Zoho CRM and Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.87 ▲0.18
Dashboard /wp-admin3.32 ▲0.0146.90 ▼1.34
Posts /wp-admin/edit.php3.37 ▲0.0149.38 ▲0.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.84 ▼15.23
Media Library /wp-admin/upload.php3.24 ▲0.0135.51 ▲0.83

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 85 new files
Database: 3 new tables, 8 new options
New tables
wp_bitcf7zc_integration
wp_bitcf7zc_gclid
wp_bitcf7zc_zoho_crm_log_details
New WordPress options
can_compress_scripts
bitcf7zc_version
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
bitcf7zc_installed
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Integration of Zoho CRM and Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9514.45 ▲0.142.03 ▲0.0540.51 ▼0.74
Dashboard /wp-admin2,205 ▲175.83 ▲0.97112.98 ▲3.9939.97 ▼1.25
Posts /wp-admin/edit.php2,093 ▲72.16 ▲0.1740.22 ▲4.5638.24 ▲3.22
Add New Post /wp-admin/post-new.php1,539 ▼323.37 ▲5.03655.85 ▲15.9675.13 ▲19.41
Media Library /wp-admin/upload.php1,393 ▲54.27 ▲0.1097.44 ▲0.7739.42 ▼3.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_bitcf7zc_zoho_crm_log_details
    • wp_bitcf7zc_gclid
    • wp_bitcf7zc_integration
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • bitcf7zc_installed
    • widget_recent-posts
    • bitcf7zc_version
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/integration-of-zoho-crm-and-contact-form-7/assets/js/index.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITCF7ZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-contact-form-7/includes/Core/Database/IntegrationModel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITCF7ZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-contact-form-7/includes/Core/Database/LogModel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITCF7ZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-contact-form-7/includes/Core/Database/GclidModel.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/integration-of-zoho-crm-and-contact-form-7/languages/generatedString.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: cf7 and zoho, zoho and cf7, zoho integration, contact form 7 integration, integration...

integration-of-zoho-crm-and-contact-form-7/bitcf7zc.php 85% from 13 tests

Analyzing the main PHP file in "Integration of Zoho CRM and Contact Form 7" version 1.0.4
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("integration-of-zoho-crm-and-contact-form-7.php" instead of "bitcf7zc.php")

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
No dangerous file extensions were detected3,825 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP475608383,763
JSON30038
JavaScript200320
CSS2002
SVG2002

PHP code Passed 2 tests

An short overview of 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.55
Average class complexity20.06
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity5.11
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes2363.89%
Methods168
▷ Static methods5633.33%
▷ Public methods15391.07%
▷ Protected methods84.76%
▷ Private methods74.17%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/img/bit-form960e4fb1.png37.44KB0.00KB▼ 100.00%
(invalid) assets/img/bit-form.png37.44KB0.00KB▼ 100.00%