56% exportfeed-for-woocommerce-product-to-etsy

Code Review | WooCommerce Etsy Integration

WordPress plugin WooCommerce Etsy Integration scored56%from 54 tests.

About plugin

  • Plugin page: exportfeed-for-wo...
  • Plugin version: 5.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2016
  • Latest release: Nov 24, 2023
  • Number of updates: 203
  • Update frequency: every 12.6 days
  • Top authors: PurpleTurtlePro (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

1,000+ active /82,861 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.64MB] [CPU: ▲8.92ms] Passed 4 tests

A check of server-side resources used by WooCommerce Etsy Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7751.52 ▲10.46
Dashboard /wp-admin3.96 ▲0.6658.11 ▲5.24
Posts /wp-admin/edit.php4.02 ▲0.6659.49 ▲14.38
Add New Post /wp-admin/post-new.php6.48 ▲0.60108.88 ▲10.59
Media Library /wp-admin/upload.php3.89 ▲0.6647.21 ▲9.39
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.2347.98

Server storage [IO: ▲7.74MB] [DB: ▲0.27MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 449 new files
Database: 17 new tables, 25 new options
New tables
wp_etcpf_etsy_configuration
wp_etcpf_listings
wp_etcpf_categories
wp_etcpf_orders
wp_etcpf_etsy_sync
wp_etcpf_feeds
wp_etcpf_category_mappings
wp_etcpf_resolved_product_data
wp_etcpf_custom_feed_products
wp_etcpf_settings
...
New WordPress options
etsy_order_offset
etcpf_current_db_version
etcpf_woo_etsy_connector_url
fs_debug_mode
listing_etsy_et
widget_recent-posts
theysaidso_admin_options
et_cp_feed_count
et_cpf_feed_order_reverse
can_compress_scripts
...

Browser metrics Passed 4 tests

WooCommerce Etsy Integration: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6014.34 ▲0.061.74 ▲0.0231.99 ▼14.08
Dashboard /wp-admin2,218 ▲385.52 ▼0.1485.19 ▼12.8571.15 ▲24.07
Posts /wp-admin/edit.php2,133 ▲331.97 ▲0.0039.79 ▲0.6238.60 ▲0.14
Add New Post /wp-admin/post-new.php1,548 ▲2223.19 ▲0.11738.41 ▲38.8454.37 ▲3.34
Media Library /wp-admin/upload.php1,429 ▲324.18 ▲0.06100.77 ▼26.2973.55 ▲21.53
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0841.8026.6125.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 17 tables
    • wp_etcpf_feedproducts
    • wp_etcpf_variationupload_preparation
    • wp_etcpf_etsy_product_count
    • wp_etcpf_listings
    • wp_etcpf_feeds
    • wp_etcpf_image_links
    • wp_etcpf_etsy_configuration
    • wp_etcpf_custom_feed_products
    • wp_etcpf_category_mappings
    • wp_etcpf_profiles
    • ...
  • This plugin does not fully uninstall, leaving 25 options in the database
    • etcpf_current_db_version
    • fs_debug_mode
    • fs_accounts
    • widget_recent-comments
    • etsy_free_plan_product_upload_limit
    • theysaidso_admin_options
    • et_cp_feed_count
    • etcpf_license_message
    • etcpf_db_upgrade_available
    • listing_etsy_et
    • ...

Smoke tests 50% 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 0% 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
Please take a closer look at the following
  • 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/manuals.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/custom-views/custom_etsy_categories.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/variation-view-page.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/ajax/wp/profileValidation.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/EB_Controller.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/ajax/wp/etsy-order-fetch.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/ajax/wp/etsy-settings.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/etsy-listing-report.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/etsy_cat_tree.php
    • > /wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/etsy_categories.php
  • 47× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: cpf_categories in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/etsy_cat_tree.php on line 46
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/account-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/profiling/profiling.php:2
    • > PHP Notice
      Undefined variable: status in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/variation-view-page.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/listing_progress_view.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/classes/upload_cron.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/settings/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/shipping_form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/exportfeed-for-woocommerce-product-to-etsy/core/etsy-views/profiling/edit.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (On-boarding Stage), #2 (Click on Connect to Authenticate to provide app permissions), #3 (Click on Allow Permissions on the Etsy permissions page), #4 (Create new shipping or select your existing shipping rules pulled from Etsy), #5 (Select your WooCommerce category & corresponding Etsy category. Then give name for feed file.), #6 (Go to Manage Feed and hover over the feed to click on the Upload link)
  • Requires php: Version not formatted correctly
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
You can look at the official readme.txt

exportfeed-for-woocommerce-product-to-etsy/exportfeed-for-etsy-product-feed.php 85% from 13 tests

Analyzing the main PHP file in "WooCommerce Etsy Integration" version 5.4.5
It is important 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("exportfeed-for-woocommerce-product-to-etsy.php" instead of "exportfeed-for-etsy-product-feed.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin98,998 lines of code in 348 files:
LanguageFilesBlank linesComment linesLines of code
PHP26711,67419,85859,695
JavaScript364,97414,60021,363
CSS4065352014,192
SQL112223,197
SVG100243
Markdown1680214
JSON20094

PHP code 0% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 112)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity41.06
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity112.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes187
▷ Abstract classes42.14%
▷ Concrete classes18397.86%
▷ Final classes00.00%
Methods2,058
▷ Static methods23911.61%
▷ Public methods1,59077.26%
▷ Protected methods351.70%
▷ Private methods43321.04%
Functions179
▷ Named functions17497.21%
▷ Anonymous functions52.79%
Constants180
▷ Global constants12368.33%
▷ Class constants5731.67%
▷ Public constants57100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
35 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/exf-sm-logo.png3.42KB2.30KB▼ 32.85%
images/info.png1.24KB0.32KB▼ 74.25%
images/etsy.png3.91KB2.02KB▼ 48.43%
images/up.png3.11KB0.35KB▼ 88.64%
js/DataTables/DataTables-1.10.16/images/sort_asc_disabled.png0.14KB0.25KB0.00%