89% gourl-bbpress-premium-membership-bitcoin-payments

Code Review | GoUrl BBPRESS - Add Premium Membership with Bitcoin/Altcoin Payments

WordPress plugin GoUrl BBPRESS - Add Premium Membership with Bitcoin/Altcoin Payments scored89%from 54 tests.

About plugin

  • Plugin page: gourl-bbpress-pre...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Mar 31, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 23
  • Update frequency: every 99.8 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /78,865 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.20ms] Passed 4 tests

An overview of server-side resources used by GoUrl BBPRESS - Add Premium Membership with Bitcoin/Altcoin Payments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.82 ▲3.88
Dashboard /wp-admin3.46 ▲0.1649.53 ▼2.24
Posts /wp-admin/edit.php3.58 ▲0.2252.96 ▲3.30
Add New Post /wp-admin/post-new.php6.05 ▲0.1689.84 ▼14.47
Media Library /wp-admin/upload.php3.39 ▲0.1636.85 ▲0.62

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GoUrl BBPRESS - Add Premium Membership with Bitcoin/Altcoin Payments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.221.70 ▲0.0444.89 ▲1.36
Dashboard /wp-admin2,192 ▲155.53 ▼0.0489.77 ▼10.4738.06 ▼5.87
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0939.92 ▲2.3637.25 ▼0.95
Add New Post /wp-admin/post-new.php1,526 ▼1623.10 ▼0.06650.31 ▲8.2963.90 ▼4.60
Media Library /wp-admin/upload.php1,394 ▼64.26 ▲0.05105.62 ▲0.5447.95 ▲2.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • 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 no errors were found, this is by no means 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 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 35 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (bbPress Premium Mode - Options), #2 (Admin Settings - New bbPress Forum Topic), #3 (Admin Settings - All Default/Premium Topics), #4 (bbPress Forum Topics), #5 (bbPress Forum Premium Topic), #6 (bbPress Premium Membership Order Page), #7 (bbPress Premium Membership Confirmation)
The official readme.txt is a good inspiration

gourl-bbpress-premium-membership-bitcoin-payments/gourl_bbpress.php 85% from 13 tests

The entry point to "GoUrl BBPRESS - Add Premium Membership with Bitcoin/Altcoin Payments" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 354 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gourl-bbpress-premium-membership-bitcoin-payments.php" instead of "gourl_bbpress.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
Good job! No executable or dangerous file extensions detected1,102 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP1246125534
PO File2170220493
Markdown232051
HTML36024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity121.00
▷ Minimum class complexity121.00
▷ Maximum class complexity121.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1875.00%
▷ Protected methods00.00%
▷ Private methods625.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 compressed PNG files occupy 0.40MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png37.97KB35.82KB▼ 5.66%
screenshot-4.png25.37KB23.82KB▼ 6.14%
images/premium.png1.07KB0.83KB▼ 22.40%
screenshot-1.png59.64KB58.93KB▼ 1.19%
screenshot-7.png23.43KB21.51KB▼ 8.21%