90% valuepay-for-gravity-forms

Code Review | ValuePay for Gravity Forms

WordPress plugin ValuePay for Gravity Forms scored 90% from 54 tests.

About plugin

  • Plugin page: valuepay-for-grav...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 25, 2022
  • Latest release: May 13, 2022
  • Number of updates: 6
  • Update frequency: every 3.5 days
  • Top authors: valuepaymy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 508 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by ValuePay for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.01 ▼8.20
Dashboard /wp-admin3.31 ▲0.0144.15 ▼0.16
Posts /wp-admin/edit.php3.36 ▲0.0146.44 ▲1.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.85 ▲5.79
Media Library /wp-admin/upload.php3.23 ▲0.0133.82 ▲0.35

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ValuePay for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.63 ▼1.121.53 ▼0.6539.67 ▼2.07
Dashboard /wp-admin2,215 ▲244.84 ▼0.00106.79 ▲1.5139.77 ▼2.32
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0239.92 ▲0.3537.60 ▲1.55
Add New Post /wp-admin/post-new.php1,550 ▲3118.18 ▼4.85588.39 ▼17.2251.31 ▼8.18
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0595.86 ▼7.3742.36 ▼1.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: valuepay, payment, gravity forms

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

The main PHP file in "ValuePay for Gravity Forms" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("valuepay-for-gravity-forms.php" instead of "valuepay-gf.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
Success! There were no dangerous files found in this plugin932 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9353107932

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity22.17
▷ Minimum class complexity1.00
▷ Maximum class complexity101.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods52
▷ Static methods11.92%
▷ Public methods3261.54%
▷ Protected methods35.77%
▷ Private methods1732.69%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/valuepay-icon.png0.81KB0.91KB0.00%