84% paymentspring-gravity-forms-add-on

Code Review | PaymentSpring Gravity Forms Add-On

WordPress plugin PaymentSpring Gravity Forms Add-On scored84%from 54 tests.

About plugin

  • Plugin page: paymentspring-gra...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2014
  • Latest release: Oct 27, 2016
  • Number of updates: 5
  • Update frequency: every 173.4 days
  • Top authors: jesseangell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,163 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by PaymentSpring Gravity Forms Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.27 ▼3.30
Dashboard /wp-admin3.31 ▲0.0049.00 ▲1.62
Posts /wp-admin/edit.php3.36 ▲0.0042.65 ▼3.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.70 ▼15.91
Media Library /wp-admin/upload.php3.23 ▲0.0031.75 ▼1.50

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

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

Browser metrics Passed 4 tests

A check of browser resources used by PaymentSpring Gravity Forms Add-On
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▲0.121.74 ▲0.1343.55 ▲2.96
Dashboard /wp-admin2,206 ▲185.90 ▲0.99113.85 ▲9.7041.18 ▼1.06
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0434.22 ▼6.6332.63 ▼1.67
Add New Post /wp-admin/post-new.php1,537 ▲923.49 ▲5.25638.20 ▲14.8149.05 ▼18.77
Media Library /wp-admin/upload.php1,385 ▼64.23 ▲0.06100.06 ▲0.4541.87 ▼1.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paymentspring-gravity-forms-add-on/paymentspring.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

paymentspring-gravity-forms-add-on/paymentspring.php 92% from 13 tests

"PaymentSpring Gravity Forms Add-On" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("paymentspring-gravity-forms-add-on.php" instead of "paymentspring.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin602 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP269121437
JavaScript22413165

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods28100.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin