90% product-xml-feeds-for-woocommerce

Code Review | Product XML Feed Manager for WooCommerce - Google Shopping, Social Sites, Skroutz & More

WordPress plugin Product XML Feed Manager for WooCommerce - Google Shopping, Social Sites, Skroutz & More scored90%from 54 tests.

About plugin

  • Plugin page: product-xml-feeds...
  • Plugin version: 2.7.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jan 10, 2017
  • Latest release: Sep 26, 2023
  • Number of updates: 117
  • Update frequency: every 20.9 days
  • Top authors: algoritmika (52.14%)omardabbas (43.59%)wpcodefactory (5.98%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /49,646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.81ms] Passed 4 tests

Server-side resources used by Product XML Feed Manager for WooCommerce - Google Shopping, Social Sites, Skroutz & More
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.02 ▼4.82
Dashboard /wp-admin3.31 ▲0.0053.15 ▲2.53
Posts /wp-admin/edit.php3.36 ▲0.0051.14 ▲0.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.83 ▼10.81
Media Library /wp-admin/upload.php3.23 ▲0.0039.29 ▲0.10

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product XML Feed Manager for WooCommerce - Google Shopping, Social Sites, Skroutz & More
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.25 ▼1.001.91 ▼0.1045.51 ▼9.74
Dashboard /wp-admin2,218 ▲185.88 ▲1.01109.28 ▲0.6439.30 ▼5.83
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0738.27 ▼0.4731.30 ▼7.53
Add New Post /wp-admin/post-new.php1,545 ▼023.24 ▼0.07630.35 ▼29.4456.98 ▼3.24
Media Library /wp-admin/upload.php1,403 ▲94.24 ▼0.1797.80 ▼17.4445.94 ▼2.44

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 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, xml, product xml feeds, export

product-xml-feeds-for-woocommerce/product-xml-feeds-for-woocommerce.php Passed 13 tests

The main PHP script in "Product XML Feed Manager for WooCommerce - Google Shopping, Social Sites, Skroutz & More" version 2.7.9 is automatically included on every request by WordPress
98 characters long description:
Create your own XML files using tens of preconfigured shortcodes for you on your WooCommerce store

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,727 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP93461,0172,727

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 147)
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity40.43
▷ Minimum class complexity1.00
▷ Maximum class complexity292.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity147.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods125
▷ Static methods10.80%
▷ Public methods125100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
No PNG files were detected