84% easy-digital-downloads-payment-gateway-cashbill

Code Review | Easy Digital Downloads Payment Gateway - CashBill

WordPress plugin Easy Digital Downloads Payment Gateway - CashBill scored84%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.0
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Mar 18, 2021
  • Number of updates: 4
  • Update frequency: every 525.0 days
  • Top authors: lukaszfirek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /979 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.02ms] Passed 4 tests

This is a short check of server-side resources used by Easy Digital Downloads Payment Gateway - CashBill
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.59 ▼0.53
Dashboard /wp-admin3.34 ▲0.0445.81 ▼4.46
Posts /wp-admin/edit.php3.39 ▲0.0344.11 ▼4.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.42 ▼27.04
Media Library /wp-admin/upload.php3.27 ▲0.0339.27 ▲6.30

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

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

Browser metrics Passed 4 tests

Easy Digital Downloads Payment Gateway - CashBill: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.65 ▼1.021.81 ▲0.0443.25 ▲0.72
Dashboard /wp-admin2,214 ▲235.86 ▼0.0496.88 ▼2.6091.62 ▲46.84
Posts /wp-admin/edit.php2,100 ▲111.99 ▼0.0335.61 ▼5.6933.35 ▼4.21
Add New Post /wp-admin/post-new.php1,536 ▲223.12 ▲0.05741.70 ▲138.2260.72 ▲9.49
Media Library /wp-admin/upload.php1,402 ▲144.22 ▲0.0695.77 ▼7.4365.93 ▲21.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-digital-downloads-payment-gateway-cashbill/edd-cashbill-gateway.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: payment, patnoci, shopping cart, patnoci internetowe, ekspresowe patnoci...

easy-digital-downloads-payment-gateway-cashbill/edd-cashbill-gateway.php 85% from 13 tests

The main file in "Easy Digital Downloads Payment Gateway - CashBill" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-digital-downloads-payment-gateway-cashbill.php" instead of "edd-cashbill-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected151 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1277151

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions5
▷ Named functions5100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/pdf-icon.png0.62KB0.75KB0.00%
img/cashbill_50x50.png0.69KB0.86KB0.00%
img/cashbill_100x39.png1.35KB1.42KB0.00%