80% easy-paypal-donation

Code Review | Accept Donations with PayPal

WordPress plugin Accept Donations with PayPal scored 80% from 54 tests.

About plugin

  • Plugin page: easy-paypal-donation
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2015
  • Latest release: Jan 30, 2023
  • Number of updates: 42
  • Update frequency: every 66.9 days
  • Top authors: scottpaterson (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

20,000+ active / 283,296 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▲0.37ms] Passed 4 tests

A check of server-side resources used by Accept Donations with PayPal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2736.47 ▼0.64
Dashboard /wp-admin3.56 ▲0.2646.77 ▲0.49
Posts /wp-admin/edit.php3.68 ▲0.3252.76 ▲10.51
Add New Post /wp-admin/post-new.php6.15 ▲0.26100.89 ▲1.15
Media Library /wp-admin/upload.php3.49 ▲0.2637.93 ▲0.47
Donations /wp-admin/admin.php?page=wpedon_menu3.4635.04
Buttons /wp-admin/admin.php?page=wpedon_buttons3.4634.73
Settings /wp-admin/admin.php?page=wpedon_settings3.4534.56

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accept Donations with PayPal
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.24 ▼1.121.58 ▼0.0241.69 ▲2.78
Dashboard /wp-admin2,230 ▲414.85 ▼0.07109.27 ▼3.7241.62 ▼2.90
Posts /wp-admin/edit.php2,119 ▲271.99 ▼0.0340.11 ▲0.8935.34 ▲0.18
Add New Post /wp-admin/post-new.php1,641 ▲9923.39 ▲5.19644.46 ▼23.3354.57 ▼7.72
Media Library /wp-admin/upload.php1,409 ▲214.22 ▲0.1297.90 ▼17.8344.44 ▼4.83
Donations /wp-admin/admin.php?page=wpedon_menu9412.0624.2429.79
Buttons /wp-admin/admin.php?page=wpedon_buttons9282.0423.6425.19
Settings /wp-admin/admin.php?page=wpedon_settings1,4192.0726.7738.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method wpedon_wpeasydonation::wpedon_deactivate() should not be called statically
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • wpedon_settingsoptions
    • widget_theysaidso_widget
    • widget_wpedon_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: donation, paypal, ecommerce, donate, charity

easy-paypal-donation/easy-paypal-donation.php Passed 13 tests

The main file in "Accept Donations with PayPal" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
65 characters long description:
A simple and easy way to accept PayPal donations on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,936 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP126041191,936

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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