89% plisio-payment-gateway-easy-digital-downloads

Code Review | Accept Cryptocurrencies with Plisio for Easy Digital Downloads

WordPress plugin Accept Cryptocurrencies with Plisio for Easy Digital Downloads scored89%from 54 tests.

About plugin

  • Plugin page: plisio-payment-ga...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 16, 2023
  • Latest release: Feb 3, 2023
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: plisio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /269 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼13.98ms] Passed 4 tests

This is a short check of server-side resources used by Accept Cryptocurrencies with Plisio for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0732.57 ▼6.70
Dashboard /wp-admin3.37 ▲0.0241.28 ▼16.52
Posts /wp-admin/edit.php3.48 ▲0.1246.98 ▲1.38
Add New Post /wp-admin/post-new.php5.95 ▲0.0678.93 ▼32.63
Media Library /wp-admin/upload.php3.29 ▲0.0633.25 ▼0.08

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Accept Cryptocurrencies with Plisio for Easy Digital Downloads: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.391.75 ▼0.0737.57 ▼6.65
Dashboard /wp-admin2,206 ▲145.90 ▲0.93113.66 ▲6.0542.37 ▲2.25
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0335.91 ▼5.2332.42 ▼2.87
Add New Post /wp-admin/post-new.php1,514 ▼017.66 ▲0.21646.35 ▼46.8149.73 ▼1.11
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.0793.59 ▼5.6840.42 ▼5.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
You can take inspiration from this readme.txt

plisio-payment-gateway-easy-digital-downloads/plisio.php 92% from 13 tests

The main PHP script in "Accept Cryptocurrencies with Plisio for Easy Digital Downloads" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("plisio-payment-gateway-easy-digital-downloads.php" instead of "plisio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin311 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25813283
Markdown123028

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.50
▷ Minimum class complexity10.00
▷ Maximum class complexity21.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods25
▷ Static methods14.00%
▷ Public methods1456.00%
▷ Protected methods28.00%
▷ Private methods936.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/plisio_icon.png14.39KB10.59KB▼ 26.42%