78% funraise-donation-form

Code Review | Funraise Giving Form

WordPress plugin Funraise Giving Form scored78%from 54 tests.

About plugin

  • Plugin page: funraise-donation...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.1-5.7
  • WordPress version: 6.3.1
  • First release: May 20, 2021
  • Latest release: May 20, 2021
  • Number of updates: 3
  • Update frequency: every 10.0 days
  • Top authors: funraise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,490 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.00MB] [CPU: ▼7.30ms] Passed 4 tests

An overview of server-side resources used by Funraise Giving Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.37 ▲4.21
Dashboard /wp-admin3.31 ▲0.0149.81 ▼18.82
Posts /wp-admin/edit.php3.36 ▲0.0051.79 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.37 ▼5.55
Media Library /wp-admin/upload.php3.23 ▲0.0036.56 ▼4.02
Funraise /wp-admin/options-general.php?page=funraise-donation-form3.2329.04

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Funraise Giving Form: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.491.79 ▲0.0543.17 ▼1.70
Dashboard /wp-admin2,199 ▲225.54 ▲0.0284.09 ▼28.7338.81 ▼8.66
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0136.61 ▼0.8334.95 ▼2.80
Add New Post /wp-admin/post-new.php1,535 ▲723.27 ▲0.24602.35 ▼54.1361.53 ▲15.65
Media Library /wp-admin/upload.php1,407 ▲44.21 ▲0.0197.55 ▼2.9945.47 ▲1.56
Funraise /wp-admin/options-general.php?page=funraise-donation-form8422.0323.3831.34

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% 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 0% 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/funraise-donation-form/includes/settings-page.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/funraise-donation-form/funraise-giving-form.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
10 plugin tags: give, donor, funraise, donate, payments...

funraise-donation-form/funraise-giving-form.php 92% from 13 tests

The main PHP script in "Funraise Giving Form" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("funraise-donation-form.php" instead of "funraise-giving-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP222987

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin