84% blocks-by-raquel

Code Review | Blocks By Raquel

WordPress plugin Blocks By Raquel scored 84% from 54 tests.

About plugin

  • Plugin page: blocks-by-raquel
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: webcodedesigner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 146 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.01MB] [CPU: ▲0.63ms] Passed 4 tests

Server-side resources used by Blocks By Raquel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.06 ▲1.96
Dashboard /wp-admin3.31 ▲0.0149.56 ▲2.43
Posts /wp-admin/edit.php3.36 ▲0.0145.20 ▲0.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.20 ▲2.20
Media Library /wp-admin/upload.php3.23 ▲0.0136.14 ▼1.92

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Blocks By Raquel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1314.47 ▲1.311.75 ▼0.1043.28 ▼2.49
Dashboard /wp-admin2,206 ▼05.76 ▼0.15101.26 ▼7.5737.93 ▼4.30
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0035.62 ▲1.3233.23 ▲1.56
Add New Post /wp-admin/post-new.php1,539 ▲1923.11 ▲0.15668.02 ▲4.3753.38 ▲2.87
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.07109.00 ▲7.4447.11 ▲4.80

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-by-raquel/inc/categories.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-by-raquel/inc/patterns.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
There were not plugin tags detected

blocks-by-raquel/block-patterns.php 92% from 13 tests

The principal PHP file in "Blocks By Raquel" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("blocks-by-raquel.php" instead of "block-patterns.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin117 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4211989
Markdown17021
CSS1107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin