62% feedaty-rating-for-woocommerce

Code Review | Feedaty Rating for WooCommerce

WordPress plugin Feedaty Rating for WooCommerce scored62%from 54 tests.

About plugin

  • Plugin page: feedaty-rating-fo...
  • Plugin version: 1.0.16
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2022
  • Latest release: Oct 23, 2023
  • Number of updates: 40
  • Update frequency: every 15.7 days
  • Top authors: feedaty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,134 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.64MB] [CPU: ▼46.93ms] Passed 4 tests

An overview of server-side resources used by Feedaty Rating for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.129.49 ▼25.54
Dashboard /wp-admin2.37 ▼0.9312.02 ▼38.59
Posts /wp-admin/edit.php2.37 ▼0.9910.70 ▼37.04
Add New Post /wp-admin/post-new.php2.37 ▼3.5211.11 ▼86.54
Media Library /wp-admin/upload.php2.37 ▼0.8612.57 ▼22.81
Product Carousel /wp-admin/admin.php?page=feedaty_fwr_product_carousel2.3711.57
Product Badge /wp-admin/admin.php?page=feedaty_fwr_product_badge2.3711.24
Export /wp-admin/admin.php?page=feedaty_fwr_export2.3711.52
Global Settings /wp-admin/admin.php?page=feedaty_fwr_main_options2.3710.89
Store Carousel /wp-admin/admin.php?page=feedaty_fwr_store_carousel2.3710.75
Store Badge /wp-admin/admin.php?page=feedaty_fwr_store_badge2.3710.94

Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_feedaty_woocommerce_rating_widget_carousel
widget_recent-posts
feedaty-rating-for-woocommerce
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_feedaty_woocommerce_rating_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Feedaty Rating for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲6014.49 ▲0.141.61 ▼0.4544.16 ▲3.53
Dashboard /wp-admin2,235 ▲605.62 ▼0.1085.60 ▼13.8079.50 ▲37.68
Posts /wp-admin/edit.php2,158 ▲552.08 ▲0.0637.82 ▼2.0730.20 ▼5.73
Add New Post /wp-admin/post-new.php1,573 ▲4722.98 ▲0.05672.23 ▼2.80114.34 ▲51.05
Media Library /wp-admin/upload.php1,455 ▲614.27 ▲0.05112.35 ▲16.0674.32 ▲29.73
Product Carousel /wp-admin/admin.php?page=feedaty_fwr_product_carousel9001.7726.9629.77
Product Badge /wp-admin/admin.php?page=feedaty_fwr_product_badge9031.7724.3329.38
Export /wp-admin/admin.php?page=feedaty_fwr_export9061.9924.6425.19
Global Settings /wp-admin/admin.php?page=feedaty_fwr_main_options9061.7424.2226.33
Store Carousel /wp-admin/admin.php?page=feedaty_fwr_store_carousel9061.7426.7126.83
Store Badge /wp-admin/admin.php?page=feedaty_fwr_store_badge9031.7727.6330.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/feedaty-rating-for-woocommerce/admin/class-feedaty-rating-for-woocommerce-widget.php+12
    Undefined index: version
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_feedaty_woocommerce_rating_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_feedaty_woocommerce_rating_widget_carousel
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% 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 errors were triggered by the plugin
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=feedaty_fwr_store_badge
    • > Notice in wp-content/plugins/feedaty-rating-for-woocommerce/admin/class-feedaty-rating-for-woocommerce-widget-carousel.php+12
    Undefined index: version

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/feedaty-rating-for-woocommerce/public/partials/feedaty-rating-for-woocommerce-public-display.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/feedaty-rating-for-woocommerce/admin/partials/feedaty-rating-for-woocommerce-admin-display.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/feedaty-rating-for-woocommerce/admin/class-feedaty-rating-for-woocommerce-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/feedaty-rating-for-woocommerce/includes/acme_form_builder.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/feedaty-rating-for-woocommerce/admin/class-feedaty-rating-for-woocommerce-widget-carousel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/feedaty-rating-for-woocommerce/admin/partials/feedaty-rating-for-woocommerce-product_badge.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/feedaty-rating-for-woocommerce/admin/partials/feedaty-rating-for-woocommerce-export.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/feedaty-rating-for-woocommerce/admin/partials/feedaty-rating-for-woocommerce-store_badge.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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: These screenshots do not have images: #1 (This screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screenshot)
Please take inspiration from this readme.txt

feedaty-rating-for-woocommerce/feedaty-rating-for-woocommerce.php Passed 13 tests

The main file in "Feedaty Rating for WooCommerce" v. 1.0.16 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
The new Feedaty Rating for WooCommerce will let you easily connect your shop to Feedaty

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 plugin2,468 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP203569532,089
CSS34014157
PO File15872130
JavaScript3126261
SVG20031

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.73
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods102
▷ Static methods21.96%
▷ Public methods9088.24%
▷ Protected methods10.98%
▷ Private methods1110.78%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/feedaty.png0.59KB0.46KB▼ 21.85%
assets/feedaty_logo.png16.61KB6.32KB▼ 61.96%