78% eazygrid-for-elementor

Code Review | EazyGrid - The Easiest Content Grid Plugin for Elementor (Image Grid Layouts, Prebuilt Grid Patterns, Product Grid, Blog Post, eCommerce Grid, Video Gallery)

WordPress plugin EazyGrid - The Easiest Content Grid Plugin for Elementor (Image Grid Layouts, Prebuilt Grid Patterns, Product Grid, Blog Post, eCommerce Grid, Video Gallery) scored78%from 54 tests.

About plugin

  • Plugin page: eazygrid-for-elem...
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 21, 2021
  • Latest release: Mar 22, 2022
  • Number of updates: 33
  • Update frequency: every 4.7 days
  • Top authors: eazyplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /4,684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by EazyGrid - The Easiest Content Grid Plugin for Elementor (Image Grid Layouts, Prebuilt Grid Patterns, Product Grid, Blog Post, eCommerce Grid, Video Gallery)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.30 ▼0.63
Dashboard /wp-admin3.31 ▲0.0147.87 ▼3.03
Posts /wp-admin/edit.php3.36 ▲0.0045.16 ▼3.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.26 ▼18.57
Media Library /wp-admin/upload.php3.23 ▲0.0033.14 ▼0.79

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 125 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

EazyGrid - The Easiest Content Grid Plugin for Elementor (Image Grid Layouts, Prebuilt Grid Patterns, Product Grid, Blog Post, eCommerce Grid, Video Gallery): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.13 ▼1.082.11 ▲0.1743.55 ▼0.42
Dashboard /wp-admin2,222 ▲315.80 ▲0.97103.09 ▼3.0644.22 ▲0.47
Posts /wp-admin/edit.php2,107 ▲182.01 ▼0.0536.54 ▼1.3035.07 ▲0.38
Add New Post /wp-admin/post-new.php1,551 ▲3223.32 ▲0.12663.87 ▲39.4448.71 ▼5.17
Media Library /wp-admin/upload.php1,407 ▲224.20 ▼0.0498.76 ▲2.1440.20 ▲0.76

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/eazygrid-for-elementor/pull.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazygrid-for-elementor/EazyImages/api/settings.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EazyGrid\\Elementor\\Base\\Photo_Grid' not found in wp-content/plugins/eazygrid-for-elementor/widgets/even-image-grid.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EazyGrid\\Elementor\\Base\\Photo_Grid' not found in wp-content/plugins/eazygrid-for-elementor/widgets/masonry-image-grid.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EazyGrid\\Elementor\\Base\\EazyGrid_Base' not found in wp-content/plugins/eazygrid-for-elementor/base/post-grid.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'EazyGrid\\Elementor\\Base\\EazyGrid_Base' not found in wp-content/plugins/eazygrid-for-elementor/widgets/even-instagram-grid.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EazyGrid\\Elementor\\Base\\EazyGrid_Base' not found in wp-content/plugins/eazygrid-for-elementor/base/photo-grid.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/eazygrid-for-elementor/controls/image-selector.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazygrid-for-elementor/EazyImages/api/download.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EazyGrid\\Elementor\\Base\\Post_Grid' not found in wp-content/plugins/eazygrid-for-elementor/widgets/even-post-grid.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazygrid-for-elementor/EazyImages/api/test.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

eazygrid-for-elementor/eazygrid-elementor.php 85% from 13 tests

"EazyGrid - The Easiest Content Grid Plugin for Elementor (Image Grid Layouts, Prebuilt Grid Patterns, Product Grid, Blog Post, eCommerce Grid, Video Gallery)" version 1.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • 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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eazygrid-for-elementor.php" instead of "eazygrid-elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected102,891 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1523,05521,74789,471
PHP309498266,858
CSS197582686,147
SVG29212414
JSON1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.37
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes19
▷ Abstract classes315.79%
▷ Concrete classes1684.21%
▷ Final classes16.25%
Methods190
▷ Static methods147.37%
▷ Public methods14073.68%
▷ Protected methods4724.74%
▷ Private methods31.58%
Functions42
▷ Named functions3480.95%
▷ Anonymous functions819.05%
Constants20
▷ Global constants1995.00%
▷ Class constants15.00%
▷ Public constants1100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/plus.png1.35KB0.35KB▼ 73.91%
EazyImages/dist/img/pixabay.png1.65KB0.82KB▼ 50.47%
EazyImages/dist/img/logo-48x48.png0.98KB0.54KB▼ 45.33%
EazyImages/dist/img/unsplash.png0.16KB0.16KB0.00%
assets/img/admin/eazy-images.png3.76KB2.58KB▼ 31.55%