89% guten-post-layout

Code Review | Guten Post Layout - An Advanced Post Grid Collection for WordPress Gutenberg

WordPress plugin Guten Post Layout - An Advanced Post Grid Collection for WordPress Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: guten-post-layout
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2018
  • Latest release: Dec 6, 2022
  • Number of updates: 20
  • Update frequency: every 73.5 days
  • Top authors: adreastrian (65%)devutpol (40%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /32,325 total downloads

Benchmarks

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.28MB] [CPU: ▼4.07ms] Passed 4 tests

A check of server-side resources used by Guten Post Layout - An Advanced Post Grid Collection for WordPress Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2736.82 ▲0.05
Dashboard /wp-admin3.57 ▲0.2646.32 ▲1.61
Posts /wp-admin/edit.php3.68 ▲0.3248.00 ▲3.67
Add New Post /wp-admin/post-new.php6.25 ▲0.3694.66 ▲1.07
Media Library /wp-admin/upload.php3.49 ▲0.2634.47 ▼19.01
Guten Post Layout /wp-admin/themes.php?page=guten-post-layout-settings3.4631.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Guten Post Layout - An Advanced Post Grid Collection for WordPress Gutenberg: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.221.58 ▼0.0738.08 ▼0.06
Dashboard /wp-admin2,196 ▲165.61 ▼0.0492.43 ▲3.1241.22 ▲0.15
Posts /wp-admin/edit.php2,104 ▲71.99 ▲0.0440.64 ▲0.3334.55 ▼1.46
Add New Post /wp-admin/post-new.php6,200 ▲4,67419.56 ▼3.57899.32 ▲190.5055.44 ▲4.95
Media Library /wp-admin/upload.php1,407 ▲44.18 ▲0.0097.63 ▼10.2743.43 ▼7.84
Guten Post Layout /wp-admin/themes.php?page=guten-post-layout-settings1,4519.36258.8781.54

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires php: Invalid version format
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

guten-post-layout/guten-post-layout.php Passed 13 tests

The principal PHP file in "Guten Post Layout - An Advanced Post Grid Collection for WordPress Gutenberg" v. 1.2.4 is loaded by WordPress automatically on each request
114 characters long description:
Your blog post layouts will be awesome without any doubt! We have grid, sliders, masonry and list layouts for you!

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
No dangerous file extensions were detected6,272 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
Sass3154412,660
JavaScript12230401,415
PHP73521981,308
CSS68612616
Markdown1870248
SVG11025

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.72
Average class complexity54.00
▷ Minimum class complexity2.00
▷ Maximum class complexity217.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods615.38%
▷ Public methods3897.44%
▷ Protected methods00.00%
▷ Private methods12.56%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/review.png45.01KB16.99KB▼ 62.27%
admin/img/help-service.png172.70KB54.95KB▼ 68.18%
src/assets/img/upgrade-pro.png5.11KB2.73KB▼ 46.63%