77% webappick-product-feed-for-woocommerce

Code Review | CTX Feed – WooCommerce Product Feed Manager Plugin

WordPress plugin CTX Feed – WooCommerce Product Feed Manager Plugin scored77%from 54 tests.

About plugin

  • Plugin page: webappick-product...
  • Plugin version: 6.3.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Feb 10, 2016
  • Latest release: Nov 30, 2023
  • Number of updates: 1,462
  • Update frequency: every 2.0 days
  • Top authors: wahid0003 (100%)

Code review

54 tests

User reviews

615 reviews

Install metrics

70,000+ active /4,467,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.97MB] [CPU: ▲16.46ms] Passed 4 tests

Analyzing server-side resources used by CTX Feed – WooCommerce Product Feed Manager Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.43 ▲1.9768.84 ▲25.69
Dashboard /wp-admin5.27 ▲1.9267.34 ▼3.88
Posts /wp-admin/edit.php5.38 ▲2.0268.93 ▲24.60
Add New Post /wp-admin/post-new.php8.68 ▲2.79107.80 ▲19.41
Media Library /wp-admin/upload.php5.19 ▲1.9661.44 ▲28.59

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 475 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for CTX Feed – WooCommerce Product Feed Manager Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6614.31 ▲0.161.82 ▲0.1042.52 ▼0.60
Dashboard /wp-admin2,204 ▲275.63 ▼0.0494.27 ▼5.0045.59 ▲3.41
Posts /wp-admin/edit.php2,112 ▲121.94 ▼0.0339.17 ▲4.2240.61 ▲5.36
Add New Post /wp-admin/post-new.php1,538 ▲1023.03 ▼0.45664.63 ▲50.4655.31 ▲0.61
Media Library /wp-admin/upload.php1,415 ▲214.18 ▼0.0196.76 ▼2.9944.97 ▲0.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/webappick-product-feed-for-woocommerce/admin/partials/woo-feed-pro-vs-free.php
  • 79× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webappick-product-feed-for-woocommerce/includes/widget.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'CTXFeed\\V5\\Tax\\TaxInterface' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/Tax/CustomTax.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'CTXFeed\\V5\\Query\\QueryInterface' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/Query/ProductQuery.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'CTXFeed\\V5\\Structure\\StructureInterface' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/Structure/CustomStructure.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'CTXFeed\\V5\\Structure\\StructureInterface' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/Structure/Custom2Structure.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'CTXFeed\\V5\\Template\\TemplateInterface' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/Template/GoogleTemplate.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'CTXFeed\\V5\\File\\FileInterface' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/File/TXT.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'CTXFeed\\V5\\Common\\DropDownOptions' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/admin/partials/woo-feed-add-option.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'CTXFeed\\V5\\Shipping\\Shipping' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/Shipping/CustomShipping.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'CTXFeed\\V5\\Structure\\StructureInterface' not found in wp-content/plugins/webappick-product-feed-for-woocommerce/V5/Structure/GoogleStructure.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

webappick-product-feed-for-woocommerce/woo-feed.php 77% from 13 tests

The primary PHP file in "CTX Feed – WooCommerce Product Feed Manager Plugin" version 6.3.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 163 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webappick-product-feed-for-woocommerce.php" instead of "woo-feed.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin86,091 lines of code in 366 files:
LanguageFilesBlank linesComment linesLines of code
PHP2587,64417,74061,879
JavaScript272,1391,67812,721
CSS171,3612798,185
SVG628223,122
PO File160364136
XML114948

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 142)
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity22.36
▷ Minimum class complexity1.00
▷ Maximum class complexity530.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity142.00
Code structure
Namespaces31
Interfaces11
Traits0
Classes222
▷ Abstract classes10.45%
▷ Concrete classes22199.55%
▷ Final classes20.90%
Methods1,836
▷ Static methods32317.59%
▷ Public methods1,43378.05%
▷ Protected methods22112.04%
▷ Private methods1829.91%
Functions233
▷ Named functions20688.41%
▷ Anonymous functions2711.59%
Constants63
▷ Global constants2133.33%
▷ Class constants4266.67%
▷ Public constants42100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.62MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/v5_images/logo-pro.9858a552.png41.11KB23.54KB▼ 42.74%
admin/images/v5_images/CTX-Feed-Plugin-Side-Banner.png3.50KB1.80KB▼ 48.45%
admin/images/warning-icon.png3.80KB3.62KB▼ 4.81%
admin/images/v5_images/CTXFeed-Logo-lifetime.png29.33KB16.03KB▼ 45.34%
admin/images/v5_images/Side-Plugin-Banner-1.a5643d7e.png94.47KB49.88KB▼ 47.20%