89% shoppable-recipes

Code Review | Whisk Recipe Widgets

WordPress plugin Whisk Recipe Widgets scored89%from 54 tests.

About plugin

  • Plugin page: shoppable-recipes
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 14, 2021
  • Latest release: Nov 24, 2021
  • Number of updates: 16
  • Update frequency: every 19.7 days
  • Top authors: paulfedorov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▲2.93ms] Passed 4 tests

Server-side resources used by Whisk Recipe Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2141.46 ▼0.49
Dashboard /wp-admin3.61 ▲0.3052.87 ▲4.35
Posts /wp-admin/edit.php3.66 ▲0.3046.33 ▲3.94
Add New Post /wp-admin/post-new.php6.14 ▲0.26104.50 ▲12.50
Media Library /wp-admin/upload.php3.47 ▲0.2437.46 ▲3.90
Whisk Widgets /wp-admin/options-general.php?page=shoppable_recipes3.4333.28

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
advanced
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
support
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Whisk Recipe Widgets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.41 ▼0.961.83 ▲0.2043.56 ▲4.02
Dashboard /wp-admin2,232 ▲415.06 ▼0.03106.38 ▲3.2041.06 ▼1.88
Posts /wp-admin/edit.php2,114 ▲252.33 ▲0.2835.46 ▲1.0333.15 ▲1.79
Add New Post /wp-admin/post-new.php1,531 ▲1723.55 ▲6.01673.07 ▼7.7539.62 ▼20.10
Media Library /wp-admin/upload.php1,411 ▲324.43 ▲0.1799.51 ▼4.6043.87 ▲0.71
Whisk Widgets /wp-admin/options-general.php?page=shoppable_recipes1,1422.6747.7131.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • support
    • db_upgraded
    • advanced
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: recipe widgets, save to whisk, whisk, shopping list, widgets...

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

The main file in "Whisk Recipe Widgets" v. 1.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.0")
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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 plugin1,419 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP153808291,358
JavaScript2142556
JSON1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity22.88
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods89
▷ Static methods1820.22%
▷ Public methods8494.38%
▷ Protected methods00.00%
▷ Private methods55.62%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin