72% bordered-blocks

Code Review | Bordered Blocks - Add subtle borders or outlines and labels to Blocks in the Editor

WordPress plugin Bordered Blocks - Add subtle borders or outlines and labels to Blocks in the Editor scored72%from 54 tests.

About plugin

  • Plugin page: bordered-blocks
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2022
  • Latest release: Mar 18, 2023
  • Number of updates: 19
  • Update frequency: every 18.6 days
  • Top authors: senff (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /813 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.08MB] [CPU: ▼11.11ms] Passed 4 tests

A check of server-side resources used by Bordered Blocks - Add subtle borders or outlines and labels to Blocks in the Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0941.06 ▼4.38
Dashboard /wp-admin3.44 ▲0.0547.73 ▼17.90
Posts /wp-admin/edit.php3.55 ▲0.1550.27 ▼4.20
Add New Post /wp-admin/post-new.php6.04 ▲0.1192.59 ▼17.96
Media Library /wp-admin/upload.php3.36 ▲0.0938.82 ▲1.36
Bordered Blocks /wp-admin/options-general.php?page=borderedblocksconfig3.3838.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
borderedblocks_options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Bordered Blocks - Add subtle borders or outlines and labels to Blocks in the Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.38 ▼0.031.88 ▼0.0044.84 ▼2.41
Dashboard /wp-admin2,218 ▲385.76 ▲0.1695.32 ▲7.9840.64 ▼3.83
Posts /wp-admin/edit.php2,128 ▲312.29 ▲0.2538.73 ▼2.2935.50 ▲0.25
Add New Post /wp-admin/post-new.php1,732 ▲20424.49 ▲1.29626.92 ▼127.1734.96 ▼26.07
Media Library /wp-admin/upload.php1,423 ▲204.53 ▲0.35115.33 ▲6.2853.35 ▲7.45
Bordered Blocks /wp-admin/options-general.php?page=borderedblocksconfig2,2252.5756.6068.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=borderedblocksconfig
    • > Notice in wp-content/plugins/bordered-blocks/assets/plugin-info.php+7
    Trying to access array offset on value of type bool

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bordered-blocks/bordered-blocks.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bordered-blocks/assets/supported-blocks.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bordered-blocks/assets/plugin-info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bordered-blocks/assets/faq.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: borders, gutenberg, labels, blocks, editor

bordered-blocks/bordered-blocks.php 92% from 13 tests

The principal PHP file in "Bordered Blocks - Add subtle borders or outlines and labels to Blocks in the Editor" v. 1.1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 228 characters long)

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
Everything looks great! No dangerous files found in this plugin1,233 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP614637783
CSS2533229
JavaScript33322146
Markdown146075

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/sophie.png179.83KB59.47KB▼ 66.93%