83% chicory-recipe-ingredients

Code Review | Chicory Shoppable Recipes

WordPress plugin Chicory Shoppable Recipes scored83%from 54 tests.

About plugin

  • Plugin page: chicory-recipe-in...
  • Plugin version: 2.0.21
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2014
  • Latest release: Jul 13, 2023
  • Number of updates: 80
  • Update frequency: every 40.7 days
  • Top authors: Chicory (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /11,807 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Chicory Shoppable Recipes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.25 ▼7.12
Dashboard /wp-admin3.31 ▲0.0148.89 ▼1.57
Posts /wp-admin/edit.php3.36 ▲0.0049.23 ▲4.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.54 ▼9.96
Media Library /wp-admin/upload.php3.23 ▲0.0038.45 ▼0.91

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Chicory Shoppable Recipes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.301.64 ▼0.1141.64 ▲0.74
Dashboard /wp-admin2,206 ▲185.90 ▲0.87104.91 ▼4.4241.61 ▲1.79
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0340.17 ▲4.1833.73 ▼1.34
Add New Post /wp-admin/post-new.php1,542 ▲2818.27 ▲0.76653.53 ▲3.8656.62 ▲8.41
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0797.55 ▼10.2744.74 ▼3.64

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/chicory-recipe-ingredients/chicory-recipe-ingredients.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: You can look at the official readme.txt

chicory-recipe-ingredients/chicory-recipe-ingredients.php 85% from 13 tests

Analyzing the main PHP file in "Chicory Shoppable Recipes" version 2.0.21
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 294 characters long)

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
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1167030

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 1.64MB with 1.44MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon/icon1.png17.79KB0.66KB▼ 96.27%
icon/icon.png17.63KB0.35KB▼ 98.02%
screenshot-1.png1,643.01KB497.41KB▼ 69.73%