89% stunning-post-grids-addon-elementor

Code Review | Stunning Post Grids Addon for Elementor

WordPress plugin Stunning Post Grids Addon for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: stunning-post-gri...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Jun 24, 2021
  • Latest release: Oct 26, 2022
  • Number of updates: 6
  • Update frequency: every 81.7 days
  • Top authors: zamanq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.08ms] Passed 4 tests

This is a short check of server-side resources used by Stunning Post Grids Addon for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.13 ▼2.00
Dashboard /wp-admin3.39 ▲0.0846.75 ▲1.60
Posts /wp-admin/edit.php3.50 ▲0.1445.09 ▼6.52
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.34 ▼22.48
Media Library /wp-admin/upload.php3.31 ▲0.0836.84 ▼1.31

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 9 new options
New WordPress options
spga_el_installed_at
spga_el_license
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
spga_el_version
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Stunning Post Grids Addon for Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.39 ▲0.041.64 ▼0.1138.19 ▲0.23
Dashboard /wp-admin2,211 ▲305.53 ▼0.1680.77 ▼26.2937.41 ▼6.39
Posts /wp-admin/edit.php2,116 ▲161.96 ▼0.0336.89 ▲1.5534.50 ▲3.84
Add New Post /wp-admin/post-new.php1,537 ▲923.47 ▲0.30623.75 ▼61.6066.08 ▼11.98
Media Library /wp-admin/upload.php1,416 ▲164.18 ▲0.04102.95 ▼3.1445.36 ▼3.61

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: custom post types grid, content, elementor post grids, post grids

stunning-post-grids-addon-elementor/stunning-post-grids-addon-elementor.php 85% from 13 tests

The main file in "Stunning Post Grids Addon for Elementor" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,721 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP223463961,371
CSS2570345
JSON1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits2
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods59
▷ Static methods2237.29%
▷ Public methods5593.22%
▷ Protected methods23.39%
▷ Private methods23.39%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin