99% inline-css-block-gutenberg

Code Review | Inline CSS Block for Gutenberg

WordPress plugin Inline CSS Block for Gutenberg scored 99% from 54 tests.

About plugin

  • Plugin page: inline-css-block-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 5.8.1
  • First release: Jan 9, 2018
  • Latest release: Jan 9, 2018
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: hiddenpearls (100%)Otto42 (66.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 864 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼169.87ms] Passed 4 tests

An overview of server-side resources used by Inline CSS Block for Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.99 ▲11.71
Dashboard /wp-admin3.07 ▲0.0137.67 ▼5.16
Posts /wp-admin/edit.php3.12 ▲0.0145.32 ▼2.94
Add New Post /wp-admin/post-new.php5.42 ▼0.0292.79 ▼672.84
Media Library /wp-admin/upload.php3.01 ▲0.0032.84 ▲1.47

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Inline CSS Block for Gutenberg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8315.91 ▲0.258.60 ▼0.9244.38 ▼3.72
Dashboard /wp-admin2,970 ▲415.89 ▼0.12125.91 ▼27.18109.72 ▼5.41
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0061.28 ▼7.6883.49 ▼11.86
Add New Post /wp-admin/post-new.php1,678 ▼519.15 ▲0.42381.58 ▲10.12128.15 ▲20.58
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.02138.58 ▼16.18121.33 ▲2.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (coming soon)
Please take inspiration from this readme.txt

inline-css-block-gutenberg/inline-css-block-gutenberg.php 92% from 13 tests

The entry point to "Inline CSS Block for Gutenberg" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected12 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16179
JavaScript1002
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected