78% bitcoin-paywall

Code Review | Bitcoin Cash ETH PayPal Credit Cards Paywall

WordPress plugin Bitcoin Cash ETH PayPal Credit Cards Paywall scored78%from 54 tests.

About plugin

  • Plugin page: bitcoin-paywall
  • Plugin version: 2.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2020
  • Latest release: Mar 3, 2020
  • Number of updates: 19
  • Update frequency: every 0.3 days
  • Top authors: bpaywall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.64ms] Passed 4 tests

This is a short check of server-side resources used by Bitcoin Cash ETH PayPal Credit Cards Paywall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.34 ▼6.12
Dashboard /wp-admin3.32 ▲0.0250.12 ▼2.92
Posts /wp-admin/edit.php3.37 ▲0.0150.48 ▲0.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.94 ▼13.96
Media Library /wp-admin/upload.php3.24 ▲0.0139.80 ▲2.08
Bitcoin Paywall /wp-admin/options-general.php?page=bitcoin_paywall3.1832.55

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
bitcoin_paywall_option_name
bitcoin_paywall_option_name3
bitcoin_paywall_option_name4
can_compress_scripts
bitcoin_paywall_option_name2
widget_recent-comments
db_upgraded
bitcoin_paywall_option_name5
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Bitcoin Cash ETH PayPal Credit Cards Paywall: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.20 ▼1.361.93 ▼0.1843.12 ▼4.86
Dashboard /wp-admin2,207 ▲165.83 ▲0.94106.95 ▲0.7840.43 ▲0.46
Posts /wp-admin/edit.php2,096 ▲71.97 ▲0.0139.90 ▲1.8135.70 ▼5.71
Add New Post /wp-admin/post-new.php1,517 ▼217.48 ▼5.52669.28 ▼16.6670.62 ▲9.66
Media Library /wp-admin/upload.php1,389 ▲44.13 ▼0.10109.96 ▼9.0846.86 ▲0.72
Bitcoin Paywall /wp-admin/options-general.php?page=bitcoin_paywall9352.1626.0333.48

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 12 options in the database
    • theysaidso_admin_options
    • bitcoin_paywall_option_name5
    • bitcoin_paywall_option_name3
    • bitcoin_paywall_option_name4
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • bitcoin_paywall_option_name2
    • can_compress_scripts
    • bitcoin_paywall_option_name6
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=bitcoin_paywall
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=bitcoin_paywall
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bitcoin-paywall/wp-bitcoinpaywall.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

bitcoin-paywall/wp-bitcoinpaywall.php 85% from 13 tests

The principal PHP file in "Bitcoin Cash ETH PayPal Credit Cards Paywall" v. 2.9 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bitcoin-paywall.php" instead of "wp-bitcoinpaywall.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
No dangerous file extensions were detected179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15330110
HTML126069

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin