10% dropshipping-with-ebay-for-woocommerce

Code Review | Dropshipping with eBay for WooCommerce (Lite)

WordPress plugin Dropshipping with eBay for WooCommerce (Lite) scored10%from 54 tests.

About plugin

  • Plugin page: dropshipping-with...
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 15, 2021
  • Latest release: Jul 7, 2022
  • Number of updates: 8
  • Update frequency: every 25.7 days
  • Top authors: ali2woo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /994 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/class-requests.php+24
    The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.44ms] Passed 4 tests

An overview of server-side resources used by Dropshipping with eBay for WooCommerce (Lite)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.88 ▼2.02
Dashboard /wp-admin3.31 ▼0.0447.61 ▼19.52
Posts /wp-admin/edit.php3.36 ▲0.0050.37 ▼2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.07 ▼17.98
Media Library /wp-admin/upload.php3.23 ▲0.0036.57 ▼1.65

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 232 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
e2wl_settings
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Dropshipping with eBay for WooCommerce (Lite)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.351.85 ▲0.0238.65 ▼7.42
Dashboard /wp-admin2,198 ▲215.55 ▼0.1391.48 ▼12.8740.75 ▼3.86
Posts /wp-admin/edit.php2,097 ▼32.04 ▼0.0136.71 ▲1.9637.81 ▼0.15
Add New Post /wp-admin/post-new.php1,545 ▲423.32 ▲4.78658.28 ▼2.9253.00 ▼12.01
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.05103.70 ▲3.6645.06 ▼1.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • e2wl_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dropshipping-with-ebay-for-woocommerce/view/settings/settings_footer.php
    • > /wp-content/plugins/dropshipping-with-ebay-for-woocommerce/view/settings/settings_head.php
  • 72× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/includes/libs/Requests/Requests/Exception/HTTP/Unknown.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _ex() in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/view/settings/phrase_filter.php:4
    • > PHP Notice
      Undefined variable: modules in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/view/settings/settings_head.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/includes/libs/Requests/Requests/Exception/HTTP/417.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'E2WL_AbstractController' not found in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/includes/classes/E2WL_AbstractAdminPage.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'E2WL_AbstractController' not found in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/includes/classes/controller/E2WL_SynchProductController.php:12
    • > PHP Notice
      Trying to get property 'custom_account' of non-object in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/view/settings/account.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/includes/libs/Requests/Requests/Exception/HTTP/404.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/includes/libs/Requests/Requests/Exception/HTTP/415.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/dropshipping-with-ebay-for-woocommerce/includes/libs/Requests/Requests/Exception/HTTP/406.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
9 plugin tags: dropship, order fulfillment, affiliate, dropshipping, dropshipper...

dropshipping-with-ebay-for-woocommerce/ebay2woo-lite.php 85% from 13 tests

The entry point to "Dropshipping with eBay for WooCommerce (Lite)" version 1.2.7 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dropshipping-with-ebay-for-woocommerce.php" instead of "ebay2woo-lite.php")

Code Analysis 97% 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
Everything looks great! No dangerous files found in this plugin36,003 lines of code in 197 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript623,46691313,254
PHP1132,4493,72611,757
CSS1577920510,350
SVG56211640
JSON2002

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 121)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity22.18
▷ Minimum class complexity1.00
▷ Maximum class complexity310.00
Average method complexity5.29
▷ Minimum method complexity1.00
▷ Maximum method complexity121.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes92
▷ Abstract classes22.17%
▷ Concrete classes9097.83%
▷ Final classes00.00%
Methods481
▷ Static methods10020.79%
▷ Public methods38379.63%
▷ Protected methods4910.19%
▷ Private methods4910.19%
Functions20
▷ Named functions1890.00%
▷ Anonymous functions210.00%
Constants26
▷ Global constants00.00%
▷ Class constants26100.00%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/review/fancybox/fancybox_overlay.png0.98KB0.09KB▼ 90.43%
assets/img/delete.png0.59KB0.54KB▼ 7.33%
assets/img/noavatar.png2.32KB2.42KB0.00%
assets/img/blank_image.png0.83KB0.12KB▼ 85.98%
assets/img/icons/supplier_ali_2x.png15.45KB0.95KB▼ 93.84%