83% import-products-to-wc

Code Review | Amazon Products to WooCommerce

WordPress plugin Amazon Products to WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: import-products-t...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2023
  • Latest release: Oct 11, 2023
  • Number of updates: 11
  • Update frequency: every 19.6 days
  • Top authors: suhailahmad64 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /3,928 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.58MB] [CPU: ▼20.24ms] Passed 4 tests

This is a short check of server-side resources used by Amazon Products to WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.13 ▼2.55
Dashboard /wp-admin3.40 ▲0.0945.17 ▼6.40
Posts /wp-admin/edit.php3.45 ▲0.0947.55 ▲1.94
Add New Post /wp-admin/post-new.php3.28 ▼2.6135.32 ▼71.52
Media Library /wp-admin/upload.php3.33 ▲0.0934.79 ▼0.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Amazon Products to WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.62 ▲0.341.59 ▼0.1237.01 ▼7.79
Dashboard /wp-admin2,213 ▲365.65 ▲0.0779.10 ▼5.7384.75 ▲49.04
Posts /wp-admin/edit.php2,118 ▲181.98 ▲0.0237.20 ▼6.3531.56 ▼4.58
Add New Post /wp-admin/post-new.php1,554 ▲1923.02 ▲4.78756.62 ▲123.4864.52 ▼6.87
Media Library /wp-admin/upload.php1,418 ▲154.20 ▼0.0095.07 ▼4.5770.42 ▲27.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/import-products-to-wc/index.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-products-to-wc/inc/functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-products-to-wc/inc/single-ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-products-to-wc/inc/urls-ajax.php:3

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 errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (wc-importer.gif)
The official readme.txt might help

import-products-to-wc/index.php 77% from 13 tests

The principal PHP file in "Amazon Products to WooCommerce" v. 1.0.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("import-products-to-wc.php" instead of "index.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("https://importwoocommerce.com")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected526 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5411170526

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.52KB0.53KB0.00%