89% gourl-wpmudev-marketpress-bitcoin-payment-gateway-addon

Code Review | GoUrl MarketPress - Bitcoin Altcoin Payment Gateway Addon

WordPress plugin GoUrl MarketPress - Bitcoin Altcoin Payment Gateway Addon scored89%from 54 tests.

About plugin

  • Plugin page: gourl-wpmudev-mar...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Mar 9, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 17
  • Update frequency: every 136.5 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /77,870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.61ms] Passed 4 tests

An overview of server-side resources used by GoUrl MarketPress - Bitcoin Altcoin Payment Gateway Addon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.57 ▼3.30
Dashboard /wp-admin3.43 ▲0.1249.78 ▼3.00
Posts /wp-admin/edit.php3.54 ▲0.1856.71 ▲6.82
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.46 ▲2.38
Media Library /wp-admin/upload.php3.35 ▲0.1238.58 ▼2.51

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for GoUrl MarketPress - Bitcoin Altcoin Payment Gateway Addon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.011.91 ▲0.1744.31 ▲2.13
Dashboard /wp-admin2,195 ▲155.56 ▼0.0388.62 ▼4.8337.52 ▼5.32
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0439.50 ▼3.0636.28 ▲2.82
Add New Post /wp-admin/post-new.php1,548 ▲1723.44 ▲0.18621.22 ▼29.4947.01 ▼14.61
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0098.03 ▼5.6143.48 ▼2.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Bitcoin Payments Gateway for MarketPress - Options), #2 (MarketPress Checkout Page), #3 (MarketPress Bitcoin Payment Page), #4 (Bitcoin Payment for MarketPress Received Successfully), #5 (MarketPress Edit Order Page)
  • Tags: There are too many tags (27 tag instead of maximum 10)
The official readme.txt might help

gourl-wpmudev-marketpress-bitcoin-payment-gateway-addon/gourl-marketpress.php 85% from 13 tests

The entry point to "GoUrl MarketPress - Bitcoin Altcoin Payment Gateway Addon" version 1.1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 538 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gourl-wpmudev-marketpress-bitcoin-payment-gateway-addon.php" instead of "gourl-marketpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin426 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP114693383
Markdown127043

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity76.00
▷ Minimum class complexity76.00
▷ Maximum class complexity76.00
Average method complexity6.77
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png16.78KB15.56KB▼ 7.27%
screenshot-3.png42.54KB39.77KB▼ 6.51%
screenshot-4.png39.83KB37.80KB▼ 5.09%
screenshot-5.png43.09KB42.21KB▼ 2.05%
screenshot-1.png82.39KB81.54KB▼ 1.03%