100% stylist

Code Review | Extra Block Design, Style, CSS for ANY Gutenberg Blocks

WordPress plugin Extra Block Design, Style, CSS for ANY Gutenberg Blocks scored 100% from 54 tests.

About plugin

  • Plugin page: stylist
  • Plugin version: 0.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 5.8.1
  • First release: Jun 27, 2018
  • Latest release: Apr 12, 2019
  • Number of updates: 41
  • Update frequency: every 7.4 days
  • Top authors: stylistwp (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active / 39,047 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.24MB] [CPU: ▼138.04ms] Passed 4 tests

Analyzing server-side resources used by Extra Block Design, Style, CSS for ANY Gutenberg Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.05 ▲0.3337.97 ▲13.51
Dashboard /wp-admin3.33 ▲0.2846.10 ▲1.84
Posts /wp-admin/edit.php3.38 ▲0.2748.93 ▲10.87
Add New Post /wp-admin/post-new.php5.63 ▲0.1989.08 ▼565.31
Media Library /wp-admin/upload.php3.21 ▲0.2134.94 ▲0.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Extra Block Design, Style, CSS for ANY Gutenberg Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12416.27 ▲0.7610.37 ▲1.1047.97 ▼3.93
Dashboard /wp-admin2,975 ▲416.10 ▲0.11134.56 ▼10.17109.51 ▼9.12
Posts /wp-admin/edit.php2,738 ▲22.72 ▲0.0163.66 ▲3.8590.37 ▲3.59
Add New Post /wp-admin/post-new.php1,674 ▲8019.04 ▲0.50371.79 ▲3.80106.25 ▼7.02
Media Library /wp-admin/upload.php1,809 ▲25.05 ▲0.03154.22 ▲5.60127.91 ▲9.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 | This is a short smoke test looking for server-side errors
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

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

stylist/stylist.php Passed 13 tests

"Extra Block Design, Style, CSS for ANY Gutenberg Blocks" version 0.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Simple yet powerful visual style editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected80,874 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript716,08018,11368,751
CSS72,0501,69810,861
PHP85459971,262

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity60.25
▷ Minimum class complexity34.00
▷ Maximum class complexity113.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods4869.57%
▷ Protected methods00.00%
▷ Private methods2130.43%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/breakpoint-left.png0.35KB0.37KB0.00%
images/metric.png20.21KB5.17KB▼ 74.43%
images/metric-gray.png20.20KB5.17KB▼ 74.43%
images/bottom-resize.png0.10KB0.11KB0.00%
images/right-resize.png0.10KB0.10KB0.00%