79% ebay-feeds-for-wordpress

Code Review | WP eBay Product Feeds

WordPress plugin WP eBay Product Feeds scored79%from 54 tests.

About plugin

  • Plugin page: ebay-feeds-for-wo...
  • Plugin version: 3.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 15, 2011
  • Latest release: Oct 26, 2023
  • Number of updates: 98
  • Update frequency: every 45.2 days
  • Top authors: rhyswynne (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /89,897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.84ms] Passed 4 tests

Analyzing server-side resources used by WP eBay Product Feeds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1735.58 ▼1.97
Dashboard /wp-admin3.47 ▲0.1646.90 ▲0.39
Posts /wp-admin/edit.php3.58 ▲0.2347.37 ▲2.18
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.12 ▼3.95
Media Library /wp-admin/upload.php3.40 ▲0.1738.48 ▲5.67
WP eBay Product Feeds /wp-admin/options-general.php?page=ebayfeedforwordpressoptions3.4342.33

Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 12 new options
New WordPress options
ebay-feeds-for-wordpress-default
can_compress_scripts
theysaidso_admin_options
widget_ebay_feeds_for_wordpress_widget
ebay-feeds-for-wordpress-link
ebay-feed-for-wordpress-flush-cache
ebay-feeds-for-wordpress-default-number
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

WP eBay Product Feeds: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.44 ▼0.101.65 ▲0.0544.29 ▼2.31
Dashboard /wp-admin2,203 ▲325.61 ▼0.0484.43 ▼5.0241.77 ▲3.64
Posts /wp-admin/edit.php2,108 ▲82.17 ▲0.1540.17 ▲2.3636.03 ▲2.14
Add New Post /wp-admin/post-new.php6,369 ▲4,84127.49 ▲4.47871.22 ▲200.4538.04 ▼19.78
Media Library /wp-admin/upload.php1,408 ▲54.24 ▲0.04103.89 ▲4.7646.02 ▼0.52
WP eBay Product Feeds /wp-admin/options-general.php?page=ebayfeedforwordpressoptions2,16410.00246.16162.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 12 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_ebay_feeds_for_wordpress_widget
    • widget_recent-posts
    • ebay-feeds-for-wordpress-default-number
    • ebay-feeds-for-wordpress-link
    • ebay-feeds-for-wordpress-default
    • ebay-feed-for-wordpress-flush-cache
    • ebay-feeds-for-wordpress-link-open-blank
    • theysaidso_admin_options
    • ...

Smoke tests 50% 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
Almost there! Just fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(EBAYFEEDSFORWORDPRESS_PLUGIN_PATH/inc/admin.php): failed to open stream: No such file or directory in wp-content/plugins/ebay-feeds-for-wordpress/inc/core.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ebay-feeds-for-wordpress/inc/functions.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ebay-feeds-for-wordpress/ebay-feeds-for-wordpress.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ebay-feeds-for-wordpress/inc/upgrade.php:40
    • > PHP Warning
      Use of undefined constant EBAYFEEDSFORWORDPRESS_PLUGIN_PATH - assumed 'EBAYFEEDSFORWORDPRESS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ebay-feeds-for-wordpress/inc/core.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ebay-feeds-for-wordpress/inc/notices.php:31
    • > PHP Fatal error
      require_once(): Failed opening required 'EBAYFEEDSFORWORDPRESS_PLUGIN_PATH/inc/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/ebay-feeds-for-wordpress/inc/core.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=ebayfeedforwordpressoptions
    • > Javascript (severe) in unknown
    https://button.buffer.com/button/?id=6220e87b3a06e7e5&url=https%3A%2F%2Fwinwar.co.uk%2Fplugins%2Febay-feeds-wordpress%2F&text=Just%20been%20using%20WP%20eBay%20Product%20Feeds%20%23WordPress%20plugin&via=rhyswynne&count=horizontal&placement=button&utm_source=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Debayfeedforwordpressoptions&utm_medium=buffer_button&utm_campaign=buffer 15:647 Uncaught TypeError: Cannot set properties of null (setting 'onclick')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: ebay partner feeds, ebay, ebay partner network, block, affiliate marketing...

ebay-feeds-for-wordpress/ebay-feeds-for-wordpress.php Passed 13 tests

The main PHP file in "WP eBay Product Feeds" ver. 3.4.3 adds more information about the plugin and also serves as the entry point for this plugin
107 characters long description:
Former eBay Feeds for WordPress. Parser of ebay RSS feeds to display on WordPress posts, widgets and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,237 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP12327190663
JavaScript43548192
Markdown1540151
CSS1182121
PO File1293691
JSON10019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ebay.png0.64KB0.51KB▼ 20.43%
banner-772x250.png210.21KB55.20KB▼ 73.74%