74% easy-paypal-shopping-cart

Code Review | Easy PayPal Shopping Cart

WordPress plugin Easy PayPal Shopping Cart scored74%from 54 tests.

About plugin

  • Plugin page: easy-paypal-shopp...
  • Plugin version: 1.1.11
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 11, 2015
  • Latest release: Nov 3, 2023
  • Number of updates: 40
  • Update frequency: every 79.7 days
  • Top authors: scottpaterson (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /36,272 total downloads

Benchmarks

Plugin footprint 65% 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.11MB] [CPU: ▼1.70ms] Passed 4 tests

This is a short check of server-side resources used by Easy PayPal Shopping Cart
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.51 ▲0.58
Dashboard /wp-admin3.41 ▲0.1148.80 ▼2.23
Posts /wp-admin/edit.php3.46 ▲0.1145.29 ▼0.75
Add New Post /wp-admin/post-new.php5.99 ▲0.1189.39 ▼3.26
Media Library /wp-admin/upload.php3.34 ▲0.1136.71 ▼0.55
Easy Shopping Cart /wp-admin/options-general.php?page=easy-paypal-shopping-cart3.2831.23

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
wpepsc_settingsoptions
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
wpepsc_my_plugin_notice_shown
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Easy PayPal Shopping Cart
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1214.70 ▲0.321.74 ▼0.1343.93 ▲0.06
Dashboard /wp-admin2,196 ▲165.55 ▼0.0888.32 ▲5.1338.89 ▲1.05
Posts /wp-admin/edit.php2,101 ▼21.97 ▲0.0135.87 ▼8.4433.98 ▼4.10
Add New Post /wp-admin/post-new.php1,640 ▲11423.18 ▲0.14585.40 ▼52.1752.02 ▼4.57
Media Library /wp-admin/upload.php1,407 ▲44.22 ▲0.0296.88 ▼5.3742.58 ▲1.77
Easy Shopping Cart /wp-admin/options-general.php?page=easy-paypal-shopping-cart1,3592.0722.7639.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method wpepsc_WPeasypaypalshoppingcart::wpepsc_deactivate() should not be called statically
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • wpepsc_settingsoptions
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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-shopping-cart
    • > Notice in wp-content/plugins/easy-paypal-shopping-cart/easy-paypal-shopping-cart.php+461
    Undefined index: shopping_url

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: gateway, paypal, shopping cart, cart

easy-paypal-shopping-cart/easy-paypal-shopping-cart.php Passed 13 tests

"Easy PayPal Shopping Cart" version 1.1.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
A simple and easy way to integrate a PayPal shopping cart into your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected657 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP129559657

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin