83% woo-retailcrm

Code Review | Woocommerce Simla.com

WordPress plugin Woocommerce Simla.com scored83%from 54 tests.

About plugin

  • Plugin page: woo-retailcrm
  • Plugin version: 4.6.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Nov 20, 2023
  • Number of updates: 124
  • Update frequency: every 18.2 days
  • Top authors: retailcrm (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /26,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.88ms] Passed 4 tests

Server-side resources used by Woocommerce Simla.com
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.35 ▼5.76
Dashboard /wp-admin3.36 ▲0.0646.02 ▼2.84
Posts /wp-admin/edit.php3.48 ▲0.1146.26 ▼0.22
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.07 ▲1.69
Media Library /wp-admin/upload.php3.28 ▲0.0534.83 ▲1.31

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce Simla.com
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲6314.53 ▼0.231.56 ▼0.1637.08 ▼6.83
Dashboard /wp-admin2,207 ▲265.61 ▼0.1392.85 ▼16.5142.63 ▲3.23
Posts /wp-admin/edit.php2,110 ▲71.94 ▲0.0041.74 ▲6.7738.07 ▲7.61
Add New Post /wp-admin/post-new.php1,535 ▲423.50 ▲0.70712.79 ▲73.7451.82 ▲6.83
Media Library /wp-admin/upload.php1,406 ▲64.27 ▲0.1096.15 ▼2.8441.87 ▼1.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_Retailcrm' not found in wp-content/plugins/woo-retailcrm/include/api/class-wc-retailcrm-client-v5.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Retailcrm_Abstracts_Address' not found in wp-content/plugins/woo-retailcrm/include/order/class-wc-retailcrm-order-address.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Retailcrm_Abstracts_Data' not found in wp-content/plugins/woo-retailcrm/include/order/class-wc-retailcrm-order-payment.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Retailcrm_Url_Constraint' not found in wp-content/plugins/woo-retailcrm/include/validators/url-validator/class-wc-retailcrm-url-validator.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Retailcrm_Abstract_Builder' not found in wp-content/plugins/woo-retailcrm/include/customer/woocommerce/class-wc-retailcrm-wc-customer-builder.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_Retailcrm' not found in wp-content/plugins/woo-retailcrm/include/api/class-wc-retailcrm-request.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'WC_Retailcrm_Builder_Interface' not found in wp-content/plugins/woo-retailcrm/include/abstracts/class-wc-retailcrm-abstract-builder.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Retailcrm_Abstracts_Data' not found in wp-content/plugins/woo-retailcrm/include/order/class-wc-retailcrm-order-item.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_Retailcrm' not found in wp-content/plugins/woo-retailcrm/include/api/class-wc-retailcrm-response.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Retailcrm_Abstracts_Data' not found in wp-content/plugins/woo-retailcrm/include/abstracts/class-wc-retailcrm-abstracts-address.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: simlacom, simla

woo-retailcrm/retailcrm.php 77% from 13 tests

The principal PHP file in "Woocommerce Simla.com" v. 4.6.14 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-retailcrm.php" instead of "retailcrm.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "5.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,318 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,7143,6577,609
JavaScript31215471
CSS8140123
XML190115

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity31.26
▷ Minimum class complexity1.00
▷ Maximum class complexity247.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes38
▷ Abstract classes410.53%
▷ Concrete classes3489.47%
▷ Final classes00.00%
Methods420
▷ Static methods389.05%
▷ Public methods30973.57%
▷ Protected methods337.86%
▷ Private methods7818.57%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants15
▷ Global constants00.00%
▷ Class constants15100.00%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin