84% jambopay-woocommerce-payment-gateway

Code Review | Jambopay WooCommerce Payment Gateway

WordPress plugin Jambopay WooCommerce Payment Gateway scored84%from 54 tests.

About plugin

  • Plugin page: jambopay-woocomme...
  • Plugin version: 2.6.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 3, 2014
  • Latest release: Jun 3, 2014
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: jmurimi (93.75%)Otto42 (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Jambopay WooCommerce Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.42 ▼1.75
Dashboard /wp-admin3.35 ▲0.0544.63 ▼8.74
Posts /wp-admin/edit.php3.40 ▲0.0446.77 ▼4.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.17 ▼21.17
Media Library /wp-admin/upload.php3.27 ▲0.0434.50 ▼3.98

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Jambopay WooCommerce Payment Gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.351.59 ▲0.0140.19 ▲3.28
Dashboard /wp-admin2,189 ▲85.50 ▼0.1383.44 ▼14.5336.75 ▼7.10
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.1032.69 ▼7.0831.57 ▼8.43
Add New Post /wp-admin/post-new.php1,526 ▼023.38 ▲0.27664.33 ▲33.1457.39 ▲0.29
Media Library /wp-admin/upload.php1,400 ▲64.18 ▲0.04105.15 ▲8.6643.97 ▼1.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jambopay-woocommerce-payment-gateway/class-wc-jambopay.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

jambopay-woocommerce-payment-gateway/class-wc-jambopay.php 92% from 13 tests

Analyzing the main PHP file in "Jambopay WooCommerce Payment Gateway" version 2.6.1.0
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jambopay-woocommerce-payment-gateway.php" instead of "class-wc-jambopay.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
There were no executable files found in this plugin184 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14663184

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin