84% per-form-confirmation-pages-for-givewp

Code Review | Per Form Confirmations for GiveWP

WordPress plugin Per Form Confirmations for GiveWP scored84%from 54 tests.

About plugin

  • Plugin page: per-form-confirma...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 5, 2020
  • Latest release: Mar 6, 2021
  • Number of updates: 13
  • Update frequency: every 30.5 days
  • Top authors: webdevmattcrom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,228 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Per Form Confirmations for GiveWP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.42 ▼2.24
Dashboard /wp-admin3.31 ▲0.0050.85 ▲4.67
Posts /wp-admin/edit.php3.36 ▲0.0047.26 ▼4.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.88 ▼13.91
Media Library /wp-admin/upload.php3.23 ▲0.0037.03 ▲1.20

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Per Form Confirmations for GiveWP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.51 ▲0.231.90 ▼0.0146.18 ▲3.12
Dashboard /wp-admin2,198 ▲215.63 ▼0.0397.35 ▲8.8643.01 ▼0.12
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0835.48 ▼5.2734.10 ▼3.89
Add New Post /wp-admin/post-new.php1,531 ▲523.00 ▼0.24645.53 ▼48.3159.21 ▲2.97
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0699.81 ▼11.0644.78 ▼1.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/per-form-confirmation-pages-for-givewp/includes/main-functions.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: wpml, donations, givewp, multilingual, receipt...

per-form-confirmation-pages-for-givewp/givewp-per-form-confirmations.php 85% from 13 tests

This is the main PHP file of "Per Form Confirmations for GiveWP" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("per-form-confirmation-pages-for-givewp.php" instead of "givewp-per-form-confirmations.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected571 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4127234374
PO File1242491
JavaScript111548
CSS14034
Markdown113024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.00
▷ Minimum class complexity8.00
▷ Maximum class complexity24.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods19
▷ Static methods15.26%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin