80% grid-blocks

Code Review | Grid Blocks

WordPress plugin Grid Blocks scored80%from 54 tests.

About plugin

  • Plugin page: grid-blocks
  • Plugin version: 5.9.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Feb 7, 2022
  • Number of updates: 8
  • Update frequency: every 52.4 days
  • Top authors: philbuchanan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.24MB] [CPU: ▼41.14ms] Passed 4 tests

A check of server-side resources used by Grid Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7214.05 ▼24.72
Dashboard /wp-admin2.78 ▼0.5316.50 ▼33.25
Posts /wp-admin/edit.php2.78 ▼0.5817.46 ▼30.46
Add New Post /wp-admin/post-new.php2.78 ▼3.1115.36 ▼76.11
Media Library /wp-admin/upload.php2.78 ▼0.4513.99 ▼18.78

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Grid Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.371.79 ▼0.2442.32 ▼0.87
Dashboard /wp-admin2,206 ▲215.85 ▲0.0196.41 ▼22.2438.35 ▼6.47
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0235.10 ▼0.2335.69 ▲3.17
Add New Post /wp-admin/post-new.php7,859 ▲6,32619.98 ▼3.03912.05 ▲243.2851.65 ▼4.76
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0394.55 ▲0.3341.32 ▼0.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/grid-blocks/grid-blocks.php+26
    include(wp-content/themes/twentytwentyone/blocks/build/index.asset.php): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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: responsive, columns, gutenberg, block, block grid

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

The main file in "Grid Blocks" v. 5.9.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Gutenberg blocks for creating responsive grid rows, columns, and block grids.

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
No dangerous file extensions were detected1,844 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript271481271,468
JSON400200
Sass53729130
PHP2121242
CSS1004

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin