72% post-grid-carousel-ultimate

Code Review | Post Grid, Slider & Carousel Ultimate - with Shortcode, Gutenberg Block & Elementor Widget

WordPress plugin Post Grid, Slider & Carousel Ultimate - with Shortcode, Gutenberg Block & Elementor Widget scored72%from 54 tests.

About plugin

  • Plugin page: post-grid-carouse...
  • Plugin version: 1.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: May 14, 2018
  • Latest release: Nov 14, 2023
  • Number of updates: 46
  • Update frequency: every 44.8 days
  • Top authors: aazztech (47.83%)armanul94 (45.65%)AdlPlugins (10.87%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /40,274 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.47MB] [CPU: ▼5.25ms] Passed 4 tests

Server-side resources used by Post Grid, Slider & Carousel Ultimate - with Shortcode, Gutenberg Block & Elementor Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5442.08 ▼3.06
Dashboard /wp-admin3.82 ▲0.4751.79 ▼18.51
Posts /wp-admin/edit.php3.87 ▲0.5056.45 ▲5.97
Add New Post /wp-admin/post-new.php6.34 ▲0.4487.19 ▼5.39
Media Library /wp-admin/upload.php3.68 ▲0.4541.59 ▲7.34
Usage & Support /wp-admin/edit.php?post_type=adl-shortcode&page=support3.6637.19
New Grid/Carousel /wp-admin/post-new.php?post_type=adl-shortcode3.8049.04
All Grid/Carousel /wp-admin/edit.php?post_type=adl-shortcode3.8040.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Grid, Slider & Carousel Ultimate - with Shortcode, Gutenberg Block & Elementor Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,286 ▲55024.05 ▲9.7839.95 ▲38.0544.74 ▲0.38
Dashboard /wp-admin2,329 ▲1599.74 ▲4.06110.35 ▲7.4343.36 ▲2.29
Posts /wp-admin/edit.php2,231 ▲1319.27 ▲7.2977.63 ▲38.4737.11 ▼1.92
Add New Post /wp-admin/post-new.php6,416 ▲4,89027.92 ▲4.70792.79 ▲131.1940.24 ▼11.17
Media Library /wp-admin/upload.php1,556 ▲15611.26 ▲6.99126.21 ▲12.9241.23 ▼0.90
Usage & Support /wp-admin/edit.php?post_type=adl-shortcode&page=support1,0989.1672.9344.93
New Grid/Carousel /wp-admin/post-new.php?post_type=adl-shortcode6,10712.84261.4437.61
All Grid/Carousel /wp-admin/edit.php?post_type=adl-shortcode1,2429.6173.7725.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/post-grid-carousel-ultimate/includes/classes/shortcode.php
    • > /wp-content/plugins/post-grid-carousel-ultimate/includes/classes/migration.php
    • > /wp-content/plugins/post-grid-carousel-ultimate/includes/support.php
    • > /wp-content/plugins/post-grid-carousel-ultimate/post-grid-and-carousel-ultimate.php
    • > /wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-1.php
    • > /wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-2.php
  • 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: display_read_more in wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-3.php on line 46
    • > PHP Notice
      Undefined variable: display_title in wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-3.php on line 34
    • > PHP Notice
      Undefined variable: display_author in wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-4.php on line 22
    • > PHP Notice
      Undefined variable: display_title in wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-4.php on line 50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_object_taxonomies() in wp-content/plugins/post-grid-carousel-ultimate/includes/settings/sortable.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-grid-carousel-ultimate/includes/elementor/init.php:11
    • > PHP Notice
      Undefined variable: display_title in wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-2.php on line 15
    • > PHP Notice
      Undefined variable: display_content in wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-2.php on line 21
    • > PHP Notice
      Undefined variable: display_date in wp-content/plugins/post-grid-carousel-ultimate/includes/templates/theme-4.php on line 36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/post-grid-carousel-ultimate/includes/settings/general.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=adl-shortcode
    • > Network (severe)
    wp-content/plugins/post-grid-carousel-ultimate/assets/js/macy.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #6 (Filterable Grid), #7 (Widget), #8 (Backend: All Grid/Carousel), #9 (Backend: New Grid/Carousel)
You can look at the official readme.txt

post-grid-carousel-ultimate/post-grid-and-carousel-ultimate.php 92% from 13 tests

The primary PHP file in "Post Grid, Slider & Carousel Ultimate - with Shortcode, Gutenberg Block & Elementor Widget" version 1.6.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-grid-carousel-ultimate.php" instead of "post-grid-and-carousel-ultimate.php")

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected12,611 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
PHP328698416,134
CSS104592203,566
Sass12705955
JavaScript86994866
XML600735
SVG1400213
JSON110142

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 129)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity40.75
▷ Minimum class complexity2.00
▷ Maximum class complexity129.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity129.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods139
▷ Static methods42.88%
▷ Public methods10374.10%
▷ Protected methods75.04%
▷ Private methods2920.86%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/js/gc.png8.61KB5.00KB▼ 41.99%