10% blossom-recipe-maker

Code Review | Blossom Recipe Maker

WordPress plugin Blossom Recipe Maker scored10%from 54 tests.

About plugin

  • Plugin page: blossom-recipe-maker
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2018
  • Latest release: May 2, 2023
  • Number of updates: 118
  • Update frequency: every 13.8 days
  • Top authors: blossomthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /21,223 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.90MB] [CPU: ▲10.98ms] Passed 4 tests

Server-side resources used by Blossom Recipe Maker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9257.13 ▲12.96
Dashboard /wp-admin4.24 ▲0.9473.91 ▲24.12
Posts /wp-admin/edit.php4.28 ▲0.9367.48 ▲12.23
Add New Post /wp-admin/post-new.php6.76 ▲0.8897.35 ▲0.08
Media Library /wp-admin/upload.php4.12 ▲0.8953.39 ▲18.63
Add New /wp-admin/post-new.php?post_type=blossom-recipe4.3284.27
Categories /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=blossom-recipe4.1653.98
Cuisines /wp-admin/edit-tags.php?taxonomy=recipe-cuisine&post_type=blossom-recipe4.1652.22
Cooking Methods /wp-admin/edit-tags.php?taxonomy=recipe-cooking-method&post_type=blossom-recipe4.1653.52
Tags /wp-admin/edit-tags.php?taxonomy=recipe-tag&post_type=blossom-recipe4.1650.00
All Recipes /wp-admin/edit.php?post_type=blossom-recipe4.2870.23

Server storage [IO: ▲3.60MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 12 new options
New WordPress options
widget_theysaidso_widget
widget_brm_recipe_categories
db_upgraded
_blossom_recipe_maker
widget_brm_recent_recipe
br_recipe_settings
widget_brm_popular_recipe
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Blossom Recipe Maker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,176 ▲43020.49 ▲6.1137.22 ▲35.1948.96 ▲5.06
Dashboard /wp-admin2,427 ▲2367.99 ▲2.13150.17 ▲46.4041.65 ▼3.68
Posts /wp-admin/edit.php2,330 ▲2385.32 ▲3.3157.27 ▲15.6833.87 ▼4.22
Add New Post /wp-admin/post-new.php6,351 ▲4,83725.21 ▲7.51876.48 ▲196.5734.78 ▼23.42
Media Library /wp-admin/upload.php1,506 ▲1155.67 ▲1.4798.77 ▼2.9946.55 ▼2.19
Add New /wp-admin/post-new.php?post_type=blossom-recipe3,84412.18252.0574.89
Categories /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=blossom-recipe1,5355.2350.5629.05
Cuisines /wp-admin/edit-tags.php?taxonomy=recipe-cuisine&post_type=blossom-recipe1,5355.1850.9831.88
Cooking Methods /wp-admin/edit-tags.php?taxonomy=recipe-cooking-method&post_type=blossom-recipe1,5415.0952.5229.82
Tags /wp-admin/edit-tags.php?taxonomy=recipe-tag&post_type=blossom-recipe1,4815.1653.3328.59
Settings /wp-admin/class-blossom-recipe-admin.php260.440.0713.27
All Recipes /wp-admin/edit.php?post_type=blossom-recipe2,1735.3258.8933.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 12 options
    • widget_brm_recent_recipe
    • db_upgraded
    • widget_brm_recipe_categories
    • _blossom_recipe_maker
    • br_recipe_settings
    • widget_brm_recipe_categories_slider
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • ...

Smoke tests 25% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blossom-recipe-maker/public/partials/blossom-recipe-public-display.php
    • > /wp-content/plugins/blossom-recipe-maker/admin/partials/blossom-recipe-admin-display.php
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossom-recipe-maker/includes/class-blossom-recipe-taxonomy-thumbnail.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossom-recipe-maker/includes/widgets/widget-recipe-categories.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/blossom-recipe-maker/includes/templates/archive-blossom-recipe.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossom-recipe-maker/includes/widgets/widget-recipes-category-slider.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/blossom-recipe-maker/admin/meta-data/recipe-ratings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossom-recipe-maker/includes/templates/recipe-search-results.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossom-recipe-maker/includes/widgets/widget-recent-recipe.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blossom-recipe-maker/includes/backend/settings/misc.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/blossom-recipe-maker/admin/meta-data/recipe-notes.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/blossom-recipe-maker/admin/meta-data/recipe-overview.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/class-blossom-recipe-admin.php
    • > Network (severe)
    wp-admin/class-blossom-recipe-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Overview Tab Backend), #2 (Ingredients Tab Backend), #3 (Instructions Tab Backend), #4 (Gallery Tab Backend), #5 (Plugin Settings Page)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

blossom-recipe-maker/blossom-recipe-maker.php Passed 13 tests

This is the main PHP file of "Blossom Recipe Maker" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
Blossom Recipe Maker is a free Recipe Plugin to create recipes for any food blog.

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
Good job! No executable or dangerous file extensions detected7,861 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,4431,2275,027
CSS5358652,062
JavaScript12212160691
XML10050
HTML10018
SVG30013

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.36
Average class complexity20.70
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods122
▷ Static methods97.38%
▷ Public methods11795.90%
▷ Protected methods00.00%
▷ Private methods54.10%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) public/images/demo.png35.53KB0.00KB▼ 100.00%