89% restore-paypal-standard-for-woocommerce

Code Review | Restore PayPal Standard For WooCommerce: enable PayPal Standard as a payment method for WooCommerce

WordPress plugin Restore PayPal Standard For WooCommerce: enable PayPal Standard as a payment method for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: restore-paypal-st...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 5, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 32
  • Update frequency: every 16.3 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /7,522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.69ms] Passed 4 tests

A check of server-side resources used by Restore PayPal Standard For WooCommerce: enable PayPal Standard as a payment method for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.79 ▲2.90
Dashboard /wp-admin3.32 ▼0.0343.22 ▼18.17
Posts /wp-admin/edit.php3.37 ▲0.0147.25 ▼1.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.42 ▼3.91
Media Library /wp-admin/upload.php3.24 ▲0.0132.99 ▲0.84

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Restore PayPal Standard For WooCommerce: enable PayPal Standard as a payment method for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.85 ▲0.281.72 ▼0.1639.97 ▲2.02
Dashboard /wp-admin2,206 ▲265.83 ▲0.9398.10 ▼10.4338.76 ▼1.35
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0239.57 ▼1.7935.74 ▲0.01
Add New Post /wp-admin/post-new.php1,519 ▼923.34 ▲0.08645.82 ▲53.2351.76 ▲5.60
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0499.32 ▲0.5746.23 ▲3.70

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "buymeacoffee.com/josem"
You can look at the official readme.txt

restore-paypal-standard-for-woocommerce/restore-paypal-standard-for-woocommerce.php 85% from 13 tests

"Restore PayPal Standard For WooCommerce: enable PayPal Standard as a payment method for WooCommerce" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "6.0")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
No dangerous file extensions were detected90 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP492390

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.68
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 functions233.33%
▷ Anonymous functions466.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin