67% whisk-recipes

Code Review | Whisk Recipes

WordPress plugin Whisk Recipes scored 67% from 54 tests.

About plugin

  • Plugin page: whisk-recipes
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.8.1
  • First release: Dec 30, 2020
  • Latest release: Jun 3, 2021
  • Number of updates: 24
  • Update frequency: every 6.5 days
  • Top authors: whiskstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,038 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Whisk Recipes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0037.84 ▲3.67
Dashboard /wp-admin3.06 ▲0.0049.90 ▲4.19
Posts /wp-admin/edit.php3.11 ▲0.0042.74 ▼3.18
Add New Post /wp-admin/post-new.php5.42 ▼0.0285.19 ▼560.35
Media Library /wp-admin/upload.php3.01 ▲0.0031.75 ▲0.08

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,043 new files
Database: 4 new tables, 4 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_logs
wp_actionscheduler_claims
wp_actionscheduler_groups
New WordPress options
action_scheduler_lock_async-request-runner
schema-ActionScheduler_LoggerSchema
schema-ActionScheduler_StoreSchema
action_scheduler_hybrid_store_demarkation

Browser metrics Passed 4 tests

This is an overview of browser requirements for Whisk Recipes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.82 ▲0.289.70 ▼0.2744.67 ▼1.61
Dashboard /wp-admin2,967 ▲365.91 ▼0.16136.06 ▼5.96121.73 ▲9.36
Posts /wp-admin/edit.php2,739 ▲32.70 ▼0.0068.21 ▲3.1390.62 ▼3.53
Add New Post /wp-admin/post-new.php1,498 ▼18418.87 ▲0.09372.49 ▼0.23114.15 ▼1.83
Media Library /wp-admin/upload.php1,810 ▲65.03 ▲0.01149.07 ▼4.37117.34 ▼6.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_actionscheduler_groups
    • wp_actionscheduler_actions
    • wp_actionscheduler_logs
    • wp_actionscheduler_claims
  • The uninstall procedure has failed, leaving 4 options in the database
    • schema-ActionScheduler_StoreSchema
    • action_scheduler_hybrid_store_demarkation
    • action_scheduler_lock_async-request-runner
    • schema-ActionScheduler_LoggerSchema

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/whisk-recipes/vendor/aristath/kirki/controls/views/radio.php
    • > /wp-content/plugins/whisk-recipes/vendor/aristath/kirki/controls/views/select.php
    • > /wp-content/plugins/whisk-recipes/vendor/aristath/kirki/controls/views/number.php
    • > /wp-content/plugins/whisk-recipes/vendor/aristath/kirki/controls/views/code.php
    • > /wp-content/plugins/whisk-recipes/vendor/aristath/kirki/controls/views/color.php
    • > /wp-content/plugins/whisk-recipes/vendor/aristath/kirki/controls/views/textarea.php
    • > /wp-content/plugins/whisk-recipes/template-parts/admin/modals/add-recipe.php
    • > /wp-content/plugins/whisk-recipes/template-parts/admin/modals/add-ingredient.php
    • > /wp-content/plugins/whisk-recipes/vendor-prefixed/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/whisk-recipes/src/onboarding/views/ob-steps.php
  • 349× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Control_Base' not found in wp-content/plugins/whisk-recipes/vendor/aristath/kirki/controls/php/class-kirki-control-background.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Whisk\\Recipes\\Vendor\\Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/whisk-recipes/vendor-prefixed/htmlburger/carbon-fields/core/Container/Condition/Post_Template_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/whisk-recipes/vendor/woocommerce/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Whisk\\Recipes\\Vendor\\Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/whisk-recipes/vendor-prefixed/htmlburger/carbon-fields/core/Container/Condition/Post_Type_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/whisk-recipes/src/onboarding/views/step-ready-view.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/whisk-recipes/src/onboarding/views/step-urls-setup-view.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Whisk\\Recipes\\Vendor\\Carbon_Fields\\Container\\Container' not found in wp-content/plugins/whisk-recipes/vendor-prefixed/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/whisk-recipes/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/whisk-recipes/vendor/aristath/kirki/field/class-kirki-field-color.php:15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/whisk-recipes/vendor-prefixed/htmlburger/carbon-fields/templates/Container/term_meta.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #2, #4, #5, #6, #7, #8 in whisk-recipes/assets to your readme.txt
You can look at the official readme.txt

whisk-recipes/whisk-recipes.php 85% from 13 tests

This is the main PHP file of "Whisk Recipes" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Description: Please don't use more than 140 characters for the plugin description (currently 328 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin93,339 lines of code in 943 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31611,84613,11640,688
PHP5647,55027,15939,608
JSON7008,689
CSS234301,1543,239
Markdown12730560
Sass1413261
SVG2905259
YAML17027
XML1008

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.48
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces48
Interfaces19
Traits4
Classes483
▷ Abstract classes377.66%
▷ Concrete classes44692.34%
▷ Final classes92.02%
Methods3,147
▷ Static methods40812.96%
▷ Public methods2,34074.36%
▷ Protected methods67121.32%
▷ Private methods1364.32%
Functions194
▷ Named functions4925.26%
▷ Anonymous functions14574.74%
Constants214
▷ Global constants209.35%
▷ Class constants19490.65%
▷ Public constants194100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
30 PNG files occupy 1.53MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/glycemic.png23.78KB6.39KB▼ 73.12%
assets/images/onboarding/whisk_logo.png7.15KB3.76KB▼ 47.34%
vendor/aristath/kirki/assets/images/3cm.png0.91KB0.25KB▼ 72.00%
src/gutenberg/images/onboarding/studio_4.png19.12KB9.48KB▼ 50.43%
vendor/aristath/kirki/assets/images/2cr.png0.85KB0.27KB▼ 68.58%