10% wp-ecommerce-payment-gateway-cashbill

Code Review | WP eCommerce Payment Gateway - CashBill

WordPress plugin WP eCommerce Payment Gateway - CashBill scored 10% from 54 tests.

About plugin

  • Plugin page: wp-ecommerce-paym...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Jun 19, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: lukaszfirek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 696 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php+9
    Undefined variable: num

Server metrics [RAM: ▼1.89MB] [CPU: ▼49.53ms] Passed 4 tests

An overview of server-side resources used by WP eCommerce Payment Gateway - CashBill
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.28 ▼32.99
Dashboard /wp-admin2.12 ▼1.197.16 ▼39.43
Posts /wp-admin/edit.php2.12 ▼1.248.28 ▼38.82
Add New Post /wp-admin/post-new.php2.12 ▼3.776.36 ▼86.87
Media Library /wp-admin/upload.php2.12 ▼1.116.21 ▼28.89

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
cashbill_id
db_upgraded
cashbill_key
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
cashbill_test

Browser metrics Passed 4 tests

Checking browser requirements for WP eCommerce Payment Gateway - CashBill
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.67 ▼1.011.57 ▼0.5340.33 ▼3.89
Dashboard /wp-admin2,220 ▲295.84 ▼0.0693.84 ▼4.4960.93 ▲20.77
Posts /wp-admin/edit.php2,103 ▲112.14 ▲0.1434.01 ▼4.5832.88 ▼2.45
Add New Post /wp-admin/post-new.php1,524 ▼917.72 ▼5.60708.05 ▲8.1657.72 ▲0.84
Media Library /wp-admin/upload.php1,402 ▲174.15 ▼0.1496.67 ▼6.7475.47 ▲29.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php+9
    Undefined variable: num
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • cashbill_test
    • cashbill_id
    • cashbill_key
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: num in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php on line 13
    • > PHP Notice
      Undefined variable: num in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php on line 12
    • > PHP Notice
      Undefined variable: num in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php on line 10
    • > PHP Notice
      Undefined variable: num in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php:16
    • > PHP Notice
      Undefined variable: num in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php on line 14
    • > PHP Notice
      Undefined variable: num in wp-content/plugins/wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php on line 9

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: ekspresowe patnoci, payment, wp ecommerce, cashbill, patnoci...

wp-ecommerce-payment-gateway-cashbill/wp-ecommerce-cashbill.php 85% from 13 tests

"WP eCommerce Payment Gateway - CashBill" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-ecommerce-payment-gateway-cashbill.php" instead of "wp-ecommerce-cashbill.php")
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

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
There were no executable files found in this plugin179 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1487179

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.24
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cashbill_50x50.png0.69KB0.86KB0.00%
img/pdf-icon.png0.62KB0.75KB0.00%
img/cashbill_100x39.png1.35KB1.42KB0.00%