78% woocommerce-better-feeds

Code Review | WooCommerce Better Feeds

WordPress plugin WooCommerce Better Feeds scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-bette...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 29, 2015
  • Latest release: Apr 29, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: elsteno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,340 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.30ms] Passed 4 tests

A check of server-side resources used by WooCommerce Better Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.73 ▼0.95
Dashboard /wp-admin3.33 ▼0.0249.71 ▼14.54
Posts /wp-admin/edit.php3.38 ▲0.0245.42 ▼2.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.14 ▼11.17
Media Library /wp-admin/upload.php3.25 ▲0.0236.50 ▲0.63
WooCommerce Better Feeds /wp-admin/options-general.php?page=woocommerce-better-feeds/wcbfeed.php3.2233.18

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

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

Browser metrics Passed 4 tests

WooCommerce Better Feeds: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.38 ▲0.011.84 ▲0.1342.20 ▲2.42
Dashboard /wp-admin2,215 ▲334.82 ▼0.98104.59 ▼7.8143.88 ▲5.50
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0135.19 ▼5.8432.41 ▼3.98
Add New Post /wp-admin/post-new.php1,533 ▼023.37 ▲0.14654.76 ▼30.8357.43 ▲2.63
Media Library /wp-admin/upload.php1,391 ▲64.29 ▲0.08105.41 ▲0.5746.27 ▲4.05
WooCommerce Better Feeds /wp-admin/options-general.php?page=woocommerce-better-feeds/wcbfeed.php9462.0624.8526.84

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • wcbfeed_rss_image_size

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woocommerce-better-feeds/includes/wcbfeed-header.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-better-feeds/includes/wcbfeed-option-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-better-feeds/wcbfeed.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-better-feeds/woocommerce-better-feeds.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-better-feeds/includes/wcbfeed-footer.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (The settings page)
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

woocommerce-better-feeds/woocommerce-better-feeds.php Passed 13 tests

The entry point to "WooCommerce Better Feeds" version 1.1 is a PHP file that has certain tags in its header comment area
53 characters long description:
Add Featured Image and Price to woocommerce rss feeds

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
Good job! No executable or dangerous file extensions detected191 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52823146
PO File1111142
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin