78% product-catalog-feed

Code Review | Product Catalog Feed by PixelYourSite

WordPress plugin Product Catalog Feed by PixelYourSite scored78%from 54 tests.

About plugin

  • Plugin page: product-catalog-feed
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Oct 15, 2023
  • Number of updates: 47
  • Update frequency: every 55.6 days
  • Top authors: PixelYourSite (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

8,000+ active /62,211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.93MB] [CPU: ▲1.57ms] Passed 4 tests

A check of server-side resources used by Product Catalog Feed by PixelYourSite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2236.65 ▲0.83
Dashboard /wp-admin4.47 ▲1.1754.92 ▲7.11
Posts /wp-admin/edit.php4.52 ▲1.1760.46 ▲11.27
Add New Post /wp-admin/post-new.php7.07 ▲1.1990.85 ▼11.10
Media Library /wp-admin/upload.php4.40 ▲1.1746.39 ▲9.45

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Product Catalog Feed by PixelYourSite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.43 ▲0.082.08 ▲0.5739.66 ▼0.67
Dashboard /wp-admin2,226 ▲495.61 ▲0.0287.29 ▲2.6742.81 ▼1.78
Posts /wp-admin/edit.php2,134 ▲342.01 ▼0.0237.55 ▲1.9540.02 ▲5.39
Add New Post /wp-admin/post-new.php1,401 ▼12520.22 ▼2.90547.50 ▼130.38163.24 ▲112.07
Media Library /wp-admin/upload.php1,428 ▲254.20 ▼0.01118.92 ▲10.5745.21 ▼4.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/product-catalog-feed/view/admin/settings-top.php
    • > /wp-content/plugins/product-catalog-feed/view/admin/admin-settings.php
    • > /wp-content/plugins/product-catalog-feed/view/inc/types.php
  • 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/product-catalog-feed/inc/common.php on line 80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-catalog-feed/inc/common.php:82
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/product-catalog-feed/view/admin/info-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-catalog-feed/inc/common.php:82
    • > PHP Notice
      Undefined variable: WpWoofTopSave in wp-content/plugins/product-catalog-feed/view/inc/store_action.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'wpwoof_product_catalog' not found in wp-content/plugins/product-catalog-feed/inc/import-addon.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Wpwoof_Feed_List_Table' not found in wp-content/plugins/product-catalog-feed/view/admin/feed-manage-list.php:5
    • > 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-catalog-feed/inc/common.php on line 80
    • > PHP Fatal error
      Uncaught Error: Call to a member function renderFields() on null in wp-content/plugins/product-catalog-feed/view/inc/settings.php:5
    • > 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-catalog-feed/inc/common.php on line 80

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: facebook dynamic ads feed, product catalog woocommerce, facebook product catalog feed, woocommerce csv, xml feed...

product-catalog-feed/product-catalog-feed.php 85% from 13 tests

Analyzing the main PHP file in "Product Catalog Feed by PixelYourSite" version 2.2.0
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.0.0")
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin12,761 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,3661,4258,198
CSS4743833,053
JavaScript5611801,510

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 182)
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity178.00
▷ Minimum class complexity6.00
▷ Maximum class complexity791.00
Average method complexity7.31
▷ Minimum method complexity1.00
▷ Maximum method complexity182.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods282
▷ Static methods5218.44%
▷ Public methods18465.25%
▷ Protected methods258.87%
▷ Private methods7325.89%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants29
▷ Global constants2689.66%
▷ Class constants310.34%
▷ Public constants3100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bar.png0.19KB0.13KB▼ 31.63%
assets/img/favicon.png0.48KB0.46KB▼ 5.45%