100% btcp-pay

Code Review | BTCP Pay

WordPress plugin BTCP Pay scored 100% from 53 tests.

About plugin

  • Plugin page: btcp-pay
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.0
  • WordPress version: 5.8.1
  • First release: Aug 1, 2018
  • Latest release: Aug 1, 2018
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: mattpass (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 381 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼261.95ms] Passed 4 tests

A check of server-side resources used by BTCP Pay
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.16 ▲14.07
Dashboard /wp-admin3.07 ▲0.0241.67 ▼0.33
Posts /wp-admin/edit.php3.13 ▲0.0244.18 ▲5.27
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.43 ▼1,041.06
Media Library /wp-admin/upload.php3.02 ▲0.0129.14 ▼11.68
BTCP Pay WordPress /wp-admin/options-general.php?page=btcp-pay-wordpress2.9924.39

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

BTCP Pay: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7315.70 ▲0.167.03 ▼2.2252.46 ▲6.91
Dashboard /wp-admin2,935 ▲855.87 ▼0.12142.54 ▲8.9099.98 ▼6.07
Posts /wp-admin/edit.php2,708 ▲22.69 ▲0.0068.04 ▲0.2587.16 ▼0.68
Add New Post /wp-admin/post-new.php1,484 ▼2,18618.49 ▲3.40361.28 ▼62.02104.52 ▲2.21
Media Library /wp-admin/upload.php1,783 ▲114.99 ▼0.00146.38 ▼8.71113.93 ▼0.41
BTCP Pay WordPress /wp-admin/options-general.php?page=btcp-pay-wordpress1,0432.2156.0862.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP 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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: bitcoin, widget, cryptocurrency

btcp-pay/btcp-pay.php 92% from 13 tests

Analyzing the main PHP file in "BTCP Pay" version 1.0
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 182 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
Everything looks great! No dangerous files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions466.67%
▷ Anonymous functions233.33%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin