67% integration-of-zoho-crm-and-fluent-form

Code Review | Integration of Zoho CRM and Fluent Form

WordPress plugin Integration of Zoho CRM and Fluent Form scored67%from 54 tests.

About plugin

  • Plugin page: integration-of-zo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 21, 2021
  • Latest release: Mar 11, 2023
  • Number of updates: 13
  • Update frequency: every 43.7 days
  • Top authors: bitpressadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.63ms] Passed 4 tests

Analyzing server-side resources used by Integration of Zoho CRM and Fluent Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.65 ▼1.04
Dashboard /wp-admin3.39 ▲0.0944.17 ▼5.03
Posts /wp-admin/edit.php3.51 ▲0.1549.74 ▲0.25
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.53 ▼4.69
Media Library /wp-admin/upload.php3.32 ▲0.0936.84 ▲3.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 79 new files
Database: 3 new tables, 8 new options
New tables
wp_bitffzc_gclid
wp_bitffzc_zoho_crm_log_details
wp_bitffzc_integration
New WordPress options
bitffzc_version
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
bitffzc_installed

Browser metrics Passed 4 tests

An overview of browser requirements for Integration of Zoho CRM and Fluent Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.031.54 ▼0.0741.76 ▲4.58
Dashboard /wp-admin2,195 ▲145.62 ▲0.0481.12 ▼29.1341.08 ▼3.01
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0340.22 ▲1.3936.25 ▼4.95
Add New Post /wp-admin/post-new.php1,528 ▼023.22 ▲0.01668.50 ▲9.0252.79 ▼2.57
Media Library /wp-admin/upload.php1,397 ▼34.10 ▼0.13109.77 ▲13.7546.66 ▲3.65

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
  • Zombie tables were found after uninstall: 3 tables
    • wp_bitffzc_integration
    • wp_bitffzc_zoho_crm_log_details
    • wp_bitffzc_gclid
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • bitffzc_version
    • can_compress_scripts
    • theysaidso_admin_options
    • bitffzc_installed
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/integration-of-zoho-crm-and-fluent-form/assets/js/index.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/integration-of-zoho-crm-and-fluent-form/languages/generatedString.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITFFZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-fluent-form/includes/Core/Database/IntegrationModel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITFFZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-fluent-form/includes/Core/Database/GclidModel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITFFZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-fluent-form/includes/Core/Database/LogModel.php:12

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (48 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

integration-of-zoho-crm-and-fluent-form/bitffzc.php 85% from 13 tests

The primary PHP file in "Integration of Zoho CRM and Fluent Form" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("integration-of-zoho-crm-and-fluent-form.php" instead of "bitffzc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,423 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP445497563,362
JSON30038
JavaScript200320
CSS2002
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity18.39
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes2060.61%
Methods160
▷ Static methods5333.12%
▷ Public methods14389.38%
▷ Protected methods95.62%
▷ Private methods85.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/img/logo.png7.03KB0.00KB▼ 100.00%