10% easy-paypal-custom-fields

Code Review | Easy PayPal Custom Fields

WordPress plugin Easy PayPal Custom Fields scored10%from 54 tests.

About plugin

  • Plugin page: easy-paypal-custo...
  • Plugin version: 2.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: May 8, 2011
  • Latest release: Jun 26, 2012
  • Number of updates: 135
  • Update frequency: every 3.1 days
  • Top authors: theorboman (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

300+ active /25,714 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼0.21MB] [CPU: ▼18.65ms] Passed 4 tests

An overview of server-side resources used by Easy PayPal Custom Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0835.71 ▼4.68
Dashboard /wp-admin3.44 ▲0.1351.56 ▼0.26
Posts /wp-admin/edit.php3.55 ▲0.1947.50 ▼4.81
Add New Post /wp-admin/post-new.php4.72 ▼1.1745.40 ▼64.86
Media Library /wp-admin/upload.php3.36 ▲0.1335.23 ▲0.47
Easy PayPal Custom Fields /wp-admin/options-general.php?page=easy-paypal-custom-fields3.3130.83

Server storage [IO: ▲0.29MB] [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: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
rps_eppcf_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy PayPal Custom Fields
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.21 ▼1.042.22 ▲0.5341.99 ▲1.90
Dashboard /wp-admin2,212 ▲214.90 ▲0.01112.92 ▲10.1942.38 ▲1.43
Posts /wp-admin/edit.php2,095 ▲62.05 ▼0.0035.60 ▼6.6530.75 ▼7.70
Add New Post /wp-admin/post-new.php1,523 ▼1422.83 ▲4.67642.50 ▼12.2257.55 ▼9.90
Media Library /wp-admin/upload.php1,394 ▲64.17 ▼0.05101.12 ▼7.3547.94 ▲4.69
Easy PayPal Custom Fields /wp-admin/options-general.php?page=easy-paypal-custom-fields1,0521.8424.8939.66

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=easy-paypal-custom-fields
    • > Notice in wp-content/plugins/easy-paypal-custom-fields/easy-paypal-custom-fields.php+374
    Undefined variable: args

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-paypal-custom-fields/easy-paypal-custom-fields.php:108

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Set default options for the plugin), #2 (Add further individual options when creating a new post), #3 (Change default settings when creating a new post)
You can take inspiration from this readme.txt

easy-paypal-custom-fields/easy-paypal-custom-fields.php Passed 13 tests

The entry point to "Easy PayPal Custom Fields" version 2.0.8 is a PHP file that has certain tags in its header comment area
128 characters long description:
This plugin uses custom fields to make creating a PayPal button super-easy. There is no complicated shortcut syntax to remember.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin967 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213212698
CSS1396199
JavaScript2613370

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity102.00
▷ Minimum class complexity102.00
▷ Maximum class complexity102.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin