84% thunderstone-feed

Code Review | WooCommerce XML feed for Thunderstone

WordPress plugin WooCommerce XML feed for Thunderstone scored84%from 54 tests.

About plugin

  • Plugin page: thunderstone-feed
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Jun 25, 2019
  • Latest release: Jun 25, 2019
  • Number of updates: 17
  • Update frequency: every 0.2 days
  • Top authors: wpthunderstone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /587 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.13ms] Passed 4 tests

An overview of server-side resources used by WooCommerce XML feed for Thunderstone
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0649.18 ▲4.32
Dashboard /wp-admin3.38 ▲0.0845.81 ▼3.21
Posts /wp-admin/edit.php3.43 ▲0.0750.98 ▲2.09
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.17 ▼13.88
Media Library /wp-admin/upload.php3.31 ▲0.0739.84 ▼1.50
Thunderstone /wp-admin/admin.php?page=thunderstonewpxml_admin_menu3.2528.13
Créer un Flux /wp-admin/admin.php?page=thunderstonewpxml_create_page3.3235.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
recovery_mode_email_last_sent
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce XML feed for Thunderstone
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.24 ▼1.374.70 ▲2.8439.58 ▼2.82
Dashboard /wp-admin2,232 ▲415.83 ▼0.07101.92 ▼10.3982.53 ▲42.24
Posts /wp-admin/edit.php2,115 ▲232.02 ▼0.0137.29 ▼1.5034.04 ▼2.18
Add New Post /wp-admin/post-new.php1,541 ▲823.05 ▼0.14713.48 ▲8.3965.50 ▲11.77
Media Library /wp-admin/upload.php1,408 ▲234.22 ▲0.02102.11 ▼17.6781.53 ▲38.26
Thunderstone /wp-admin/admin.php?page=thunderstonewpxml_admin_menu7041.147.3322.61
Créer un Flux /wp-admin/admin.php?page=thunderstonewpxml_create_page7081.536.9624.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=thunderstonewpxml_admin_menu
    • > Error in wp-content/plugins/thunderstone-feed/wooshop-thxml.php+53
    Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/thunderstone-feed/wooshop-thxml.php:53
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): thunderstonewpxml_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
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=thunderstonewpxml_create_page
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=thunderstonewpxml_create_page
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 32 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=thunderstonewpxml_create_page
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=thunderstonewpxml_create_page
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object
    • > GET request to /wp-admin/admin.php?page=thunderstonewpxml_create_page
    • > Error in wp-content/plugins/thunderstone-feed/wooshop-thxml.php+233
    Uncaught Error: Call to undefined function wc_get_products() in wp-content/plugins/thunderstone-feed/wooshop-thxml.php:233
    Stack trace:
    #0 wp-content/plugins/thunderstone-feed/createsk.php(31): thunderstonewpxml_generate_products_xml_data()
    #1 wp-content/plugins/thunderstone-feed/wooshop-thxml.php(190): require_once('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): thunderstonewpxml_create_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 {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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: e-commerce, ecommerce, wordpress ecommerce, xml, feed

thunderstone-feed/wooshop-thxml.php 92% from 13 tests

The main PHP file in "WooCommerce XML feed for Thunderstone" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("thunderstone-feed.php" instead of "wooshop-thxml.php")

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
No dangerous file extensions were detected453 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39524453

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/app_icon_th.png71.34KB35.58KB▼ 50.12%
images/xml-icon.png1.45KB0.35KB▼ 75.99%