90% shortcodes-for-gravity-forms

Code Review | Shortcodes for Gravity Forms

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

About plugin

  • Plugin page: shortcodes-for-gr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Dec 27, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ideaboxcreations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,919 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.95ms] Passed 4 tests

An overview of server-side resources used by Shortcodes for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.19 ▲1.18
Dashboard /wp-admin3.31 ▲0.0148.77 ▲0.07
Posts /wp-admin/edit.php3.36 ▲0.0149.50 ▼3.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.03 ▼10.49
Media Library /wp-admin/upload.php3.24 ▲0.0133.40 ▼5.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcodes for Gravity Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▼0.152.12 ▲0.5144.66 ▲2.49
Dashboard /wp-admin2,195 ▲275.62 ▲0.0384.82 ▼7.0140.74 ▼4.25
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0039.94 ▼1.1139.84 ▲1.73
Add New Post /wp-admin/post-new.php1,535 ▲717.97 ▼5.14653.85 ▼16.0064.23 ▲13.01
Media Library /wp-admin/upload.php1,397 ▼34.14 ▼0.07101.65 ▼4.0644.13 ▼4.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gravity forms, form, shortcode, gravity, gforms

shortcodes-for-gravity-forms/gf-shortcode.php 92% from 13 tests

Analyzing the main PHP file in "Shortcodes for Gravity Forms" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shortcodes-for-gravity-forms.php" instead of "gf-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP184231

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected