89% recipe-blocks

Code Review | Recipe Blocks

WordPress plugin Recipe Blocks scored89%from 54 tests.

About plugin

  • Plugin page: recipe-blocks
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: May 24, 2019
  • Number of updates: 8
  • Update frequency: every 3.0 days
  • Top authors: msicknick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,314 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 gracefully, with no errors

Server metrics [RAM: ▼0.26MB] [CPU: ▼7.27ms] Passed 4 tests

A check of server-side resources used by Recipe Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.27 ▲5.62
Dashboard /wp-admin3.32 ▲0.0251.33 ▲3.63
Posts /wp-admin/edit.php3.37 ▲0.0142.91 ▼5.71
Add New Post /wp-admin/post-new.php4.81 ▼1.0753.21 ▼30.44
Media Library /wp-admin/upload.php3.24 ▲0.0134.89 ▲3.46

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Recipe Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.29 ▼1.034.65 ▲2.9340.45 ▼8.16
Dashboard /wp-admin2,213 ▲255.85 ▼0.05110.81 ▼2.2943.34 ▲3.36
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0132.85 ▼8.2632.37 ▼3.99
Add New Post /wp-admin/post-new.php6,367 ▲4,85322.79 ▲5.27847.30 ▲174.6356.06 ▲2.29
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0395.98 ▼1.3542.88 ▼0.20

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

recipe-blocks/index.php 92% from 13 tests

"Recipe Blocks" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("recipe-blocks.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected61 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172058
CSS2002
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin