89% grid-block

Code Review | Grid Block

WordPress plugin Grid Block scored89%from 54 tests.

About plugin

  • Plugin page: grid-block
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Feb 23, 2019
  • Latest release: May 31, 2019
  • Number of updates: 16
  • Update frequency: every 6.1 days
  • Top authors: digitalapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,280 total downloads


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.22MB] [CPU: ▼11.70ms] Passed 4 tests

This is a short check of server-side resources used by Grid Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.49 ▼1.23
Dashboard /wp-admin3.37 ▲0.0254.25 ▼4.20
Posts /wp-admin/edit.php3.49 ▲0.1450.41 ▲5.56
Add New Post /wp-admin/post-new.php4.87 ▼1.0251.84 ▼46.93
Media Library /wp-admin/upload.php3.29 ▲0.0742.51 ▲5.86

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Grid Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲21424.32 ▲9.711.92 ▲0.1342.62 ▼1.88
Dashboard /wp-admin2,361 ▲17014.09 ▲9.18317.07 ▲209.9863.30 ▲20.96
Posts /wp-admin/edit.php2,278 ▲18913.04 ▲11.03114.71 ▲76.9332.57 ▲1.08
Add New Post /wp-admin/post-new.php6,355 ▲4,82728.27 ▲9.72761.40 ▲172.0539.78 ▼17.18
Media Library /wp-admin/upload.php1,520 ▲13513.43 ▲9.21157.95 ▲54.9743.09 ▼0.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === grid-block === )
  • Screenshots: A description for screenshot #4 is missing in grid-block/assets to your readme.txt
You can look at the official readme.txt

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

"Grid Block" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
Responsive grid block based on the twelve column system for Gutenberg.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected756 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG files were detected