83% bsk-contact-form-7-to-zoho

Code Review | BSK Contact Form 7 to Zoho

WordPress plugin BSK Contact Form 7 to Zoho scored 83% from 54 tests.

About plugin

  • Plugin page: bsk-contact-form-...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 5.8.1
  • First release: Jan 9, 2019
  • Latest release: Sep 20, 2020
  • Number of updates: 8
  • Update frequency: every 80.2 days
  • Top authors: bannersky (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 769 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.48MB] [CPU: ▼142.88ms] Passed 4 tests

This is a short check of server-side resources used by BSK Contact Form 7 to Zoho
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.28 ▲0.5643.19 ▲19.78
Dashboard /wp-admin3.57 ▲0.5245.32 ▼1.82
Posts /wp-admin/edit.php3.62 ▲0.5242.36 ▲5.36
Add New Post /wp-admin/post-new.php5.88 ▲0.4498.37 ▼567.29
Media Library /wp-admin/upload.php3.45 ▲0.4539.01 ▼7.75
Zoho CRM /wp-admin/admin.php?page=bsk-cf7-to-zoho3.4239.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: 1 new table, 2 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for BSK Contact Form 7 to Zoho
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8716.01 ▲0.459.98 ▲1.7248.74 ▲0.36
Dashboard /wp-admin2,977 ▲466.11 ▲0.13137.97 ▼9.96117.53 ▲2.67
Posts /wp-admin/edit.php2,743 ▲42.71 ▲0.0367.67 ▼0.5893.33 ▼2.30
Add New Post /wp-admin/post-new.php1,508 ▼17518.49 ▲0.01348.59 ▼48.76114.88 ▼8.08
Media Library /wp-admin/upload.php1,814 ▲75.04 ▲0.02150.31 ▼8.52121.07 ▼19.25
Zoho CRM /wp-admin/admin.php?page=bsk-cf7-to-zoho1,6612.1256.65111.29

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 cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method BSK_CF7_ZOHO::bsk_cf7_to_zoho_uninstall() should not be called statically

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bsk-contact-form-7-to-zoho/classes/dashboard/dashboard-feeds.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bsk-contact-form-7-to-zoho/classes/dashboard/dashboard-feeds.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bsk-contact-form-7-to-zoho/classes/dashboard/dashboard-feeds.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Screen of Zoho oAuth.), #2 (Screen of form feeds list.), #3 (Screen of form mapping.)
The official readme.txt might help

bsk-contact-form-7-to-zoho/bsk-contact-form-7-to-zoho.php 92% from 13 tests

The primary PHP file in "BSK Contact Form 7 to Zoho" version 1.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,169 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity43.08
▷ Minimum class complexity1.00
▷ Maximum class complexity202.00
Average method complexity6.87
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
▷ Static methods1011.63%
▷ Public methods86100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
9 PNG files occupy 0.33MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) screenshot-1.png81.10KB0.00KB▼ 100.00%
images/in-active.png14.99KB1.11KB▼ 92.58%
images/active.png15.01KB1.06KB▼ 92.96%
(invalid) screenshot-2.png89.63KB0.00KB▼ 100.00%
(invalid) screenshot-3.png56.60KB0.00KB▼ 100.00%