90% gutenstrap-blocks

Code Review | Gutenstrap Blocks

WordPress plugin Gutenstrap Blocks scored90%from 54 tests.

About plugin

  • Plugin page: gutenstrap-blocks
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2019
  • Latest release: Jun 10, 2019
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: eolant (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,002 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼14.58ms] Passed 4 tests

An overview of server-side resources used by Gutenstrap Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1042.66 ▼0.72
Dashboard /wp-admin3.40 ▲0.0949.64 ▼5.43
Posts /wp-admin/edit.php3.51 ▲0.1547.08 ▼5.71
Add New Post /wp-admin/post-new.php4.91 ▼0.9853.31 ▼46.46
Media Library /wp-admin/upload.php3.32 ▲0.0937.03 ▲1.08
Gutenstrap Blocks /wp-admin/options-general.php?page=gutenstrap_blocks3.2933.19

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
gutenstrap_blocks_settings
can_compress_scripts

Browser metrics Passed 4 tests

Gutenstrap Blocks: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.21 ▼0.142.31 ▲0.4244.68 ▼1.85
Dashboard /wp-admin2,201 ▲245.64 ▲0.0590.48 ▼12.9339.51 ▼6.34
Posts /wp-admin/edit.php2,109 ▲92.02 ▼0.0137.79 ▼0.8335.63 ▼1.99
Add New Post /wp-admin/post-new.php6,197 ▲4,67119.28 ▼3.67951.04 ▲271.0972.50 ▲8.59
Media Library /wp-admin/upload.php1,403 ▲94.21 ▼0.01100.15 ▼5.9742.61 ▼5.30
Gutenstrap Blocks /wp-admin/options-general.php?page=gutenstrap_blocks8402.0130.3027.98

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
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: grid, blocks, gutenberg bootstrap, gutenberg, gutenstrap...

gutenstrap-blocks/gutenstrap-blocks.php Passed 13 tests

This is the main PHP file of "Gutenstrap Blocks" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Collection of Bootstrap 4 blocks for Gutenberg WordPress editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected20,722 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,4624612,655
JavaScript52,0021,7037,758
PHP876436309

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.60
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods12.94%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin