84% grids

Code Review | Grids: Layout builder for WordPress

WordPress plugin Grids: Layout builder for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: grids
  • Plugin version: 1.3.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2019
  • Latest release: Nov 16, 2023
  • Number of updates: 112
  • Update frequency: every 15.4 days
  • Top authors: evolvesnc (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /57,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Grids: Layout builder for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3837.83 ▼2.00
Dashboard /wp-admin3.47 ▲0.1648.77 ▲3.08
Posts /wp-admin/edit.php3.58 ▲0.2246.71 ▼0.99
Add New Post /wp-admin/post-new.php6.08 ▲0.2088.57 ▼11.77
Media Library /wp-admin/upload.php3.39 ▲0.1635.02 ▲2.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Grids: Layout builder for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5814.68 ▼0.061.72 ▼0.0443.43 ▲0.35
Dashboard /wp-admin2,221 ▲445.59 ▼0.0691.41 ▼10.1942.49 ▼1.16
Posts /wp-admin/edit.php2,124 ▲242.00 ▲0.0636.94 ▼5.3133.12 ▼6.58
Add New Post /wp-admin/post-new.php6,226 ▲4,70019.29 ▼4.23897.07 ▲273.8838.83 ▼11.88
Media Library /wp-admin/upload.php1,420 ▲234.15 ▼0.03100.38 ▲1.4243.06 ▼3.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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 15× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/grids/compat/twentynineteen.php
    • > /wp-content/plugins/grids/src/Core/Blocks/Area.php
    • > /wp-content/plugins/grids/src/Core/Utils/Exception.php
    • > /wp-content/plugins/grids/src/Core/Utils/Logger.php
    • > /wp-content/plugins/grids/src/Core/Utils/Asset.php
    • > /wp-content/plugins/grids/src/Core/Utils/Filter.php
    • > /wp-content/plugins/grids/src/Core.php
    • > /wp-content/plugins/grids/config.php
    • > /wp-content/plugins/grids/src/Core/Utils/CSS.php
    • > /wp-content/plugins/grids/src/Core/Block.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #5, #6, #7 in grids/assets to your readme.txt
Please take inspiration from this readme.txt

grids/grids.php 92% from 13 tests

The primary PHP file in "Grids: Layout builder for WordPress" version 1.3.10 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
Success! There were no dangerous files found in this plugin1,670 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP245278141,644
JavaScript23016
JSON1005
SVG3003
CSS2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods99
▷ Static methods4444.44%
▷ Public methods9191.92%
▷ Protected methods00.00%
▷ Private methods88.08%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin