89% gourl-bitcoin-paypal-donations-give-addon

Code Review | GoUrl Bitcoin Paypal Donations - Give Addon

WordPress plugin GoUrl Bitcoin Paypal Donations - Give Addon scored89%from 54 tests.

About plugin

  • Plugin page: gourl-bitcoin-pay...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 22
  • Update frequency: every 103.6 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /84,829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲1.79ms] Passed 4 tests

Server-side resources used by GoUrl Bitcoin Paypal Donations - Give Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.44 ▲2.20
Dashboard /wp-admin3.44 ▲0.1352.32 ▲0.83
Posts /wp-admin/edit.php3.55 ▲0.1952.76 ▲3.05
Add New Post /wp-admin/post-new.php6.02 ▲0.13102.76 ▲2.13
Media Library /wp-admin/upload.php3.36 ▲0.1340.57 ▲2.00

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

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

Browser metrics Passed 4 tests

GoUrl Bitcoin Paypal Donations - Give Addon: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.42 ▲0.041.74 ▼0.2842.24 ▼11.92
Dashboard /wp-admin2,224 ▲245.84 ▼0.24123.03 ▲17.1543.68 ▲5.16
Posts /wp-admin/edit.php2,103 ▲32.13 ▲0.1340.04 ▲1.6335.47 ▲4.10
Add New Post /wp-admin/post-new.php1,545 ▼023.00 ▼0.05685.06 ▲15.3649.96 ▼27.00
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.01111.31 ▼3.5948.49 ▼1.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (39 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add images for these screenshots: #1 (Bitcoin & PayPal Donation Page), #2 (Bitcoin Payment Page), #3 (Bitcoin Donation Received Successfully), #4 (Admin - Donation Payment Page), #5 (Admin - Bitcoin Gateway Settings), #6 (Optional - Bitcoin/Altcoin currency directly in donation box)
The official readme.txt is a good inspiration

gourl-bitcoin-paypal-donations-give-addon/gourl_give.php 85% from 13 tests

The main PHP file in "GoUrl Bitcoin Paypal Donations - Give Addon" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gourl-bitcoin-paypal-donations-give-addon.php" instead of "gourl_give.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 335 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin948 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File2120132471
PHP114696413
Markdown233056
HTML1208

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity8.23
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.48MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png48.68KB47.60KB▼ 2.22%
screenshot-1.png138.93KB52.05KB▼ 62.54%
screenshot-6.png41.15KB40.36KB▼ 1.92%
images/sizes.png84.09KB32.53KB▼ 61.31%
images/gourlpayments.png5.07KB2.49KB▼ 50.94%