89% gourl-jigoshop-bitcoin-payment-gateway-processor

Code Review | GoUrl Jigoshop - Bitcoin Altcoin Payment Gateway Processor

WordPress plugin GoUrl Jigoshop - Bitcoin Altcoin Payment Gateway Processor scored89%from 54 tests.

About plugin

  • Plugin page: gourl-jigoshop-bi...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Jan 18, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 21
  • Update frequency: every 112.8 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /79,000 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
Install script ran successfully

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

A check of server-side resources used by GoUrl Jigoshop - Bitcoin Altcoin Payment Gateway Processor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.74 ▼5.37
Dashboard /wp-admin3.31 ▲0.0048.53 ▼3.28
Posts /wp-admin/edit.php3.36 ▲0.0047.35 ▲0.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.73 ▼1.61
Media Library /wp-admin/upload.php3.23 ▲0.0035.39 ▼2.16

Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for GoUrl Jigoshop - Bitcoin Altcoin Payment Gateway Processor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▲0.031.61 ▼0.1639.94 ▼5.60
Dashboard /wp-admin2,195 ▲155.58 ▼0.0785.96 ▼7.7938.27 ▼7.85
Posts /wp-admin/edit.php2,097 ▼62.03 ▲0.0539.66 ▲1.2736.34 ▼0.05
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▲0.32616.30 ▼60.8044.51 ▼13.22
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.10118.04 ▲11.7344.51 ▼0.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Bitcoin Payments Gateway for Jigoshop - Options), #2 (Jigoshop Checkout Page), #3 (Jigoshop Bitcoin Payment Page), #4 (Bitcoin Payment for Jigoshop Received Successfully), #5 (Jigoshop Edit Order Page), #6 (Optional - You can place your product prices in Bitcoins/Altcoins directly)
  • Tags: There are too many tags (54 tag instead of maximum 10)
Please take inspiration from this readme.txt

gourl-jigoshop-bitcoin-payment-gateway-processor/jigoshop-gateway-gourl.php 85% from 13 tests

The main file in "GoUrl Jigoshop - Bitcoin Altcoin Payment Gateway Processor" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("gourl-jigoshop-bitcoin-payment-gateway-processor.php" instead of "jigoshop-gateway-gourl.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 775 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected440 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP115683396
Markdown128044

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity14.17
▷ Minimum method complexity2.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
7 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png26.36KB24.70KB▼ 6.27%
screenshot-2.png25.13KB24.05KB▼ 4.28%
screenshot-3.png38.85KB36.73KB▼ 5.46%
screenshot-6.png30.62KB29.74KB▼ 2.89%
gourlpayments.png4.93KB2.45KB▼ 50.44%