78% wp-lister-for-ebay

Code Review | WP-Lister Lite for eBay

WordPress plugin WP-Lister Lite for eBay scored78%from 54 tests.

About plugin

  • Plugin page: wp-lister-for-ebay
  • Plugin version: 3.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 19, 2012
  • Latest release: Oct 19, 2023
  • Number of updates: 161
  • Update frequency: every 25.1 days
  • Top authors: wp-lab (100%)

Code review

54 tests

User reviews

65 reviews

Install metrics

3,000+ active /326,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲3.05MB] [CPU: ▲12.98ms] Passed 4 tests

Server-side resources used by WP-Lister Lite for eBay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.32 ▲1.8644.97 ▲2.10
Dashboard /wp-admin6.77 ▲3.4267.76 ▲12.17
Posts /wp-admin/edit.php6.83 ▲3.4674.33 ▲26.81
Add New Post /wp-admin/post-new.php9.85 ▲3.96116.80 ▲10.82
Media Library /wp-admin/upload.php6.69 ▲3.4664.19 ▲30.16

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2,079 new files
Database: no new tables, 23 new options
New WordPress options
can_compress_scripts
wplister_setup_next_step
wplister_log_to_db
wplister_is_network_activated
wplister_ebay_site_id
wplister_db_version
theysaidso_admin_options
wplister_paypal_email
wplister_wc2_gallery_fallback
wple_announcements
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Lister Lite for eBay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲22114.39 ▼0.261.82 ▼0.2742.30 ▼0.66
Dashboard /wp-admin2,301 ▲1215.62 ▼0.0297.91 ▲11.7271.20 ▲26.76
Posts /wp-admin/edit.php2,217 ▲1172.06 ▲0.0541.62 ▲5.1438.00 ▲2.93
Add New Post /wp-admin/post-new.php1,651 ▲12223.44 ▲0.39733.85 ▲146.6535.28 ▼21.57
Media Library /wp-admin/upload.php1,520 ▲1204.22 ▲0.0595.12 ▼0.4882.05 ▲39.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 23 options in the database
    • wplister_cron_auctions
    • wplister_ebay_site_id
    • theysaidso_admin_options
    • can_compress_scripts
    • wplister_db_version
    • wplister_uninstall
    • wple_announcements
    • widget_recent-comments
    • wplister_setup_next_step
    • wplister_log_level
    • ...

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
Almost there! Just fix the following items
  • 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-lister-for-ebay/views/template/gallery_slider.php
    • > /wp-content/plugins/wp-lister-for-ebay/templates/default/header.php
    • > /wp-content/plugins/wp-lister-for-ebay/views/template/gallery.php
    • > /wp-content/plugins/wp-lister-for-ebay/views/transaction_details.php
    • > /wp-content/plugins/wp-lister-for-ebay/templates/default-with-gallery/header.php
    • > /wp-content/plugins/wp-lister-for-ebay/views/grid_page.php
    • > /wp-content/plugins/wp-lister-for-ebay/templates/default/gallery.php
    • > /wp-content/plugins/wp-lister-for-ebay/views/message_details.php
    • > /wp-content/plugins/wp-lister-for-ebay/views/template/thumbnails_nojs.php
    • > /wp-content/plugins/wp-lister-for-ebay/views/invoice_template.php
  • 451× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: wpl_ebay_order in wp-content/plugins/wp-lister-for-ebay/views/order_details.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/test/Model/CategorySuggestionTest.php:40
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wp-lister-for-ebay/templates/default/gallery_slider.php on line 3
    • > PHP Fatal error
      Uncaught Error: Interface 'Swagger\\Client\\Model\\ModelInterface' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/lib/Model/GetCategoriesAspectResponse.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/test/Model/ReturnPolicyDetailsTest.php:40
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-lister-for-ebay/classes/table/TransactionsTable.php on line 9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/vendor/psr/http-message/src/ServerRequestInterface.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/test/Model/ReturnPolicyResponseTest.php:40
    • > PHP Notice
      Undefined variable: images in wp-content/plugins/wp-lister-for-ebay/views/template/thumbnails_nojs.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: products, woocommerce, ebay, export

wp-lister-for-ebay/wp-lister.php 85% from 13 tests

The main PHP file in "WP-Lister Lite for eBay" ver. 3.5.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-lister-for-ebay.php" instead of "wp-lister.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.2" instead of "6.0.0")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected360,421 lines of code in 1,964 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,74836,46287,269198,940
JavaScript9723,12517,974113,475
PO File1215,46637,47437,418
Markdown621,68504,899
CSS152651832,792
HTML715801,137
JSON11001,095
Sass190465
YAML620398
Bourne Shell114838
Vuejs Component12025
XML11020
Dockerfile18010
make1409

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.01
▷ Minimum class complexity1.00
▷ Maximum class complexity604.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces20
Interfaces20
Traits2
Classes1,646
▷ Abstract classes00.00%
▷ Concrete classes1,646100.00%
▷ Final classes281.70%
Methods13,936
▷ Static methods7265.21%
▷ Public methods13,64097.88%
▷ Protected methods680.49%
▷ Private methods2281.64%
Functions306
▷ Named functions11136.27%
▷ Anonymous functions19563.73%
Constants4,406
▷ Global constants1192.70%
▷ Class constants4,28797.30%
▷ Public constants4,287100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
67 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/jqueryFileTree/images/application.png0.45KB0.52KB0.00%
css/smoothness/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
css/smoothness/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%