83% void-elementor-post-grid-addon-for-elementor-page-builder

Code Review | Void Elementor Post Grid Addon for Elementor Page builder

WordPress plugin Void Elementor Post Grid Addon for Elementor Page builder scored83%from 54 tests.

About plugin

  • Plugin page: void-elementor-po...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: Aug 24, 2023
  • Number of updates: 76
  • Update frequency: every 30.0 days
  • Top authors: voidthemes (88.16%)voidcoders (13.16%)

Code review

54 tests

User reviews

65 reviews

Install metrics

6,000+ active /144,141 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.02MB] [CPU: ▼3.09ms] Passed 4 tests

Analyzing server-side resources used by Void Elementor Post Grid Addon for Elementor Page builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.29 ▼3.73
Dashboard /wp-admin3.32 ▲0.0244.38 ▼4.71
Posts /wp-admin/edit.php3.37 ▲0.0248.53 ▲1.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.85 ▼3.90
Media Library /wp-admin/upload.php3.24 ▲0.0235.42 ▼0.01

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
void_grid_active_info
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Void Elementor Post Grid Addon for Elementor Page builder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.42 ▼0.831.59 ▼0.3941.33 ▼6.79
Dashboard /wp-admin2,230 ▲425.84 ▲0.94101.91 ▼4.9341.83 ▼2.76
Posts /wp-admin/edit.php2,113 ▲242.06 ▼0.0137.71 ▼4.3033.41 ▼4.57
Add New Post /wp-admin/post-new.php1,547 ▲523.42 ▲5.17680.08 ▲54.1856.74 ▲5.32
Media Library /wp-admin/upload.php1,406 ▲214.23 ▲0.0393.55 ▼6.6443.69 ▼0.76

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

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant VOID_GRID_PLUGIN_DIR - assumed 'VOID_GRID_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/data-updater/init.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/template-tags.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/helper/helper.php:77
    • > PHP Warning
      include(VOID_GRID_PLUGIN_DIRdata-updater/taxonomy-repeater.php): failed to open stream: No such file or directory in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/data-updater/init.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/template-parts/content-first-full-post-grid-1.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_taxonomies() in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/template-parts/content-grid-1.php:13
    • > PHP Warning
      include(): Failed opening 'VOID_GRID_PLUGIN_DIRdata-updater/taxonomy-repeater.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/data-updater/init.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/template-parts/content-none.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_taxonomies() in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/template-parts/content-list-1.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Gamajo_Template_Loader' not found in wp-content/plugins/void-elementor-post-grid-addon-for-elementor-page-builder/void-template-loader.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt might help

void-elementor-post-grid-addon-for-elementor-page-builder/void-elementor-post-grid.php 85% from 13 tests

The main PHP script in "Void Elementor Post Grid Addon for Elementor Page builder" version 2.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("void-elementor-post-grid-addon-for-elementor-page-builder.php" instead of "void-elementor-post-grid.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected3,704 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP163465061,920
CSS376591,018
Sass6403583
JavaScript55555183

PHP code Passed 2 tests

This is a short overview 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.37
Average class complexity20.25
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1361.90%
▷ Protected methods523.81%
▷ Private methods314.29%
Functions31
▷ Named functions2993.55%
▷ Anonymous functions26.45%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.38MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/blog-2.png258.46KB102.74KB▼ 60.25%
assets/banner-772x250.png113.78KB39.81KB▼ 65.01%
assets/icon-128x128.png16.22KB6.33KB▼ 60.98%
assets/img/void-grid-logo.png3.96KB2.44KB▼ 38.40%