74% webtoffee-product-feed

Code Review | Product Feed for WooCommerce - Google Shops, Facebook Shop, TikTok, Instagram, and More

WordPress plugin Product Feed for WooCommerce - Google Shops, Facebook Shop, TikTok, Instagram, and More scored74%from 54 tests.

About plugin

  • Plugin page: webtoffee-product...
  • Plugin version: 2.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Nov 29, 2023
  • Number of updates: 48
  • Update frequency: every 23.1 days
  • Top authors: webtoffee (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /21,890 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼0.43ms] Passed 4 tests

A check of server-side resources used by Product Feed for WooCommerce - Google Shops, Facebook Shop, TikTok, Instagram, and More
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2738.29 ▼3.19
Dashboard /wp-admin3.56 ▲0.2549.51 ▼4.84
Posts /wp-admin/edit.php3.61 ▲0.2553.99 ▲7.88
Add New Post /wp-admin/post-new.php6.08 ▲0.1997.32 ▼1.25
Media Library /wp-admin/upload.php3.42 ▲0.1941.74 ▲7.58
Create new feed /wp-admin/admin.php?page=webtoffee_product_feed_main_export3.4538.57
Facebook Catalog Sync /wp-admin/admin.php?page=webtoffee-product-feed3.3731.18
Manage Feeds /wp-admin/admin.php?page=webtoffee_product_feed_main_history3.4635.70
General Settings /wp-admin/admin.php?page=webtoffee_product_feed3.6938.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 196 new files
Database: 2 new tables, 10 new options
New tables
wp_wt_pf_cron
wp_wt_pf_action_history
New WordPress options
db_upgraded
wt_productfeed_show_legacy_menu
widget_theysaidso_widget
can_compress_scripts
wt_pfs_start_date
widget_recent-posts
wt_pf_is_active
wt_pf_admin_modules
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Feed for WooCommerce - Google Shops, Facebook Shop, TikTok, Instagram, and More
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7114.02 ▼0.122.05 ▲0.4337.07 ▼6.94
Dashboard /wp-admin2,241 ▲615.60 ▼0.0491.14 ▼8.3544.12 ▼3.34
Posts /wp-admin/edit.php2,143 ▲432.00 ▼0.0240.54 ▲8.5337.06 ▲4.91
Add New Post /wp-admin/post-new.php1,563 ▲3723.18 ▲0.21641.48 ▼74.0858.59 ▲3.11
Media Library /wp-admin/upload.php1,446 ▲464.18 ▼0.03109.72 ▲14.6148.83 ▲7.80
Create new feed /wp-admin/admin.php?page=webtoffee_product_feed_main_export1,4422.6763.4652.56
Facebook Catalog Sync /wp-admin/admin.php?page=webtoffee-product-feed7201.619.0119.57
Manage Feeds /wp-admin/admin.php?page=webtoffee_product_feed_main_history8792.1230.5828.70
General Settings /wp-admin/admin.php?page=webtoffee_product_feed2,2252.0635.2864.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_wt_pf_cron
    • wp_wt_pf_action_history
  • Zombie WordPress options detected upon uninstall: 8 options
    • wt_pf_admin_modules
    • theysaidso_admin_options
    • wt_productfeed_show_legacy_menu
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webtoffee-product-feed/includes/fbcatalog/wt-fbfeed-category-helper.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webtoffee-product-feed/includes/class-wt-productfeed-uninstall-feedback.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

webtoffee-product-feed/webtoffee-product-feed.php Passed 13 tests

The primary PHP file in "Product Feed for WooCommerce - Google Shops, Facebook Shop, TikTok, Instagram, and More" version 2.1.4 is used by WordPress to initiate all plugin functionality
92 characters long description:
Integrate your WooCommerce store with Google Merchant Center, Facebook, and Instagram shops.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin30,102 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP945,3413,78523,702
JavaScript104911,0813,620
CSS42351382,318
SVG2600462

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity80.98
▷ Minimum class complexity1.00
▷ Maximum class complexity292.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes43
▷ Abstract classes00.00%
▷ Concrete classes43100.00%
▷ Final classes00.00%
Methods1,130
▷ Static methods15113.36%
▷ Public methods1,06293.98%
▷ Protected methods221.95%
▷ Private methods464.07%
Functions33
▷ Named functions3090.91%
▷ Anonymous functions39.09%
Constants19
▷ Global constants947.37%
▷ Class constants1052.63%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
46 compressed PNG files occupy 0.43MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/other_solutions/display-discounts.png23.01KB23.01KB0.00%
admin/css/images/ui-icons_2e83ff_256x240.png4.49KB4.18KB▼ 6.89%
assets/images/other_solutions/bestsellers_plugin.png3.03KB3.01KB▼ 0.68%
assets/images/other_solutions/Sequential-order-number-plugin.png14.86KB14.76KB▼ 0.67%
admin/css/images/ui-bg_glass_65_ffffff_1x400.png0.24KB0.09KB▼ 64.23%