78% boo-recipes

Code Review | Boo Recipes

WordPress plugin Boo Recipes scored 78% from 54 tests.

About plugin

  • Plugin page: boo-recipes
  • Plugin version: 2.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6.1
  • WordPress version: 5.8.1
  • First release: Sep 15, 2018
  • Latest release: Feb 19, 2021
  • Number of updates: 23
  • Update frequency: every 38.7 days
  • Top authors: boospot (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 3,286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.83MB] [CPU: ▼124.88ms] Passed 4 tests

Server-side resources used by Boo Recipes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.33 ▲0.4950.62 ▲16.29
Dashboard /wp-admin4.02 ▲0.9665.19 ▲30.08
Posts /wp-admin/edit.php4.07 ▲0.9757.22 ▲13.54
Add New Post /wp-admin/post-new.php6.53 ▲1.09110.07 ▼543.39
Media Library /wp-admin/upload.php3.89 ▲0.8947.50 ▲14.06
Recipe Tags /wp-admin/edit-tags.php?taxonomy=recipe_tags&post_type=boo_recipe3.8946.68
Skill Levels /wp-admin/edit-tags.php?taxonomy=skill_level&post_type=boo_recipe3.8935.93
All Recipes /wp-admin/edit.php?post_type=boo_recipe3.9549.59
Settings /wp-admin/edit.php?post_type=boo_recipe&page=boorecipe-settings3.9050.32
Recipe Categories /wp-admin/edit-tags.php?taxonomy=recipe_category&post_type=boo_recipe3.8948.79
Add New /wp-admin/post-new.php?post_type=boo_recipe4.1382.84
Dashboard /wp-admin/plugins.php?page=meta-box3.9341.09

Server storage [IO: ▲2.52MB] [DB: ▲0.06MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 521 new files
Database: no new tables, 5 new options
New WordPress options
widget_boorecipe_recipe_tag_cloud
widget_boorecipe_recipe_skill_level
widget_boorecipe_recipe_cat
widget_boorecipe_recipe_search_recipe
widget_boorecipe_recipes

Browser metrics Passed 4 tests

An overview of browser requirements for Boo Recipes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,917 ▲32116.72 ▲1.3419.74 ▲10.7745.90 ▼2.09
Dashboard /wp-admin3,058 ▲1245.95 ▼0.05144.05 ▼5.19110.12 ▲4.27
Posts /wp-admin/edit.php2,801 ▲622.71 ▼0.0167.35 ▼17.5886.92 ▼10.47
Add New Post /wp-admin/post-new.php1,736 ▲15518.21 ▲3.83403.68 ▲11.60108.87 ▼7.14
Media Library /wp-admin/upload.php1,888 ▲1405.06 ▲0.05161.26 ▼7.75115.57 ▲3.98
Recipe Tags /wp-admin/edit-tags.php?taxonomy=recipe_tags&post_type=boo_recipe1,7702.4161.0193.21
Skill Levels /wp-admin/edit-tags.php?taxonomy=skill_level&post_type=boo_recipe1,8012.3962.0280.01
All Recipes /wp-admin/edit.php?post_type=boo_recipe1,5392.6665.4472.40
Settings /wp-admin/edit.php?post_type=boo_recipe&page=boorecipe-settings2,6464.80122.8977.72
Recipe Categories /wp-admin/edit-tags.php?taxonomy=recipe_category&post_type=boo_recipe1,8012.3966.0076.28
Add New /wp-admin/post-new.php?post_type=boo_recipe4,1576.24167.61101.38
Dashboard /wp-admin/plugins.php?page=meta-box1,9032.3555.32108.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 5 options in the database
    • widget_boorecipe_recipe_search_recipe
    • widget_boorecipe_recipe_tag_cloud
    • widget_boorecipe_recipe_cat
    • widget_boorecipe_recipes
    • widget_boorecipe_recipe_skill_level

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/templates/video.php
    • > /wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/templates/audio.php
    • > /wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/templates/upload.php
    • > /wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/templates/media.php
  • 161× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/boo-recipes/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/fields/image-advanced.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/boo-recipes/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/fields/key-value.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/boo-recipes/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/fields/fieldset-text.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/boo-recipes/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/fields/textarea.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/boo-recipes/vendor/meta-box/meta-box/inc/fields/text-list.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/boo-recipes/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: schemaorg, recipes, recipe, rich snippet

boo-recipes/boo-recipes.php Passed 13 tests

"Boo Recipes" version 2.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
Easily add Recipes in user friendly way that generates SEO optimized recipes using Schema.org microdata.

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 detected25,924 lines of code in 474 files:
LanguageFilesBlank linesComment linesLines of code
PHP2944,3138,08715,371
CSS442691814,446
JavaScript1016165372,344
Sass255271661,725
PO File25448441,252
JSON400470
Markdown31160311
SVG1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.77
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes212
▷ Abstract classes83.77%
▷ Concrete classes20496.23%
▷ Final classes00.00%
Methods861
▷ Static methods32737.98%
▷ Public methods73785.60%
▷ Protected methods789.06%
▷ Private methods465.34%
Functions77
▷ Named functions6685.71%
▷ Anonymous functions1114.29%
Constants13
▷ Global constants969.23%
▷ Class constants430.77%
▷ Public constants4100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.62MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/meta-box/meta-box/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
vendor/meta-box/meta-box/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
vendor/meta-box/meta-box/img/jqueryui/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
assets/images/boo_recipe-default-image.png298.71KB148.71KB▼ 50.22%
assets/images/default-recipe-image.png298.71KB148.71KB▼ 50.22%