89% recipe-block

Code Review | Recipe Block

WordPress plugin Recipe Block scored89%from 54 tests.

About plugin

  • Plugin page: recipe-block
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Sep 10, 2020
  • Latest release: Aug 22, 2021
  • Number of updates: 4
  • Update frequency: every 86.8 days
  • Top authors: ryelle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /5,029 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.26ms] Passed 4 tests

A check of server-side resources used by Recipe Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.53 ▲5.56
Dashboard /wp-admin3.31 ▲0.0142.98 ▼3.09
Posts /wp-admin/edit.php3.37 ▲0.0146.66 ▲0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.03 ▼9.91
Media Library /wp-admin/upload.php3.24 ▲0.0136.98 ▲3.39

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Recipe Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.17 ▼1.224.52 ▲2.7942.92 ▲3.92
Dashboard /wp-admin2,206 ▲214.86 ▼0.1398.19 ▼7.1638.86 ▼3.68
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0638.50 ▼2.5134.20 ▼1.19
Add New Post /wp-admin/post-new.php6,352 ▲4,83227.60 ▲4.57873.38 ▲205.6958.07 ▼9.83
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.06109.37 ▲10.3746.12 ▲2.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: cooking, recipe, block, ingredients

recipe-block/rmb-recipe-block.php 85% from 13 tests

"Recipe Block" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("recipe-block.php" instead of "rmb-recipe-block.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected791 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript53724540
JSON500164
PHP261736
Markdown119029
Sass16021
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected