72% zsquared-connector-for-zoho-crm

Code Review | ZSquared Connector for Zoho CRM

WordPress plugin ZSquared Connector for Zoho CRM scored72%from 54 tests.

About plugin

  • Plugin page: zsquared-connecto...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: May 7, 2021
  • Number of updates: 15
  • Update frequency: every 24.0 days
  • Top authors: pcis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼1.43ms] Passed 4 tests

Analyzing server-side resources used by ZSquared Connector for Zoho CRM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2045.46 ▲4.41
Dashboard /wp-admin3.49 ▲0.1851.30 ▲3.52
Posts /wp-admin/edit.php3.60 ▲0.2446.71 ▲0.40
Add New Post /wp-admin/post-new.php6.07 ▲0.1888.72 ▼14.04
Media Library /wp-admin/upload.php3.41 ▲0.1842.34 ▲6.51

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
zsq_crm_daily_sync_qty
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
zsq_crm_daily_sync_price
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by ZSquared Connector for Zoho CRM
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.25 ▼1.131.72 ▼0.0844.04 ▼5.00
Dashboard /wp-admin2,227 ▲394.96 ▲0.05115.15 ▲0.6443.89 ▼3.75
Posts /wp-admin/edit.php2,109 ▲202.01 ▼0.0135.84 ▲1.1437.06 ▲0.93
Add New Post /wp-admin/post-new.php1,553 ▲2523.32 ▲5.23686.36 ▲79.0360.31 ▼0.04
Media Library /wp-admin/upload.php1,412 ▲214.21 ▲0.0196.42 ▼0.1644.68 ▲0.32
ZSquared Connector to Zoho CRM /wp-admin/zsq_crm.php260.440.0716.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • zsq_crm_daily_sync_qty
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • zsq_crm_daily_sync_price

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/zsquared-connector-for-zoho-crm/templates/missing_api_key.php
    • > /wp-content/plugins/zsquared-connector-for-zoho-crm/templates/activation_notice.php
    • > /wp-content/plugins/zsquared-connector-for-zoho-crm/templates/scripts.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ZSQ_CRM_APP_HOME - assumed 'ZSQ_CRM_APP_HOME' (this will throw an Error in a future version of PHP) in wp-content/plugins/zsquared-connector-for-zoho-crm/templates/missing_api_key.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/zsquared-connector-for-zoho-crm/templates/options.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/zsq_crm.php
    • > Network (severe)
    wp-admin/zsq_crm.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% 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
4 plugin tags: woocommerce, crm, zoho, ecommerce

zsquared-connector-for-zoho-crm/zsq-connector-crm.php 92% from 13 tests

This is the main PHP file of "ZSquared Connector for Zoho CRM" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("zsquared-connector-for-zoho-crm.php" instead of "zsq-connector-crm.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
Good job! No executable or dangerous file extensions detected1,205 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP108521985
CSS14316220

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity29.75
▷ Minimum class complexity11.00
▷ Maximum class complexity60.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods2266.67%
▷ Protected methods00.00%
▷ Private methods1133.33%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
assets/img/z-squared-logo.png11.21KB5.53KB▼ 50.68%