78% crm-connector-plus

Code Review | CRM Connector Plus

WordPress plugin CRM Connector Plus scored78%from 54 tests.

About plugin

  • Plugin page: crm-connector-plus
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 27, 2021
  • Latest release: Feb 27, 2021
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: smackcoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /443 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲1.63MB] [CPU: ▲4.88ms] Passed 4 tests

This is a short check of server-side resources used by CRM Connector Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.10 ▲1.6443.98 ▲5.82
Dashboard /wp-admin4.94 ▲1.6352.33 ▲0.80
Posts /wp-admin/edit.php4.99 ▲1.6362.13 ▲17.59
Add New Post /wp-admin/post-new.php7.52 ▲1.63101.14 ▲7.32
Media Library /wp-admin/upload.php4.86 ▲1.6342.76 ▲5.56

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 90 new files
Database: 14 new tables, 14 new options
New tables
wp_smack_ulb_databucket_meta
wp_smack_ulb_outcrm_field_manager
wp_smack_ulb_addon_crm_leads
wp_smack_ulb_formrelation
wp_smack_ulb_addon_crm_lead_exception
wp_smack_ulb_databucket_info
wp_smack_ulb_shortcode_manager
wp_smack_ulb_group_manager
wp_smack_ulb_submitted_forms
wp_smack_ulb_ecom_info
...
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
WPULB_ACTIVE_CRM_ADDON
WPULB_SCHEDULE_STATUS
WPULB_USER_ONE_TIME_MANUAL_SYNC
WPULB_ACTIVATED_COUNT
db_upgraded
WPULB_ACTIVE_HELPDESK_ADDON
WPULB_WOOCOM_PRODUCT_ONE_TIME_MANUAL_SYNC
...

Browser metrics Passed 4 tests

CRM Connector Plus: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.19 ▼1.391.53 ▼0.0739.63 ▼3.47
Dashboard /wp-admin2,224 ▲334.91 ▼0.98101.98 ▼1.5373.29 ▲30.28
Posts /wp-admin/edit.php2,110 ▲241.98 ▼0.0837.82 ▲1.0434.41 ▲4.36
Add New Post /wp-admin/post-new.php1,527 ▼721.49 ▼1.42778.83 ▲150.4657.76 ▲3.93
Media Library /wp-admin/upload.php1,403 ▲124.17 ▼0.04108.12 ▲10.0845.20 ▲2.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
  • The plugin did not uninstall successfully, leaving 14 tables in the database
    • wp_smack_ulb_addon_crm_leads
    • wp_smack_ulb_group_manager
    • wp_smack_ulb_databucket_info
    • wp_smack_ulb_submitted_forms
    • wp_smack_ulb_shortcode_manager
    • wp_smack_ulb_manage_fields
    • wp_smack_ulb_formrelation
    • wp_smack_ulb_ecom_info
    • wp_smack_ulb_addon_crm_lead_exception
    • wp_smack_ulb_outcrm_field_manager
    • ...
  • This plugin does not fully uninstall, leaving 14 options in the database
    • WPULB_SCHEDULE_STATUS
    • WPULB_WOOCOM_PRODUCT_ONE_TIME_MANUAL_SYNC
    • theysaidso_admin_options
    • WPULB_DEACTIVATED_COUNT
    • WPULB_ACTIVE_CRM_ADDON
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • WPULB_ACTIVE_HELPDESK_ADDON
    • ...

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (CRM Configuration), #2 (Data Bucket Section), #3 (Form Management), #4 (Data Bucket Settings), #5 (Default Form Settings), #6 (Form Edit View), #7 (Individual Form Settings), #8 (Form Field Arragement), #9 (Form Mappig with CRM)
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

crm-connector-plus/crm-connector-plus.php 92% from 13 tests

The entry point to "CRM Connector Plus" version 0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 162 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 plugin13,048 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,3331,0518,280
SVG2002,696
JavaScript53161,0961,218
CSS713411854

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity49.00
▷ Minimum class complexity2.00
▷ Maximum class complexity180.00
Average method complexity5.65
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods227
▷ Static methods14965.64%
▷ Public methods227100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
36 PNG files occupy 1.23MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/zendesk.png1.68KB0.89KB▼ 46.83%
assets/images/zohosupport.png7.60KB2.85KB▼ 62.44%
screenshot-4.png77.98KB22.30KB▼ 71.40%
assets/images/usersync.png23.00KB9.67KB▼ 57.95%
assets/images/allinonecrm.png169.76KB68.13KB▼ 59.87%