83% wp-product-feed-manager

Code Review | WooCommerce Google Feed Manager

WordPress plugin WooCommerce Google Feed Manager scored83%from 54 tests.

About plugin

  • Plugin page: wp-product-feed-m...
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-6.5
  • WordPress version: 6.3.1
  • First release: Jan 18, 2016
  • Latest release: Nov 27, 2023
  • Number of updates: 350
  • Update frequency: every 8.3 days
  • Top authors: AukeJomm (100%)

Code review

54 tests

User reviews

105 reviews

Install metrics

10,000+ active /711,561 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: ▲2.00MB] [CPU: ▲3.63ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Google Feed Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲2.0252.48 ▲7.65
Dashboard /wp-admin5.30 ▲1.9661.26 ▼5.11
Posts /wp-admin/edit.php5.42 ▲2.0660.52 ▲13.96
Add New Post /wp-admin/post-new.php7.90 ▲2.0295.26 ▼1.99
Media Library /wp-admin/upload.php5.23 ▲2.0050.10 ▲15.94

Server storage [IO: ▲3.41MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 305 new files
Database: 7 new tables, 8 new options
New tables
wp_feedmanager_source
wp_feedmanager_channel
wp_feedmanager_field_categories
wp_feedmanager_feed_status
wp_feedmanager_product_feedmeta
wp_feedmanager_product_feed
wp_feedmanager_country
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
wppfm_db_version
widget_recent-posts
can_compress_scripts
db_upgraded
myplugin_version
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Google Feed Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4514.26 ▼0.451.61 ▼0.1339.14 ▼4.37
Dashboard /wp-admin2,197 ▲175.62 ▼0.0193.81 ▼6.3141.93 ▼3.51
Posts /wp-admin/edit.php2,105 ▲52.05 ▲0.1037.95 ▼0.9233.64 ▲0.02
Add New Post /wp-admin/post-new.php1,528 ▲223.36 ▼0.05583.09 ▼39.8048.52 ▼6.65
Media Library /wp-admin/upload.php1,399 ▲54.21 ▲0.0097.56 ▲1.3342.20 ▼0.65

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • myplugin_version
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-product-feed-manager/includes/packages/logger/includes/wppfm-logger-functions.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #3 (Save and generate your feed) image missing
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: A description for screenshot #5 is missing in wp-product-feed-manager/assets to your readme.txt
The official readme.txt is a good inspiration

wp-product-feed-manager/wp-product-feed-manager.php 92% from 13 tests

The principal PHP file in "WooCommerce Google Feed Manager" v. 2.1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "5.4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin42,898 lines of code in 284 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1445,0082,07118,557
PHP1143,6294,92911,574
XML14007,692
PO File31,2121,7253,755
CSS9246501,320

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.88
▷ Minimum class complexity1.00
▷ Maximum class complexity312.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces0
Interfaces0
Traits5
Classes87
▷ Abstract classes66.90%
▷ Concrete classes8193.10%
▷ Final classes11.23%
Methods712
▷ Static methods15421.63%
▷ Public methods45163.34%
▷ Protected methods10014.04%
▷ Private methods16122.61%
Functions101
▷ Named functions9695.05%
▷ Anonymous functions54.95%
Constants26
▷ Global constants26100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/app-rss-plus-xml-icon.png0.71KB0.67KB▼ 5.53%
images/copy-icon.png3.16KB3.17KB0.00%
images/delete-icon.png2.39KB2.52KB0.00%