83% ravioli-for-woocommerce

Code Review | Ravioli for WooCommerce

WordPress plugin Ravioli for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: ravioli-for-wooco...
  • Plugin version: 1.5.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Nov 13, 2023
  • Number of updates: 13
  • Update frequency: every 30.9 days
  • Top authors: canolcer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /328 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Ravioli for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.95 ▼5.99
Dashboard /wp-admin3.31 ▲0.0045.35 ▼5.53
Posts /wp-admin/edit.php3.36 ▲0.0047.45 ▲2.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.06 ▼0.37
Media Library /wp-admin/upload.php3.23 ▲0.0033.89 ▼2.58

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

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

Browser metrics Passed 4 tests

Ravioli for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.23 ▲0.021.76 ▲0.0337.01 ▼5.50
Dashboard /wp-admin2,195 ▲205.63 ▲0.0394.34 ▼20.1439.53 ▼7.59
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0739.93 ▲2.4736.33 ▲3.25
Add New Post /wp-admin/post-new.php1,526 ▼022.90 ▼0.95613.94 ▼91.1058.32 ▲7.00
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.1194.98 ▼2.5845.03 ▼2.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ravioli-for-woocommerce/public/partials/ravioli_banner_full.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ravioli-for-woocommerce/public/partials/ravioli_modal.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ravioli-for-woocommerce/public/partials/ravioli_banner.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: ecommerce, shipping, ravioli

ravioli-for-woocommerce/ravioli.php 77% from 13 tests

The main file in "Ravioli for WooCommerce" v. 1.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 152 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ravioli-for-woocommerce.php" instead of "ravioli.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,713 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP913270713
Markdown11210553
JavaScript36443247
CSS2331200

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.00
▷ Minimum class complexity2.00
▷ Maximum class complexity41.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods12.38%
▷ Public methods3480.95%
▷ Protected methods00.00%
▷ Private methods819.05%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin