84% woo-xml-feed-for-skroutzgr-bestpricegr

Code Review | WooCommerce XML feed for Skroutz & Bestprice

WordPress plugin WooCommerce XML feed for Skroutz & Bestprice scored 84% from 54 tests.

About plugin

  • Plugin page: woo-xml-feed-for-...
  • Plugin version: 1.6.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Feb 28, 2022
  • Number of updates: 50
  • Update frequency: every 36.0 days
  • Top authors: enartia (58%)georgekapsalakis (44%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active / 26,880 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼2.66ms] Passed 4 tests

Server-side resources used by WooCommerce XML feed for Skroutz & Bestprice
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2342.05 ▼3.17
Dashboard /wp-admin3.56 ▲0.2650.47 ▼1.24
Posts /wp-admin/edit.php3.61 ▲0.2648.00 ▲1.58
Add New Post /wp-admin/post-new.php6.16 ▲0.2887.23 ▼7.81
Media Library /wp-admin/upload.php3.49 ▲0.2636.46 ▲3.80
Skroutz & BestPrice /wp-admin/admin.php?page=skroutz_xml_admin_menu3.4332.30
Create XML Feeds /wp-admin/admin.php?page=skroutz_xml_create_page3.4535.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
recovery_mode_email_last_sent
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce XML feed for Skroutz & Bestprice
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.45 ▼0.841.79 ▼0.3243.04 ▼0.42
Dashboard /wp-admin2,232 ▲415.07 ▲0.23106.95 ▲1.9571.03 ▲29.42
Posts /wp-admin/edit.php2,128 ▲392.25 ▲0.2532.61 ▼2.0330.99 ▼0.22
Add New Post /wp-admin/post-new.php1,553 ▲2023.34 ▲0.41753.82 ▲117.1158.13 ▲3.37
Media Library /wp-admin/upload.php1,423 ▲384.45 ▲0.2696.61 ▼2.4474.02 ▲31.36
Skroutz & BestPrice /wp-admin/admin.php?page=skroutz_xml_admin_menu7171.678.5017.78
Create XML Feeds /wp-admin/admin.php?page=skroutz_xml_create_page7191.678.4518.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=skroutz_xml_admin_menu
    • > Error in wp-content/plugins/woo-xml-feed-for-skroutzgr-bestpricegr/wooshop-skroutzxml.php+92
    Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/woo-xml-feed-for-skroutzgr-bestpricegr/wooshop-skroutzxml.php:92
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): skroutz_xml_admin_page()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=skroutz_xml_create_page
    • > Error in wp-content/plugins/woo-xml-feed-for-skroutzgr-bestpricegr/wooshop-skroutzxml.php+962
    Uncaught Error: Class 'WC_Product_Query' not found in wp-content/plugins/woo-xml-feed-for-skroutzgr-bestpricegr/wooshop-skroutzxml.php:962
    Stack trace:
    #0 wp-content/plugins/woo-xml-feed-for-skroutzgr-bestpricegr/wooshop-skroutzxml.php(473): generate_products_xml_data_new()
    #1 wp-includes/class-wp-hook.php(310): skroutz_xml_create_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
5 plugin tags: wordpress ecommerce, e-commerce, xml, ecommerce, feed

woo-xml-feed-for-skroutzgr-bestpricegr/wooshop-skroutzxml.php 92% from 13 tests

"WooCommerce XML feed for Skroutz & Bestprice" version 1.6.9.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-xml-feed-for-skroutzgr-bestpricegr.php" instead of "wooshop-skroutzxml.php")

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected1,571 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4250381,431
PO File15064140

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/skroutz.png5.41KB2.74KB▼ 49.34%
images/xml-icon.png0.67KB0.89KB0.00%
images/bp.png31.23KB14.92KB▼ 52.23%