84% gf-chase-exact

Code Review | Simple Chase E-xact for Gravity Forms

WordPress plugin Simple Chase E-xact for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-chase-exact
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2017
  • Latest release: Jun 23, 2020
  • Number of updates: 11
  • Update frequency: every 84.5 days
  • Top authors: simplisticsca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,547 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Simple Chase E-xact for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.64 ▼2.47
Dashboard /wp-admin3.31 ▲0.0148.50 ▼2.95
Posts /wp-admin/edit.php3.36 ▲0.0149.81 ▼2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.85 ▼4.45
Media Library /wp-admin/upload.php3.23 ▲0.0036.78 ▲1.41

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Chase E-xact for Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.52 ▼0.862.06 ▲0.1844.35 ▼1.97
Dashboard /wp-admin2,203 ▲155.79 ▼0.04111.81 ▲6.8739.36 ▼2.83
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.16 ▼7.0635.74 ▼6.15
Add New Post /wp-admin/post-new.php1,533 ▲423.18 ▲5.09682.48 ▲68.2958.81 ▲5.44
Media Library /wp-admin/upload.php1,382 ▼94.30 ▲0.02100.97 ▼7.4945.72 ▼1.79

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-chase-exact/gf-chase-exact.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-chase-exact/class-gf-exact.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: e-xact, gravity form, chase e-xact, gravity forms, chase

gf-chase-exact/gf-chase-exact.php 92% from 13 tests

Analyzing the main PHP file in "Simple Chase E-xact for Gravity Forms" version 1.3
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin766 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2260155766

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.42
Average class complexity72.50
▷ Minimum class complexity2.00
▷ Maximum class complexity143.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods38.57%
▷ Public methods3291.43%
▷ Protected methods00.00%
▷ Private methods38.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin