84% woo-paypal-me-payment

Code Review | Boring-IT Paypal.me Gateway

WordPress plugin Boring-IT Paypal.me Gateway scored84%from 54 tests.

About plugin

  • Plugin page: woo-paypal-me-pay...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2019
  • Latest release: Mar 18, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: boringit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.01ms] Passed 4 tests

An overview of server-side resources used by Boring-IT Paypal.me Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.09 ▼1.63
Dashboard /wp-admin3.35 ▲0.0453.15 ▼4.07
Posts /wp-admin/edit.php3.40 ▲0.0447.72 ▼10.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.19 ▼16.23
Media Library /wp-admin/upload.php3.27 ▲0.0442.14 ▲6.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Boring-IT Paypal.me Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.74 ▲0.022.14 ▲0.0145.22 ▼2.70
Dashboard /wp-admin2,198 ▲215.57 ▲0.0185.84 ▼3.5038.75 ▼4.94
Posts /wp-admin/edit.php2,097 ▼61.98 ▼0.0536.85 ▼12.4432.87 ▼11.38
Add New Post /wp-admin/post-new.php1,534 ▲618.09 ▼4.93634.71 ▼66.0164.95 ▲6.63
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.03100.80 ▼10.5843.93 ▼5.14

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-paypal-me-payment/boring-it-paypal-me-payment.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
3 plugin tags: payment, gateway, woocommerce

woo-paypal-me-payment/boring-it-paypal-me-payment.php 92% from 13 tests

The main PHP file in "Boring-IT Paypal.me Gateway" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-paypal-me-payment.php" instead of "boring-it-paypal-me-payment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin307 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1159239
CSS10045
Markdown18023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin