94% gridable

Code Review | Gridable - The Missing Grid Content Editor

WordPress plugin Gridable - The Missing Grid Content Editor scored 94% from 54 tests.

About plugin

  • Plugin page: gridable
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.9-5.5.1
  • WordPress version: 5.8.1
  • First release: Sep 20, 2016
  • Latest release: Sep 17, 2020
  • Number of updates: 35
  • Update frequency: every 41.7 days
  • Top authors: pixelgrade (57.14%)euthelup (45.71%)

Code review

54 tests

User reviews

10 reviews

Install metrics

10,000+ active / 89,507 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼136.72ms] Passed 4 tests

This is a short check of server-side resources used by Gridable - The Missing Grid Content Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2334.10 ▲12.35
Dashboard /wp-admin3.16 ▲0.1149.29 ▲5.98
Posts /wp-admin/edit.php3.27 ▲0.1648.82 ▲3.72
Add New Post /wp-admin/post-new.php5.53 ▲0.0993.11 ▼549.94
Media Library /wp-admin/upload.php3.10 ▲0.1032.01 ▼6.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gridable - The Missing Grid Content Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲24816.37 ▲0.4316.97 ▲9.1343.90 ▼3.11
Dashboard /wp-admin2,998 ▲675.97 ▼0.06164.86 ▲20.57107.90 ▼2.19
Posts /wp-admin/edit.php2,770 ▲312.70 ▲0.0170.61 ▲9.1297.61 ▲16.36
Add New Post /wp-admin/post-new.php1,524 ▲2418.84 ▲0.15359.78 ▲7.30108.22 ▼1.19
Media Library /wp-admin/upload.php1,838 ▲285.02 ▲0.01153.32 ▲8.46125.66 ▲8.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gridable/admin/addons/attributes.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gridable/public/partials/col.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gridable/public/partials/row.php:19

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in gridable/assets to your readme.txt
The official readme.txt might help

gridable/gridable.php Passed 13 tests

The main PHP script in "Gridable - The Missing Grid Content Editor" version 1.2.9 is automatically included on every request by WordPress
78 characters long description:
A simple and intuitive tool for organizing your content into columns and rows.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,096 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5278322870
CSS512537730
PHP13186594457
SVG20139

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2882.35%
▷ Protected methods411.76%
▷ Private methods25.88%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/icons/icon.png1.53KB0.44KB▼ 70.91%