83% recurring-donation

Code Review | Recurring PayPal Donations

WordPress plugin Recurring PayPal Donations scored83%from 54 tests.

About plugin

  • Plugin page: recurring-donation
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 13, 2015
  • Latest release: Jul 27, 2023
  • Number of updates: 42
  • Update frequency: every 73.5 days
  • Top authors: wp.insider (64.29%)wpecommerce (30.95%)mra13 (9.52%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /21,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Recurring PayPal Donations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.96 ▼3.35
Dashboard /wp-admin3.31 ▲0.0143.60 ▼3.54
Posts /wp-admin/edit.php3.36 ▲0.0146.73 ▲2.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.69 ▼9.92
Media Library /wp-admin/upload.php3.24 ▲0.0131.18 ▼0.74

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
dntplgn_options
db_upgraded

Browser metrics Passed 4 tests

Recurring PayPal Donations: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.52 ▼1.019.60 ▲8.1140.21 ▼0.37
Dashboard /wp-admin2,218 ▲405.65 ▲0.0393.55 ▼9.0041.36 ▼2.42
Posts /wp-admin/edit.php2,120 ▲202.03 ▲0.0139.95 ▲1.5937.01 ▲2.83
Add New Post /wp-admin/post-new.php1,543 ▲823.61 ▲0.18623.62 ▼16.0754.64 ▼10.68
Media Library /wp-admin/upload.php1,423 ▲264.21 ▲0.01107.51 ▲9.4345.67 ▲0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • dntplgn_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/recurring-donation/donate_plugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Donate Plugin Settings.), #2 (Monthly Recurring Donation Option.), #3 (Once Off Donation Option.)
Please take inspiration from this readme.txt

recurring-donation/donate_plugin.php 92% from 13 tests

The principal PHP file in "Recurring PayPal Donations" v. 1.7 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("recurring-donation.php" instead of "donate_plugin.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
Everything looks great! No dangerous files found in this plugin1,681 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS245501,274
PHP13936343
PO File1121546
JavaScript10118

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions6
▷ Named functions6100.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
9 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
screenshot-2.png5.78KB4.96KB▼ 14.17%
css/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
screenshot-1.png12.71KB11.82KB▼ 6.99%
css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%