84% blocks-post-grid

Code Review | Blocks Post Grid

WordPress plugin Blocks Post Grid scored84%from 54 tests.

About plugin

  • Plugin page: blocks-post-grid
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: Feb 3, 2019
  • Latest release: Feb 3, 2019
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: jakirhasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼17.26ms] Passed 4 tests

An overview of server-side resources used by Blocks Post Grid
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.11 ▼7.46
Dashboard /wp-admin3.33 ▼0.0247.93 ▼8.86
Posts /wp-admin/edit.php3.38 ▲0.0249.38 ▼1.72
Add New Post /wp-admin/post-new.php4.88 ▼1.0154.30 ▼50.99
Media Library /wp-admin/upload.php3.25 ▲0.0236.14 ▲0.45

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Blocks Post Grid
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.69 ▼0.662.11 ▼0.1143.16 ▲0.98
Dashboard /wp-admin2,221 ▲215.84 ▲0.05101.23 ▼5.9445.30 ▲1.60
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0541.41 ▲5.1238.98 ▲1.19
Add New Post /wp-admin/post-new.php6,366 ▲4,82528.80 ▲10.50839.51 ▲177.6254.07 ▼3.94
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0498.16 ▼5.0041.43 ▼2.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Blocks_Post_Grid\\Post_Grid\\add_action() in wp-content/plugins/blocks-post-grid/lib/enqueue-scripts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-post-grid/blocks/postlist/index.php:379
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-post-grid/blocks/postgrid/index.php:383

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
3 plugin tags: gutenberg, post block, dynamic

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

Analyzing the main PHP file in "Blocks Post Grid" version 1.0.3
108 characters long description:
Dynamic Post Layout for Gutenberg. It is a simple plugin that allows you to create blog posts for Gutenberg.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,491 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP496731,434
Markdown129053
CSS1002
JavaScript2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin