83% wordpress-easy-paypal-payment-or-donation-accept-plugin

Code Review | Easy Accept Payments for PayPal

WordPress plugin Easy Accept Payments for PayPal scored83%from 54 tests.

About plugin

  • Plugin page: wordpress-easy-pa...
  • Plugin version: 4.9.10
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2008
  • Latest release: Jul 25, 2023
  • Number of updates: 93
  • Update frequency: every 57.8 days
  • Top authors: mra13 (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

10,000+ active /371,951 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.62ms] Passed 4 tests

A check of server-side resources used by Easy Accept Payments for PayPal
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.60 ▼2.15
Dashboard /wp-admin3.44 ▲0.1449.27 ▼3.83
Posts /wp-admin/edit.php3.49 ▲0.1352.99 ▼1.51
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.96 ▼26.98
Media Library /wp-admin/upload.php3.36 ▲0.1338.33 ▼0.21
WP PayPal Payment /wp-admin/options-general.php?page=wordpress-easy-paypal-payment-or-donation-accept-plugin/wpapp_admin_menu.php3.3337.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 22 new options
New WordPress options
wp_pp_payment_value1
wp_pp_cancel_url
db_upgraded
wp_pp_payment_value2
paypal_payment_currency
payment_button_type
wp_pp_return_url
can_compress_scripts
widget_theysaidso_widget
wp_pp_ref_title
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Accept Payments for PayPal
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.99 ▼0.524.83 ▲2.9644.15 ▼1.40
Dashboard /wp-admin2,227 ▲215.83 ▼0.03103.18 ▲1.6240.13 ▼2.11
Posts /wp-admin/edit.php2,106 ▲62.04 ▼0.0139.99 ▼1.9036.68 ▲0.99
Add New Post /wp-admin/post-new.php1,545 ▲1423.39 ▲0.33673.74 ▼7.1160.59 ▼0.40
Media Library /wp-admin/upload.php1,400 ▲64.24 ▲0.0298.93 ▼2.9240.90 ▼4.66
WP PayPal Payment /wp-admin/options-general.php?page=wordpress-easy-paypal-payment-or-donation-accept-plugin/wpapp_admin_menu.php1,2421.7130.8433.17

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 22 options
    • paypal_payment_currency
    • widget_recent-comments
    • payment_button_type
    • wp_pp_payment_value1
    • wp_pp_show_other_amount
    • wp_pp_payment_item2
    • widget_recent-posts
    • theysaidso_admin_options
    • wp_pp_payment_value3
    • wp_pp_ref_title
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-easy-paypal-payment-or-donation-accept-plugin/wpapp_admin_menu.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

wordpress-easy-paypal-payment-or-donation-accept-plugin/WP_Accept_Paypal_Payment.php 85% from 13 tests

"Easy Accept Payments for PayPal" version 4.9.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordpress-easy-paypal-payment-or-donation-accept-plugin.php" instead of "WP_Accept_Paypal_Payment.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin744 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP510333714
CSS12030

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected