90% vandar-gravityform

Code Review | Vandar.io Gravityform

WordPress plugin Vandar.io Gravityform scored90%from 54 tests.

About plugin

  • Plugin page: vandar-gravityform
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3.0
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: Aug 10, 2023
  • Number of updates: 12
  • Update frequency: every 98.2 days
  • Top authors: vandarpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,155 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: ▼4.99ms] Passed 4 tests

A check of server-side resources used by Vandar.io Gravityform
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.44 ▼3.79
Dashboard /wp-admin3.31 ▲0.0145.43 ▼5.92
Posts /wp-admin/edit.php3.36 ▲0.0049.58 ▲1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.50 ▼7.77
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▼2.47

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Vandar.io Gravityform
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.21 ▼1.381.83 ▼0.1141.14 ▼5.41
Dashboard /wp-admin2,213 ▲254.83 ▼1.05109.30 ▲2.5243.04 ▲6.04
Posts /wp-admin/edit.php2,095 ▲32.01 ▲0.0136.63 ▼7.9836.28 ▼1.88
Add New Post /wp-admin/post-new.php1,541 ▲823.53 ▲0.40677.47 ▲57.9854.69 ▲3.29
Media Library /wp-admin/upload.php1,395 ▲104.19 ▲0.0297.01 ▼6.1443.15 ▼2.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 | This is just a short smoke test looking for browser issues
No browser errors were detected

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: vandar, gravityform, pay, br, vandar pay

vandar-gravityform/index.php 92% from 13 tests

The main PHP file in "Vandar.io Gravityform" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vandar-gravityform.php" instead of "index.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
Good job! No executable or dangerous file extensions detected3,888 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47501253,865
Markdown17023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity193.33
▷ Minimum class complexity29.00
▷ Maximum class complexity341.00
Average method complexity9.13
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods71
▷ Static methods71100.00%
▷ Public methods5171.83%
▷ Protected methods34.23%
▷ Private methods1723.94%
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
PNG images were not found in this plugin