84% litcommerce

Code Review | LitCommerce: Multi-channel Selling Tool For WooCommerce

WordPress plugin LitCommerce: Multi-channel Selling Tool For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: litcommerce
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2021
  • Latest release: Dec 2, 2023
  • Number of updates: 31
  • Update frequency: every 27.9 days
  • Top authors: litexten (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

900+ active /7,600 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.09MB] [CPU: ▼3.98ms] Passed 4 tests

This is a short check of server-side resources used by LitCommerce: Multi-channel Selling Tool For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.37 ▲3.81
Dashboard /wp-admin3.40 ▲0.0646.74 ▼9.41
Posts /wp-admin/edit.php3.52 ▲0.1646.01 ▲0.84
Add New Post /wp-admin/post-new.php6.00 ▲0.1291.81 ▼9.45
Media Library /wp-admin/upload.php3.33 ▲0.1035.03 ▲2.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LitCommerce: Multi-channel Selling Tool For WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5214.67 ▲0.331.67 ▼0.3143.84 ▲5.56
Dashboard /wp-admin2,215 ▲405.61 ▼0.1287.74 ▼30.8838.30 ▼5.64
Posts /wp-admin/edit.php2,120 ▲201.98 ▼0.0340.80 ▲5.1532.59 ▼4.97
Add New Post /wp-admin/post-new.php1,543 ▲1723.62 ▲0.41640.02 ▼25.1752.86 ▼14.66
Media Library /wp-admin/upload.php1,423 ▲264.21 ▲0.0296.19 ▼2.3542.03 ▲2.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'LitCommerce_Automation' not found in wp-content/plugins/litcommerce/steps/EnableWooCommerceAPI.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'LitCommerce_Automation' not found in wp-content/plugins/litcommerce/steps/EnsureWooCommerceActive.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'LitCommerce_Automation' not found in wp-content/plugins/litcommerce/steps/PermalinkSettings.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'LitCommerce_Automation' not found in wp-content/plugins/litcommerce/steps/GenerateWooCommerceKeys.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/litcommerce/litcommerce.php:158
    • > PHP Fatal error
      Uncaught Error: Interface 'LitCommerce_Automation' not found in wp-content/plugins/litcommerce/steps/EnsureWooCommercePlugin.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'LitCommerce_Automation' not found in wp-content/plugins/litcommerce/steps/SendWooCommerceKeys.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
7 plugin tags: walmart, woocommerce, litcommerce, tiktok, etsy...

litcommerce/litcommerce.php Passed 13 tests

The principal PHP file in "LitCommerce: Multi-channel Selling Tool For WooCommerce" v. 1.0.8 is loaded by WordPress automatically on each request
67 characters long description:
Helps you easily integrate your WooCommerce store with LitCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin578 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP98931505
JavaScript114361
CSS13012

PHP code Passed 2 tests

This is a short overview 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.31
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin