90% additional-block-styles

Code Review | Abs - Additional block styles

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

About plugin

  • Plugin page: additional-block-...
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 30, 2022
  • Latest release: Oct 31, 2023
  • Number of updates: 19
  • Update frequency: every 30.5 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,940 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼5.68ms] Passed 4 tests

This is a short check of server-side resources used by Abs - Additional block styles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2146.40 ▲4.50
Dashboard /wp-admin3.49 ▲0.1449.25 ▼15.82
Posts /wp-admin/edit.php3.60 ▲0.2444.17 ▼2.00
Add New Post /wp-admin/post-new.php6.53 ▲0.6490.02 ▼7.71
Media Library /wp-admin/upload.php3.41 ▲0.1838.10 ▲2.80
Abs /wp-admin/options-general.php?page=options-abs3.3935.80

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

Browser metrics Passed 4 tests

An overview of browser requirements for Abs - Additional block styles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.43 ▼0.302.22 ▲0.5044.56 ▲0.88
Dashboard /wp-admin2,199 ▲215.62 ▼0.1097.49 ▼20.8841.79 ▼6.24
Posts /wp-admin/edit.php2,104 ▲71.95 ▲0.0135.72 ▼1.3937.26 ▲1.54
Add New Post /wp-admin/post-new.php1,543 ▲1718.49 ▼4.45621.28 ▼51.6850.54 ▼2.41
Media Library /wp-admin/upload.php1,401 ▼24.18 ▲0.0398.45 ▲1.2940.59 ▼5.43
Abs /wp-admin/options-general.php?page=options-abs1,2612.0025.9250.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: blocks, block editor, webman, webman design, block style

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

The main PHP file in "Abs - Additional block styles" ver. 1.7.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 check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,354 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
PHP223306481,014
Sass48232346903
Markdown1450214
PO File15863185
CSS380038

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.29
Average class complexity6.83
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods23100.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants6
▷ Global constants6100.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 images were found in this plugin