71% woo-crm

Code Review | WooCommerce CRM

WordPress plugin WooCommerce CRM scored71%from 54 tests.

About plugin

  • Plugin page: woo-crm
  • Plugin version: 1.0.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.0.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Mar 22, 2019
  • Number of updates: 6
  • Update frequency: every 7.7 days
  • Top authors: bulktheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,321 total downloads

Benchmarks

Plugin footprint 82% 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.51MB] [CPU: ▼18.22ms] Passed 4 tests

An overview of server-side resources used by WooCommerce CRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.71 ▼6.78
Dashboard /wp-admin3.48 ▲0.1852.36 ▼1.49
Posts /wp-admin/edit.php3.51 ▲0.1549.30 ▼2.31
Add New Post /wp-admin/post-new.php3.33 ▼2.5539.68 ▼62.30
Media Library /wp-admin/upload.php3.40 ▲0.1739.49 ▲2.58
Groups /wp-admin/admin.php?page=woo-crm-groups3.3730.24
Pro Features /wp-admin/admin.php?page=woo-crm-pro3.3734.04
Tasks /wp-admin/admin.php?page=woo-crm-tasks3.3732.73
Calls /wp-admin/admin.php?page=woo-crm-calls3.3732.66
Customers /wp-admin/edit.php?post_type=customers3.4844.31
Accounts /wp-admin/admin.php?page=woo-crm-accounts3.3735.67
Emails /wp-admin/admin.php?page=woo-crm-emails3.3734.96

Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/woo-crm/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WooCommerce CRM: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10113.57 ▼0.811.69 ▲0.0748.00 ▲2.41
Dashboard /wp-admin2,265 ▲594.88 ▼0.93111.70 ▲8.5282.22 ▲38.80
Posts /wp-admin/edit.php2,148 ▲482.00 ▲0.0138.42 ▲3.5834.82 ▼2.69
Add New Post /wp-admin/post-new.php1,561 ▲1623.64 ▲0.56742.84 ▲55.0654.33 ▼0.01
Media Library /wp-admin/upload.php1,441 ▲414.18 ▼0.09105.02 ▼10.2774.08 ▲24.14
Groups /wp-admin/admin.php?page=woo-crm-groups9762.0227.3344.57
Pro Features /wp-admin/admin.php?page=woo-crm-pro9572.0226.3032.94
Tasks /wp-admin/admin.php?page=woo-crm-tasks9822.0221.8734.12
Calls /wp-admin/admin.php?page=woo-crm-calls9612.0325.7834.01
Customers /wp-admin/edit.php?post_type=customers1,3163.6459.1567.99
Accounts /wp-admin/admin.php?page=woo-crm-accounts9812.0223.7132.55
Emails /wp-admin/admin.php?page=woo-crm-emails9782.0124.5938.49

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woo-crm-emails
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% 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
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-crm/includes/customer-meta-fields.php:368
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-crm/includes/admin-menu.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-crm/includes/post-type.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/woo-crm/woocommerce-crm.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woo-crm-emails
    • > Network (severe)
    wp-content/plugins/woocommerce-crm/assets/images/wooexim_logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Manage You Customers), #2 (Customer Details), #3 (Customer Account Management), #4 (Create Task), #5 (Schedule Call)
  • Donate link: Please fix this invalid URI: ""
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt might help

woo-crm/woocommerce-crm.php 77% from 13 tests

"WooCommerce CRM" version 1.0.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-crm.php" instead of "woocommerce-crm.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin823 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP415348620
CSS1360180
JavaScript291223

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/wooexim_logo.png1.68KB0.76KB▼ 54.65%