83% recipe-card-blocks-by-wpzoom

Code Review | Recipe Card Blocks for Gutenberg & Elementor - Best WordPress Recipe Plugin

WordPress plugin Recipe Card Blocks for Gutenberg & Elementor - Best WordPress Recipe Plugin scored83%from 54 tests.

About plugin

  • Plugin page: recipe-card-block...
  • Plugin version: 3.2.13
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 18, 2018
  • Latest release: Nov 30, 2023
  • Number of updates: 128
  • Update frequency: every 15.1 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

10,000+ active /344,656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.38MB] [CPU: ▲5.45ms] Passed 4 tests

A check of server-side resources used by Recipe Card Blocks for Gutenberg & Elementor - Best WordPress Recipe Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.76 ▲1.3046.12 ▲4.87
Dashboard /wp-admin4.70 ▲1.3654.12 ▼6.23
Posts /wp-admin/edit.php4.82 ▲1.4656.15 ▲10.31
Add New Post /wp-admin/post-new.php7.44 ▲1.55108.19 ▲14.23
Media Library /wp-admin/upload.php4.62 ▲1.3947.60 ▲12.83
Free vs. PRO /wp-admin/admin.php?page=wpzoom-recipe-card-vs-pro4.6039.87
Settings /wp-admin/admin.php?page=wpzoom-recipe-card-settings4.6046.36
All Recipes /wp-admin/edit.php?post_type=wpzoom_rcb4.6744.85

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Recipe Card Blocks for Gutenberg & Elementor - Best WordPress Recipe Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,003 ▲26714.95 ▲0.6017.40 ▲15.5939.18 ▼4.22
Dashboard /wp-admin2,288 ▲1175.80 ▲0.1396.44 ▼1.7641.71 ▼7.51
Posts /wp-admin/edit.php2,196 ▲962.32 ▲0.3748.29 ▲8.7636.38 ▼0.50
Add New Post /wp-admin/post-new.php6,244 ▲4,71520.40 ▼2.77881.23 ▲258.1051.01 ▼5.62
Media Library /wp-admin/upload.php1,493 ▲904.39 ▲0.21100.33 ▲4.8446.59 ▲5.50
Free vs. PRO /wp-admin/admin.php?page=wpzoom-recipe-card-vs-pro1,3451.8433.7456.29
Settings /wp-admin/admin.php?page=wpzoom-recipe-card-settings2,8824.77134.7966.65
All Recipes /wp-admin/edit.php?post_type=wpzoom_rcb1,2082.2341.9532.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/recipe-card-blocks-by-wpzoom/src/classes/class-wpzoom-plugin-loader.php on line 20
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/recipe-card-blocks-by-wpzoom/src/classes/class-wpzoom-plugin-loader.php on line 20
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/recipe-card-blocks-by-wpzoom/elementor/widgets/recipe-card/templates/rcb-newdesign.php:15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/recipe-card-blocks-by-wpzoom/elementor/widgets/recipe-card/templates/rcb-simple.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_language_attributes() in wp-content/plugins/recipe-card-blocks-by-wpzoom/templates/public/print.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recipe-card-blocks-by-wpzoom/src/classes/class-wpzoom-print.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPZOOMElementorRecipeCard\\add_action() in wp-content/plugins/recipe-card-blocks-by-wpzoom/elementor/wpzoom-elementor-recipe-card.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/recipe-card-blocks-by-wpzoom/src/classes/class-wpzoom-plugin-loader.php:24
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/recipe-card-blocks-by-wpzoom/src/classes/class-wpzoom-plugin-loader.php on line 20
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/recipe-card-blocks-by-wpzoom/src/classes/class-wpzoom-plugin-loader.php on line 20

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can take inspiration from this readme.txt

recipe-card-blocks-by-wpzoom/wpzoom-recipe-card.php 92% from 13 tests

"Recipe Card Blocks for Gutenberg & Elementor - Best WordPress Recipe Plugin" version 3.2.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("recipe-card-blocks-by-wpzoom.php" instead of "wpzoom-recipe-card.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin13,194 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,6862,20710,138
CSS15168611,803
JavaScript121991741,162
XML10041
JSON40032
SVG40118

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 108)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity35.00
▷ Minimum class complexity1.00
▷ Maximum class complexity357.00
Average method complexity5.07
▷ Minimum method complexity1.00
▷ Maximum method complexity108.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes39.09%
Methods277
▷ Static methods10638.27%
▷ Public methods25491.70%
▷ Protected methods155.42%
▷ Private methods82.89%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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
16 PNG files occupy 1.36MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
elementor/assets/images/examples/rcb-example-default.png210.14KB51.43KB▼ 75.52%
dist/assets/images/previews/wpzoom_rcb_settings_display_course.png64.87KB70.03KB0.00%
dist/assets/images/previews/wpzoom_rcb_settings_display_cuisine.png65.28KB70.55KB0.00%
dist/assets/images/previews/wpzoom_rcb_settings_user_ratings.png61.07KB66.13KB0.00%
elementor/assets/images/examples/rcb-example-classic.png117.96KB40.59KB▼ 65.59%