78% dropshipping-xml-for-woocommerce

Code Review | Dropshipping XML for WooCommerce

WordPress plugin Dropshipping XML for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: dropshipping-xml-...
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 43
  • Update frequency: every 17.8 days
  • Top authors: wpdesk (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /16,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.59MB] [CPU: ▼0.38ms] Passed 4 tests

Server-side resources used by Dropshipping XML for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.6042.85 ▲2.42
Dashboard /wp-admin3.89 ▲0.5947.91 ▼0.13
Posts /wp-admin/edit.php3.94 ▲0.5945.69 ▼1.21
Add New Post /wp-admin/post-new.php6.47 ▲0.5990.61 ▼2.61
Media Library /wp-admin/upload.php3.82 ▲0.5937.64 ▲6.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 823 new files
Database: no new tables, 8 new options
New WordPress options
plugin_activation_dropshipping-xml-for-woocommerce/dropshipping-xml-for-woocommerce.php
theysaidso_admin_options
widget_recent-comments
wpdesk_requirements_plugins_data
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Dropshipping XML for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.27 ▼0.071.86 ▲0.1544.87 ▼2.59
Dashboard /wp-admin2,198 ▲215.48 ▼0.1289.54 ▼16.0940.07 ▼8.99
Posts /wp-admin/edit.php2,103 ▲61.94 ▼0.0638.79 ▲1.0036.21 ▲1.78
Add New Post /wp-admin/post-new.php1,529 ▲323.24 ▲0.13604.51 ▼61.1946.52 ▼10.50
Media Library /wp-admin/upload.php1,403 ▲124.17 ▼0.0397.81 ▼1.4341.95 ▼1.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • plugin_activation_dropshipping-xml-for-woocommerce/dropshipping-xml-for-woocommerce.php

Smoke tests 50% 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 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
The following issues need your attention
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/row_close.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/all.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/row_open.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Template/FormFields/form-end.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Template/FormFields/form-end-no-table.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-forms/templates/form-end.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Template/Import/ImportSelectorXML.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Template/Import/ImportSelectorCsvTable.php
    • > /wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Template/Footer.php
  • 542× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'DropshippingXmlFreeVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationStrategy' not found in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/Initialization/Simple/SimpleFreeStrategy.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'DropshippingXmlFreeVendor\\WPDesk\\Library\\DropshippingXmlCore\\Infrastructure\\Menu\\Abstraction\\AbstractMenu' not found in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Infrastructure/Menu/MainMenu.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'DropshippingXmlFreeVendor\\WPDesk\\Library\\DropshippingXmlCore\\Service\\Mapper\\Product\\Abstraction\\ProductMapperServiceInterface' not found in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Service/Mapper/Product/ProductImageMapperService.php:20
    • > PHP Notice
      Undefined variable: is_active in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ActivationForm/views/activation-form-content.php on line 30
    • > PHP Fatal error
      Uncaught Error: Interface 'DropshippingXmlFreeVendor\\WPDesk\\View\\Renderer\\Renderer' not found in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-view/src/Renderer/LoadTemplatePlugin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function output_render() on null in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Template/Settings/Settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function output_render() on null in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-forms/templates/input-number.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'DropshippingXmlFreeVendor\\WPDesk\\Library\\DropshippingXmlCore\\Infrastructure\\Service\\Listener\\Items\\Conditional\\Conditional' not found in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/src/Action/Process/Form/ImportOptionsFormProcessAction.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'DropshippingXmlFreeVendor\\WPDesk\\PluginBuilder\\Plugin\\SlimPlugin' not found in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'DropshippingXmlFreeVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/dropshipping-xml-for-woocommerce/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php:10

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce import products, dropshipping woocommerce, woocommerce dropshipping, dropshipping, import products

dropshipping-xml-for-woocommerce/dropshipping-xml-for-woocommerce.php 92% from 13 tests

The entry point to "Dropshipping XML for WooCommerce" version 1.5.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.2" instead of "5.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin40,926 lines of code in 784 files:
LanguageFilesBlank linesComment linesLines of code
PHP7241,97115,38235,987
JavaScript145721,0152,436
JSON24001,274
CSS18156651,159
SVG10026
Markdown25025
Sass15019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.79
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces166
Interfaces83
Traits14
Classes520
▷ Abstract classes214.04%
▷ Concrete classes49995.96%
▷ Final classes214.21%
Methods2,864
▷ Static methods1384.82%
▷ Public methods2,14975.03%
▷ Protected methods2438.48%
▷ Private methods47216.48%
Functions86
▷ Named functions1719.77%
▷ Anonymous functions6980.23%
Constants655
▷ Global constants10.15%
▷ Class constants65499.85%
▷ Public constants62795.87%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/assets/img/logo.png1.61KB0.75KB▼ 53.35%
vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/assets/img/mapper/title_mapper.png6.84KB2.38KB▼ 65.23%
vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/assets/img/mapper/sku_mapper.png12.02KB5.08KB▼ 57.75%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png2.36KB2.43KB0.00%
vendor_prefixed/wpdesk/woocommerce-dropshipping-xml-core/assets/img/mapper/group_mapper_parent.png9.32KB2.81KB▼ 69.90%