84% post-grid-elementor-addon

Code Review | Post Grid Elementor Addon

WordPress plugin Post Grid Elementor Addon scored84%from 54 tests.

About plugin

  • Plugin page: post-grid-element...
  • Plugin version: 2.0.15
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 8, 2018
  • Latest release: Nov 21, 2023
  • Number of updates: 61
  • Update frequency: every 30.7 days
  • Top authors: wpconcern (47.54%)maneshtimilsina (47.54%)hookandhook (4.92%)wphait (4.92%)

Code review

54 tests

User reviews

55 reviews

Install metrics

20,000+ active /292,156 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.56ms] Passed 4 tests

Analyzing server-side resources used by Post Grid Elementor Addon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.49 ▼9.09
Dashboard /wp-admin3.41 ▲0.0646.88 ▼16.19
Posts /wp-admin/edit.php3.53 ▲0.1650.93 ▲2.04
Add New Post /wp-admin/post-new.php6.01 ▲0.1292.39 ▼6.62
Media Library /wp-admin/upload.php3.34 ▲0.1037.38 ▲1.65

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Grid Elementor Addon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6714.27 ▼0.081.68 ▲0.0237.00 ▼8.62
Dashboard /wp-admin2,222 ▲455.60 ▼0.0794.73 ▲4.5142.55 ▼0.83
Posts /wp-admin/edit.php2,124 ▲241.99 ▼0.0341.12 ▲1.0836.08 ▼4.57
Add New Post /wp-admin/post-new.php1,545 ▲1923.45 ▲0.50672.26 ▲19.7553.65 ▼4.11
Media Library /wp-admin/upload.php1,418 ▲154.25 ▲0.07100.64 ▲1.9541.96 ▲0.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: all_posts in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-4.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Nilambar\\Welcome\\add_action() in wp-content/plugins/post-grid-elementor-addon/vendor/ernilambar/wp-welcome/init.php:32
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-1.php:2
    • > PHP Notice
      Undefined variable: all_posts in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-3.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-4.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-5.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorPostGrid\\add_action() in wp-content/plugins/post-grid-elementor-addon/plugin.php:130
    • > PHP Notice
      Undefined variable: all_posts in wp-content/plugins/post-grid-elementor-addon/widgets/layouts/layout-5.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt is a good inspiration

post-grid-elementor-addon/post-grid-elementor-addon.php Passed 13 tests

Analyzing the main PHP file in "Post Grid Elementor Addon" version 2.0.15
132 characters long description:
Elementor page builder addon to display posts in a grid. Useful for generating post grid from your blog posts with multiple options.

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
No dangerous file extensions were detected3,378 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP297981,4023,184
JSON300150
CSS29041
Markdown1102
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.47
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods149
▷ Static methods4228.19%
▷ Public methods11375.84%
▷ Protected methods1711.41%
▷ Private methods1912.75%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants16
▷ Global constants1168.75%
▷ Class constants531.25%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin