94% wp-post-grid

Code Review | WP Post Grid

WordPress plugin WP Post Grid scored 94% from 54 tests.

About plugin

  • Plugin page: wp-post-grid
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5
  • WordPress version: 5.8.1
  • First release: Nov 3, 2015
  • Latest release: May 9, 2016
  • Number of updates: 4
  • Update frequency: every 47.2 days
  • Top authors: codenovo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 8,080 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼146.07ms] Passed 4 tests

This is a short check of server-side resources used by WP Post Grid
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0150.40 ▲8.22
Dashboard /wp-admin3.07 ▲0.0151.70 ▲0.22
Posts /wp-admin/edit.php3.12 ▲0.0149.36 ▼4.04
Add New Post /wp-admin/post-new.php5.42 ▼0.01100.17 ▼580.38
Media Library /wp-admin/upload.php3.01 ▲0.0138.24 ▼0.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Post Grid
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,730 ▲15816.02 ▲0.1110.27 ▼1.2353.63 ▼1.91
Dashboard /wp-admin2,982 ▲485.97 ▲0.05148.91 ▼23.28121.49 ▼6.43
Posts /wp-admin/edit.php2,754 ▲152.72 ▲0.0074.65 ▼0.69101.09 ▲1.67
Add New Post /wp-admin/post-new.php1,693 ▲1018.80 ▲0.38403.73 ▼23.08121.84 ▲7.04
Media Library /wp-admin/upload.php1,822 ▲155.01 ▼0.02166.99 ▲8.89136.20 ▲2.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/wp-post-grid/wp-post-grid.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"WP Post Grid" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Using this free portfolio plugin you can showcase your work in a jquery filtered portfolio system.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin819 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22319453
CSS31016352
JavaScript20014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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
Namespaces0
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ 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
16 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/grid3-preview.png6.81KB2.60KB▼ 61.86%
images/grid1.png0.25KB0.18KB▼ 28.08%
images/grid8.png0.16KB0.08KB▼ 46.91%
images/grid2.png0.17KB0.10KB▼ 42.13%
images/grid2-preview.png6.90KB2.96KB▼ 57.19%