100% additional-block-styles

Code Review | Abs - Additional block styles

WordPress plugin Abs - Additional block styles scored 100% from 54 tests.

About plugin

  • Plugin page: additional-block-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 5.9.2
  • First release: Mar 30, 2022
  • Latest release: Mar 30, 2022
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 14 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Abs - Additional block styles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0752.98 ▼0.43
Dashboard /wp-admin3.47 ▲0.0634.83 ▼0.44
Posts /wp-admin/edit.php3.70 ▲0.0637.58 ▼5.67
Add New Post /wp-admin/post-new.php6.98 ▲0.0195.25 ▼1,175.70
Media Library /wp-admin/upload.php3.35 ▲0.0627.96 ▲4.62

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Abs - Additional block styles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲7515.68 ▲0.015.97 ▲0.413.05 ▲0.45
Dashboard /wp-admin2,878 ▲246.15 ▲0.01117.62 ▼19.74156.82 ▼5.71
Posts /wp-admin/edit.php2,694 ▲33.36 ▲0.1362.89 ▲0.13142.52 ▲1.61
Add New Post /wp-admin/post-new.php1,667 ▲617.50 ▲1.13414.43 ▲5.00153.21 ▼2.18
Media Library /wp-admin/upload.php1,698 ▼05.57 ▲0.05140.26 ▲3.63189.21 ▲3.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 shallow check for server-side errors
Even though everything seems fine, this is not 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 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: block editor, webman, blocks, webman design, block styles

additional-block-styles/additional-block-styles.php Passed 13 tests

The main PHP file in "Abs - Additional block styles" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Provides additional styles for WordPress native blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,155 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
Sass33187213529
PHP20216466505
PO File1232596
CSS220022
Markdown1203

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity4.83
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin