84% import-holded-products-woocommerce

Code Review | Connect WooCommerce Holded

WordPress plugin Connect WooCommerce Holded scored84%from 54 tests.

About plugin

  • Plugin page: import-holded-pro...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2019
  • Latest release: Mar 10, 2023
  • Number of updates: 52
  • Update frequency: every 22.5 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,815 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▲1.26ms] Passed 4 tests

Server-side resources used by Connect WooCommerce Holded
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3444.32 ▲3.03
Dashboard /wp-admin3.65 ▲0.3545.34 ▼0.95
Posts /wp-admin/edit.php3.77 ▲0.4146.96 ▲1.21
Add New Post /wp-admin/post-new.php6.23 ▲0.3592.98 ▲1.76
Media Library /wp-admin/upload.php3.58 ▲0.3540.21 ▲4.59
Connect Holded /wp-admin/admin.php?page=import_holded3.5433.57

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
wcpimh_version
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Connect WooCommerce Holded
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.30 ▼1.081.78 ▲0.2242.87 ▲0.19
Dashboard /wp-admin2,225 ▲365.90 ▲0.95108.32 ▼0.3542.96 ▲3.01
Posts /wp-admin/edit.php2,107 ▲152.05 ▲0.0839.59 ▲4.9338.13 ▲7.53
Add New Post /wp-admin/post-new.php1,542 ▼023.18 ▲4.70654.30 ▼8.7555.97 ▼8.79
Media Library /wp-admin/upload.php1,401 ▲104.21 ▲0.0497.29 ▼0.9044.50 ▲2.00
Connect Holded /wp-admin/admin.php?page=import_holded7892.0325.4724.02

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • wcpimh_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/import-holded-products-woocommerce/includes/class-public.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 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
3 plugin tags: woocommerce, holded, connect woocommerce

import-holded-products-woocommerce/import-holded-products-woocommerce.php 92% from 13 tests

The main PHP script in "Connect WooCommerce Holded" version 2.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.0")

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
Success! There were no dangerous files found in this plugin2,067 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP72645351,771
PO File1152250267
CSS11029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity87.25
▷ Minimum class complexity19.00
▷ Maximum class complexity161.00
Average method complexity5.93
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods70
▷ Static methods11.43%
▷ Public methods6491.43%
▷ Protected methods11.43%
▷ Private methods57.14%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin