90% inspect-gravityforms

Code Review | Inspect Gravity Forms

WordPress plugin Inspect Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: inspect-gravityforms
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: May 5, 2016
  • Latest release: Jul 30, 2023
  • Number of updates: 29
  • Update frequency: every 91.1 days
  • Top authors: webaware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Inspect Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.25 ▼4.84
Dashboard /wp-admin3.32 ▼0.0352.14 ▼11.13
Posts /wp-admin/edit.php3.37 ▲0.0146.03 ▼4.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.01 ▼19.64
Media Library /wp-admin/upload.php3.24 ▲0.0136.67 ▲0.38

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

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

Browser metrics Passed 4 tests

Inspect Gravity Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.11 ▼0.242.15 ▲0.5543.59 ▲2.02
Dashboard /wp-admin2,195 ▲185.62 ▼0.0584.63 ▼7.7441.56 ▼3.79
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0137.23 ▼2.2334.28 ▼4.11
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▲0.33690.01 ▲33.8464.42 ▼4.11
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.0096.49 ▲0.5043.49 ▼0.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: gravity forms, gravityforms, gravity

inspect-gravityforms/inspect-gravityforms.php Passed 13 tests

The main PHP script in "Inspect Gravity Forms" version 1.3.0 is automatically included on every request by WordPress
67 characters long description:
Add-on to Gravity Forms that shows some form info in the forms list

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
Good job! No executable or dangerous file extensions detected194 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP26395165
Markdown211023
CSS1106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods428.57%
▷ Public methods964.29%
▷ Protected methods428.57%
▷ Private methods17.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin