90% blocks-css

Code Review | Blocks CSS: CSS Editor for Gutenberg Blocks

WordPress plugin Blocks CSS: CSS Editor for Gutenberg Blocks scored90%from 54 tests.

About plugin

  • Plugin page: blocks-css
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Feb 14, 2019
  • Latest release: Nov 22, 2023
  • Number of updates: 70
  • Update frequency: every 24.9 days
  • Top authors: themeisle (84.29%)hardeepasrani (17.14%)

Code review

54 tests

User reviews

21 reviews

Install metrics

4,000+ active /97,695 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.04ms] Passed 4 tests

Analyzing server-side resources used by Blocks CSS: CSS Editor for Gutenberg Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.94 ▼7.57
Dashboard /wp-admin3.36 ▲0.0653.23 ▲1.53
Posts /wp-admin/edit.php3.41 ▲0.0550.04 ▼5.96
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.41 ▼10.73
Media Library /wp-admin/upload.php3.29 ▲0.0533.12 ▲0.10

Server storage [IO: ▲0.10MB] [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: 65 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blocks CSS: CSS Editor for Gutenberg Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.32 ▼0.392.00 ▲0.3944.63 ▲1.31
Dashboard /wp-admin2,198 ▲175.63 ▼0.0991.00 ▼23.7241.07 ▼5.21
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0137.42 ▼2.5035.64 ▼2.37
Add New Post /wp-admin/post-new.php1,545 ▲1624.97 ▲1.63703.96 ▲28.5555.03 ▲0.97
Media Library /wp-admin/upload.php1,403 ▲94.19 ▼0.0294.34 ▼1.8942.13 ▲1.84

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: css, blocks css, gutenberg, block, css editor

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

The primary PHP file in "Blocks CSS: CSS Editor for Gutenberg Blocks" version 2.5.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,710 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
JSON58004,513
PHP353103177
Markdown18018
CSS1001
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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