90% shortcodes-gravity-form

Code Review | Shortcodes for Gravity Form

WordPress plugin Shortcodes for Gravity Form scored90%from 54 tests.

About plugin

  • Plugin page: shortcodes-gravit...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2020
  • Latest release: Feb 2, 2023
  • Number of updates: 6
  • Update frequency: every 142.2 days
  • Top authors: dipakparmar443 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,175 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Shortcodes for Gravity Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.39 ▲0.41
Dashboard /wp-admin3.32 ▼0.0356.23 ▼7.54
Posts /wp-admin/edit.php3.37 ▲0.0148.74 ▼2.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.05 ▼12.67
Media Library /wp-admin/upload.php3.24 ▲0.0136.73 ▼1.91

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

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

Browser metrics Passed 4 tests

Shortcodes for Gravity Form: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.002.01 ▲0.2847.85 ▲4.83
Dashboard /wp-admin2,198 ▲275.65 ▼0.0787.90 ▼6.1739.03 ▼3.43
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0734.84 ▼5.9834.76 ▼6.01
Add New Post /wp-admin/post-new.php1,534 ▲818.13 ▼5.24593.22 ▼73.3267.89 ▲15.69
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.03101.14 ▼18.8244.00 ▼5.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

shortcodes-gravity-form/shortcodes-gravity-form.php Passed 13 tests

The main PHP file in "Shortcodes for Gravity Form" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Display Gravity Form Shortcodes Admin column.

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
Good job! No executable or dangerous file extensions detected42 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3124142

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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