84% omnicommerce-connector-for-woocommerce

Code Review | Omnicommerce connector for WooCommerce

WordPress plugin Omnicommerce connector for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: omnicommerce-conn...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 2, 2022
  • Latest release: Jan 25, 2023
  • Number of updates: 5
  • Update frequency: every 47.4 days
  • Top authors: omnicommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /533 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.68MB] [CPU: ▼22.92ms] Passed 4 tests

Analyzing server-side resources used by Omnicommerce connector for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.15 ▼12.61
Dashboard /wp-admin3.32 ▼0.0248.92 ▼16.01
Posts /wp-admin/edit.php3.37 ▲0.0251.65 ▲2.76
Add New Post /wp-admin/post-new.php3.14 ▼2.7540.64 ▼55.13
Media Library /wp-admin/upload.php3.25 ▲0.0240.49 ▼7.93

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

A short overview of filesystem and database impact
Please fix the following
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/omnicommerce-connector-for-woocommerce/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Omnicommerce connector for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.36 ▼1.025.66 ▲3.9139.78 ▼4.42
Dashboard /wp-admin2,221 ▲244.88 ▼0.99111.46 ▲5.6343.76 ▲3.49
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0140.37 ▼1.1135.65 ▼3.85
Add New Post /wp-admin/post-new.php1,531 ▼223.48 ▲0.12663.84 ▼25.1955.78 ▼4.08
Media Library /wp-admin/upload.php1,403 ▲64.23 ▲0.0699.66 ▼7.0842.40 ▼4.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omnicommerce-connector-for-woocommerce/omnicommerce-connector-for-woocommerce.php:102

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

omnicommerce-connector-for-woocommerce/omnicommerce-connector-for-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "Omnicommerce connector for WooCommerce" version 1.2
74 characters long description:
Facilita la consulta rápida de SKUs, stocks y precios desde Omnicommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101788

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin