89% insert-block-pattern-block

Code Review | Insert Block Pattern Block

WordPress plugin Insert Block Pattern Block scored89%from 54 tests.

About plugin

  • Plugin page: insert-block-patt...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6
  • WordPress version: 6.3.1
  • First release: Jan 20, 2021
  • Latest release: Jan 21, 2021
  • Number of updates: 23
  • Update frequency: every 0.1 days
  • Top authors: emunthe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /341 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.34MB] [CPU: ▼10.25ms] Passed 4 tests

A check of server-side resources used by Insert Block Pattern Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.11 ▼6.60
Dashboard /wp-admin3.14 ▼0.1735.08 ▼14.75
Posts /wp-admin/edit.php3.26 ▼0.1038.34 ▼6.83
Add New Post /wp-admin/post-new.php4.83 ▼1.0685.53 ▼12.80
Media Library /wp-admin/upload.php3.20 ▼0.0232.21 ▼2.67

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Insert Block Pattern Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13319.53 ▲5.171.83 ▲0.1442.19 ▼1.93
Dashboard /wp-admin2,285 ▲1309.88 ▲4.13260.96 ▲152.7542.36 ▼3.86
Posts /wp-admin/edit.php2,164 ▲758.34 ▲6.3585.88 ▲44.4136.87 ▲3.01
Add New Post /wp-admin/post-new.php6,413 ▲4,88528.47 ▲10.13721.54 ▲89.3735.77 ▼21.70
Media Library /wp-admin/upload.php1,482 ▲9111.18 ▲6.98130.01 ▲29.2043.36 ▼3.22

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Please add an image for screenshot #1 (Insert Block Pattern into page ( a paragraph ))
Please take inspiration from this readme.txt

insert-block-pattern-block/insert-block-pattern-block.php 92% from 13 tests

The entry point to "Insert Block Pattern Block" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 detected664 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript675105475
PHP1282380
JSON30072
PO File1101337

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin