77% woo-product-feed-pro

Code Review | Product Feed PRO for WooCommerce

WordPress plugin Product Feed PRO for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: woo-product-feed-pro
  • Plugin version: 13.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Jun 21, 2017
  • Latest release: Nov 27, 2023
  • Number of updates: 2,436
  • Update frequency: every 1.0 days
  • Top authors: jorisverwater (100%)

Code review

54 tests

User reviews

958 reviews

Install metrics

90,000+ active /9,119,707 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: ▲1.85MB] [CPU: ▲6.59ms] Passed 4 tests

Server-side resources used by Product Feed PRO for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.26 ▲1.7951.67 ▲7.92
Dashboard /wp-admin5.28 ▲1.9355.31 ▼6.03
Posts /wp-admin/edit.php5.28 ▲1.9259.58 ▲11.25
Add New Post /wp-admin/post-new.php7.64 ▲1.75104.55 ▲13.20
Media Library /wp-admin/upload.php5.28 ▲2.0547.78 ▲15.84
Create feed /wp-admin/admin.php?page=woo-product-feed-pro/woocommerce-sea.php5.2841.78
Manage feeds /wp-admin/admin.php?page=woosea_manage_feed5.2942.76
Settings /wp-admin/admin.php?page=woosea_manage_settings5.2941.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 127 new files
Database: no new tables, 11 new options
New WordPress options
woosea_extra_attributes
db_upgraded
widget_recent-comments
recovery_mode_email_last_sent
can_compress_scripts
theysaidso_admin_options
woosea_first_activation
widget_theysaidso_widget
woosea_count_activation
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for Product Feed PRO for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲5013.63 ▼0.723.25 ▲1.3342.09 ▼1.29
Dashboard /wp-admin2,233 ▲565.97 ▲0.3097.46 ▲0.5595.19 ▲51.63
Posts /wp-admin/edit.php2,161 ▲642.39 ▲0.3639.90 ▲2.2135.20 ▲0.35
Add New Post /wp-admin/post-new.php1,572 ▲4223.92 ▲0.92696.98 ▲84.6432.86 ▼26.38
Media Library /wp-admin/upload.php1,447 ▲534.60 ▲0.4199.07 ▲1.1879.46 ▲38.76
Create feed /wp-admin/admin.php?page=woo-product-feed-pro/woocommerce-sea.php7171.126.6716.13
Manage feeds /wp-admin/admin.php?page=woosea_manage_feed7171.517.1020.03
Settings /wp-admin/admin.php?page=woosea_manage_settings7171.516.1620.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_recent-posts
    • db_upgraded
    • woosea_extra_attributes
    • woosea_count_activation
    • theysaidso_admin_options
    • widget_recent-comments
    • structured_data_fix
    • widget_theysaidso_widget
    • woosea_first_activation
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=woo-product-feed-pro/woocommerce-sea.php
    • > Error in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-generate-feed-step-0.php+2
    Uncaught Error: Call to undefined function get_woocommerce_currency() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-generate-feed-step-0.php:2
    Stack trace:
    #0 wp-includes/template.php(785): require_once()
    #1 wp-content/plugins/woo-product-feed-pro/woocommerce-sea.php(4532): load_template()
    #2 wp-includes/class-wp-hook.php(310): woosea_generate_pages()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 {main}
    thrown
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woosea_manage_feed
    • > Notice in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-manage-feed.php+7
    Undefined property: stdClass::$publish
    • > GET request to /wp-admin/admin.php?page=woosea_manage_feed
    • > Error in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-manage-feed.php+23
    Uncaught Error: Call to undefined function WC() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-manage-feed.php:23
    Stack trace:
    #0 wp-content/plugins/woo-product-feed-pro/classes/class-admin-pages-template.php(18): require()
    #1 wp-content/plugins/woo-product-feed-pro/woocommerce-sea.php(4919): Construct_Admin_Pages->set_page()
    #2 wp-includes/class-wp-hook.php(310): woosea_manage_feed()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=woosea_manage_settings
    • > Error in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-manage-settings.php+33
    Uncaught Error: Call to undefined function WC() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-manage-settings.php:33
    Stack trace:
    #0 wp-content/plugins/woo-product-feed-pro/classes/class-admin-pages-template.php(18): require()
    #1 wp-content/plugins/woo-product-feed-pro/woocommerce-sea.php(4928): Construct_Admin_Pages->set_page()
    #2 wp-includes/class-wp-hook.php(310): woosea_manage_settings()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 {main}
    thrown

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
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-upgrade-elite.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WooSEA_Get_Admin_Notifications' not found in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-gs-analytics.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-generate-feed-step-5.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_woocommerce_currency() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-generate-feed-step-0.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-generate-feed-step-4.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-generate-feed-step-7.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-feed-pro/pages/admin/old-woosea-generate-feed-step-7.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-manage-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-key.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-feed-pro/pages/admin/woosea-generate-feed-step-9.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

woo-product-feed-pro/woocommerce-sea.php 77% from 13 tests

The principal PHP file in "Product Feed PRO for WooCommerce" v. 13.1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 187 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-feed-pro.php" instead of "woocommerce-sea.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 95% from 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 plugin38,304 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
PHP922,0082,06129,299
JavaScript123141627,645
CSS31321061,360

PHP code 0% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,664)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 669)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity25.41
▷ Minimum class complexity1.00
▷ Maximum class complexity1,664.00
Average method complexity14.35
▷ Minimum method complexity1.00
▷ Maximum method complexity669.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes75
▷ Abstract classes00.00%
▷ Concrete classes75100.00%
▷ Final classes00.00%
Methods139
▷ Static methods7553.96%
▷ Public methods12690.65%
▷ Protected methods10.72%
▷ Private methods128.63%
Functions101
▷ Named functions9695.05%
▷ Anonymous functions54.95%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
images/icon-16x16.png1.73KB0.60KB▼ 65.44%
images/ui-icons_555555_256x240.png6.84KB4.18KB▼ 38.84%
images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%