89% onepipe-payment-gateway-for-easy-digital-downloads

Code Review | Onepipe Payment Gateway for Easy Digital Downloads

WordPress plugin Onepipe Payment Gateway for Easy Digital Downloads scored 89% from 54 tests.

About plugin

  • Plugin page: onepipe-payment-g...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 6.3.1
  • First release: May 27, 2021
  • Latest release: Jun 9, 2021
  • Number of updates: 3
  • Update frequency: every 6.3 days
  • Top authors: onepipedev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 276 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Onepipe Payment Gateway for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.49 ▲4.22
Dashboard /wp-admin3.31 ▲0.0145.85 ▼6.02
Posts /wp-admin/edit.php3.36 ▲0.0051.37 ▲8.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.85 ▼3.06
Media Library /wp-admin/upload.php3.23 ▲0.0036.37 ▲4.06

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/onepipe-payment-gateway-for-easy-digital-downloads/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/onepipe-payment-gateway-for-easy-digital-downloads/assets/icon-128\303\227128.png"
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Onepipe Payment Gateway for Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.101.76 ▼0.2344.27 ▲1.71
Dashboard /wp-admin2,206 ▲354.85 ▼1.03102.01 ▼18.5439.23 ▼3.15
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.96 ▲4.6835.55 ▲3.79
Add New Post /wp-admin/post-new.php1,533 ▲1923.32 ▲5.85635.44 ▼58.4864.48 ▲17.09
Media Library /wp-admin/upload.php1,382 ▼04.20 ▼0.1099.34 ▼23.9043.63 ▼4.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

onepipe-payment-gateway-for-easy-digital-downloads/edd-onepipe.php 92% from 13 tests

"Onepipe Payment Gateway for Easy Digital Downloads" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("onepipe-payment-gateway-for-easy-digital-downloads.php" instead of "edd-onepipe.php")

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
No dangerous file extensions were detected424 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16221424

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png1.68KB1.78KB0.00%
assets/icon-128×128.png7.65KB4.07KB▼ 46.85%