10% xml-shipping-importer-for-woocommerce

Code Review | XML Shipping Importer for WooCommerce

WordPress plugin XML Shipping Importer for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: xml-shipping-impo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 5.8.1
  • First release: May 7, 2014
  • Latest release: May 7, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: arippberger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,774 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/xml-shipping-importer-for-woocommerce/woocommerce-xml-shipping-importer.php+29
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.84MB] [CPU: ▼185.99ms] Passed 4 tests

Analyzing server-side resources used by XML Shipping Importer for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.935.53 ▼16.58
Dashboard /wp-admin1.81 ▼1.246.16 ▼37.40
Posts /wp-admin/edit.php1.81 ▼1.305.94 ▼34.16
Add New Post /wp-admin/post-new.php1.81 ▼3.626.86 ▼648.31
Media Library /wp-admin/upload.php1.81 ▼1.195.29 ▼24.10
XML Shipping Import /wp-admin/options-general.php?page=xml-shipping-import-setting-admin1.816.49

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

XML Shipping Importer for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.90 ▲0.298.71 ▲0.5146.59 ▼0.70
Dashboard /wp-admin2,978 ▲415.93 ▼0.02139.04 ▼4.89111.45 ▼1.18
Posts /wp-admin/edit.php2,741 ▲52.69 ▼0.0063.94 ▲0.8892.41 ▼0.24
Add New Post /wp-admin/post-new.php1,679 ▲18118.89 ▲0.10361.63 ▼15.50106.66 ▼3.98
Media Library /wp-admin/upload.php1,815 ▲85.02 ▼0.02144.98 ▼12.98112.02 ▼7.34
XML Shipping Import /wp-admin/options-general.php?page=xml-shipping-import-setting-admin1,1182.0956.1790.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/xml-shipping-importer-for-woocommerce/woocommerce-xml-shipping-importer.php+29
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=xml-shipping-import-setting-admin
    • > Notice in wp-content/plugins/xml-shipping-importer-for-woocommerce/class-xml-shipping-importer-options.php+245
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/xml-shipping-importer-for-woocommerce/woocommerce-xml-shipping-importer.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% 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:
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.png - this screenshot depicts the setting screen where you will enter your FTP credentials), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

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

The main file in "XML Shipping Importer for WooCommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xml-shipping-importer-for-woocommerce.php" instead of "woocommerce-xml-shipping-importer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected344 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.50
▷ Minimum class complexity17.00
▷ Maximum class complexity20.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png89.05KB29.62KB▼ 66.74%