84% minicrm-woocommerce-sync

Code Review | MiniCRM WooCommerce Sync

WordPress plugin MiniCRM WooCommerce Sync scored84%from 54 tests.

About plugin

  • Plugin page: minicrm-woocommer...
  • Plugin version: 1.5.26
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2018
  • Latest release: Nov 2, 2023
  • Number of updates: 60
  • Update frequency: every 30.5 days
  • Top authors: minicrmio (96.67%)szsolt94 (5%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,552 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.00MB] [CPU: ▼1.26ms] Passed 4 tests

An overview of server-side resources used by MiniCRM WooCommerce Sync
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.16 ▼1.41
Dashboard /wp-admin3.31 ▲0.0044.78 ▼3.01
Posts /wp-admin/edit.php3.36 ▲0.0046.27 ▲1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.19 ▲13.62
Media Library /wp-admin/upload.php3.23 ▲0.0032.22 ▼2.11

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for MiniCRM WooCommerce Sync
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.011.76 ▲0.0244.66 ▲2.55
Dashboard /wp-admin2,198 ▲215.63 ▲0.1083.29 ▼3.0336.76 ▼5.34
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0134.87 ▼1.2533.47 ▼3.34
Add New Post /wp-admin/post-new.php1,526 ▼1123.28 ▲4.87673.45 ▲68.6864.28 ▲5.30
Media Library /wp-admin/upload.php1,403 ▼04.26 ▲0.11108.90 ▲5.0445.49 ▼0.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/minicrm-woocommerce-sync/includes/settings-sync.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were detected

minicrm-woocommerce-sync/minicrm-woocommerce-sync.php Passed 13 tests

The principal PHP file in "MiniCRM WooCommerce Sync" v. 1.5.26 is loaded by WordPress automatically on each request
45 characters long description:
Provides XML feed for MiniCRM webshop module.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,938 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP123384753,559
PO File14444234
JavaScript11735106
CSS18032
HTML1007

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity28.33
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods48
▷ Static methods3879.17%
▷ Public methods2450.00%
▷ Protected methods2450.00%
▷ Private methods00.00%
Functions22
▷ Named functions14.55%
▷ Anonymous functions2195.45%
Constants17
▷ Global constants00.00%
▷ Class constants17100.00%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin