89% block-styling

Code Review | Block Styling Backend

WordPress plugin Block Styling Backend scored89%from 54 tests.

About plugin

  • Plugin page: block-styling
  • Plugin version: 3...
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Nov 1, 2022
  • Number of updates: 13
  • Update frequency: every 2.2 days
  • Top authors: dennysdionigi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Block Styling Backend
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.07 ▼2.52
Dashboard /wp-admin3.33 ▼0.0246.65 ▼13.46
Posts /wp-admin/edit.php3.38 ▲0.0247.82 ▼4.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.16 ▼20.94
Media Library /wp-admin/upload.php3.25 ▲0.0233.76 ▲3.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Block Styling Backend
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.22 ▼1.134.05 ▲2.1640.33 ▼3.00
Dashboard /wp-admin2,211 ▲205.83 ▲0.9394.83 ▼3.2837.99 ▼4.29
Posts /wp-admin/edit.php2,091 ▲22.04 ▲0.0338.78 ▼2.0334.38 ▼1.24
Add New Post /wp-admin/post-new.php1,531 ▼223.26 ▼0.06594.66 ▼13.3750.81 ▲1.19
Media Library /wp-admin/upload.php1,384 ▼44.18 ▲0.0193.91 ▼3.3243.33 ▲2.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: ui, gutenberg, css, ux

block-styling/block-styling-backend.php 69% from 13 tests

"Block Styling Backend" version 3...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "3...")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-styling.php" instead of "block-styling-backend.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
No dangerous file extensions were detected145 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2463197
CSS20048

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
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
No PNG files were detected