10% simple-bitcoin-faucets

Code Review | Bitcoin Satoshi Tools : Faucets, Visitor Rewarder, Satoshi Games, Referral Program

WordPress plugin Bitcoin Satoshi Tools : Faucets, Visitor Rewarder, Satoshi Games, Referral Program scored 10% from 54 tests.

About plugin

  • Plugin page: simple-bitcoin-fa...
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.5
  • WordPress version: 5.9.2
  • First release: Oct 25, 2017
  • Latest release: Sep 9, 2020
  • Number of updates: 81
  • Update frequency: every 13.0 days
  • Top authors: trof (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 14,058 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/simple-bitcoin-faucets/bonds/bonds.php+15
    include_once(wp-content/plugins/bonds_extra/bonds_extra.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼2.13MB] [CPU: ▼341.76ms] Passed 4 tests

This is a short check of server-side resources used by Bitcoin Satoshi Tools : Faucets, Visitor Rewarder, Satoshi Games, Referral Program
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.275.66 ▼45.30
Dashboard /wp-admin2.26 ▼1.155.41 ▼27.39
Posts /wp-admin/edit.php2.26 ▼1.386.62 ▼31.43
Add New Post /wp-admin/post-new.php2.26 ▼4.715.38 ▼1,262.93
Media Library /wp-admin/upload.php2.26 ▼1.044.35 ▼21.16
Bitcoin Satoshi Tools /wp-admin/options-general.php?page=simple-bitcoin-faucets2.266.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 192 new files
Database: 3 new tables, 1 new option
New tables
wp_sb_Keys
wp_sb_Blocks
wp_sb_Bonds
New WordPress options
sfbg_sb_bonds_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bitcoin Satoshi Tools : Faucets, Visitor Rewarder, Satoshi Games, Referral Program
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲7915.90 ▲0.226.40 ▼0.372.69 ▼0.02
Dashboard /wp-admin2,897 ▲366.10 ▼0.04121.55 ▼18.18156.77 ▼9.40
Posts /wp-admin/edit.php2,693 ▼13.25 ▲0.0163.50 ▼3.51141.47 ▼6.82
Add New Post /wp-admin/post-new.php1,636 ▼11616.51 ▼5.08423.65 ▼43.59164.14 ▼3.81
Media Library /wp-admin/upload.php1,700 ▼15.51 ▲0.02142.59 ▼1.80184.16 ▼2.62
Bitcoin Satoshi Tools /wp-admin/options-general.php?page=simple-bitcoin-faucets5,5165.18207.51350.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/simple-bitcoin-faucets/bonds/bonds.php+15
    include_once(wp-content/plugins/bonds_extra/bonds_extra.php): failed to open stream: No such file or directory
  • Zombie tables were found after uninstall: 3 tables
    • wp_sb_Blocks
    • wp_sb_Keys
    • wp_sb_Bonds
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • sfbg_sb_bonds_db_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-bitcoin-faucets
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/simple-bitcoin-faucets/bonds/bonds.php+15
    include_once(wp-content/plugins/bonds_extra/bonds_extra.php): failed to open stream: No such file or directory
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-bitcoin-faucets
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/simple-bitcoin-faucets/bonds/bonds.php+15
    include_once(): Failed opening 'wp-content/plugins/bonds_extra/bonds_extra.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/options-general.php?page=simple-bitcoin-faucets
    • > Notice in wp-content/plugins/simple-bitcoin-faucets/bonds/bonds.php+494
    Undefined variable: ret
    • > GET request to /wp-admin/options-general.php?page=simple-bitcoin-faucets
    • > Warning in wp-content/plugins/simple-bitcoin-faucets/sbf_admin_faucets.php+46
    Use of undefined constant fid - assumed 'fid' (this will throw an Error in a future version of PHP)

SRP 0% from 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
Please fix the following
  • 21× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/templatePCA_RU.php
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/templatePCD_EN.php
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/templatePCA_EN.php
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/templatePCD_RU.php
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/template1.php
    • > /wp-content/plugins/simple-bitcoin-faucets/lines/lines_was.php
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/template3.php
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/templatePCP_EN.php
    • > /wp-content/plugins/simple-bitcoin-faucets/templates/template5.php
    • > /wp-content/plugins/simple-bitcoin-faucets/videopoker/cm_withdraw.php
  • 69× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include_once(_bottom_ads.php): failed to open stream: No such file or directory in wp-content/plugins/simple-bitcoin-faucets/2048/index.php on line 123
    • > PHP Warning
      include_once(_right_ads.php): failed to open stream: No such file or directory in wp-content/plugins/simple-bitcoin-faucets/lines/lines_was.php on line 262
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-bitcoin-faucets/sbf_admin_minesweeper.php:4
    • > PHP Warning
      include_once(): Failed opening '_right_ads.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simple-bitcoin-faucets/lines/lines.php on line 90
    • > PHP Notice
      Undefined index: vp_s_minimum_initial_bonus in wp-content/plugins/simple-bitcoin-faucets/videopoker/cm_withdraw.php on line 8
    • > PHP Notice
      Undefined index: vp_s_maximum_deposit in wp-content/plugins/simple-bitcoin-faucets/videopoker/cm_withdraw.php on line 12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-bitcoin-faucets/sbf_admin_paidcontent.php:4
    • > PHP Warning
      include_once(): Failed opening '_top_ads.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simple-bitcoin-faucets/2048/index.php on line 85
    • > PHP Warning
      include_once(_right_ads.php): failed to open stream: No such file or directory in wp-content/plugins/simple-bitcoin-faucets/minesweeper/index.php on line 122
    • > PHP Notice
      Undefined index: vp_s_maximum_initial_bonus in wp-content/plugins/simple-bitcoin-faucets/videopoker/cm_withdraw.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (**Basic Bitcoin Faucet for Wordpress** - No banners yet), #2 (**WebSurfer Rewarder Mark** - You can configure size and position.), #3 (**Rewarder configuration** - Changes visualized), #4 (**BlockRain configuration** - Nothing fancy, and you can test the game(play) and Faucets right here.), #5 (**2048 configuration** - To play use your arrow keys to move the tiles, when two tiles with the same number touch, they merge into one.), #6 (**Lines configuration** - AKA "Color Lines"), #7 (**Minesweeper configuration** - Classic), #8 (**Video Poker** - Play mode), #9 (**Video Poker** - Admin mode), #10 (**Bubble Shooter** - Great fun), #11 (**Satohi Bonds** - Satoshi Bond Manager)
  • Tags: You are using too many tags: 22 tag instead of maximum 10
The official readme.txt might help

simple-bitcoin-faucets/simple-bitcoin-faucets.php Passed 13 tests

The main file in "Bitcoin Satoshi Tools : Faucets, Visitor Rewarder, Satoshi Games, Referral Program" v. 1.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
78 characters long description:
Satoshi Bonds, Games, Faucets, Visitor Rewarder, Referral Program, and more...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected13,881 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,2786405,861
JavaScript241,1651,1445,832
CSS13167971,266
PO File1299361763
Markdown1580159

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions56
▷ Named functions56100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 1.89MB with 0.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
minesweeper/css/smoothness/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
screenshot-9.png578.10KB166.93KB▼ 71.13%
blockrain/assets/blocks/custom/leftZag.png1.30KB0.56KB▼ 56.67%
sbf_lib/bitcoin_64.png5.98KB2.88KB▼ 51.84%
minesweeper/css/smoothness/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%