10% product-lister-ebay

Code Review | Product Lister for eBay

WordPress plugin Product Lister for eBay scored 10% from 54 tests.

About plugin

  • Plugin page: product-lister-ebay
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8.1
  • WordPress version: 5.8.1
  • First release: Apr 24, 2017
  • Latest release: Nov 24, 2021
  • Number of updates: 54
  • Update frequency: every 31.5 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

40+ active / 3,140 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > User error in wp-content/plugins/product-lister-ebay/product-lister-ebay.php+48

Server metrics [RAM: ▲0.04MB] [CPU: ▼144.60ms] Passed 4 tests

Server-side resources used by Product Lister for eBay
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0427.79 ▲2.20
Dashboard /wp-admin3.10 ▲0.0438.86 ▼0.56
Posts /wp-admin/edit.php3.21 ▲0.1031.05 ▼1.87
Add New Post /wp-admin/post-new.php5.46 ▲0.0272.19 ▼576.83
Media Library /wp-admin/upload.php3.04 ▲0.0426.54 ▲0.86

Server storage [IO: ▲6.56MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 151 new files
Database: 5 new tables, no new options
New tables

Browser metrics Passed 4 tests

Product Lister for eBay: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,753 ▲12716.69 ▲0.665.93 ▲0.5479.67 ▲6.87
Dashboard /wp-admin2,947 ▲517.00 ▲0.84114.93 ▼18.57146.86 ▼29.91
Posts /wp-admin/edit.php2,760 ▲173.24 ▲0.0265.67 ▲1.49138.36 ▼0.62
Add New Post /wp-admin/post-new.php3,826 ▲1819.47 ▲0.42466.72 ▲22.71175.76 ▲16.90
Media Library /wp-admin/upload.php1,766 ▲146.00 ▲0.50120.15 ▼31.47161.61 ▼22.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_ced_ebay_shipping
    • wp_ced_ebay_accounts
    • wp_ced_ebay_discription_template
    • wp_ced_ebay_logs
    • wp_ced_ebay_profiles

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-lister-ebay/product-lister-ebay.php on line 40
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/product-lister-ebay/product-lister-ebay.php on line 40
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-lister-ebay/product-lister-ebay.php on line 40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

product-lister-ebay/product-lister-ebay.php 92% from 13 tests

The main PHP script in "Product Lister for eBay" version 2.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin124,276 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PO File1316364715

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 178)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity40.43
▷ Minimum class complexity1.00
▷ Maximum class complexity366.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity178.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
▷ Static methods145.20%
▷ Public methods26397.77%
▷ Protected methods20.74%
▷ Private methods41.49%
▷ Named functions1593.75%
▷ Anonymous functions16.25%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/icon-100X100.png0.97KB0.57KB▼ 41.07%
admin/images/icon.png9.15KB0.80KB▼ 91.21%
admin/images/cross.png0.51KB0.38KB▼ 24.76%