68% bitcoin-address

Code Review | Bitcoin Address

WordPress plugin Bitcoin Address scored68%from 54 tests.

About plugin

  • Plugin page: bitcoin-address
  • Plugin version: 0.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Oct 8, 2016
  • Number of updates: 8
  • Update frequency: every 82.7 days
  • Top authors: Abdussamad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,488 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.62ms] Passed 4 tests

Server-side resources used by Bitcoin Address
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.20 ▼3.82
Dashboard /wp-admin3.42 ▲0.0851.29 ▼13.67
Posts /wp-admin/edit.php3.47 ▲0.1248.57 ▼0.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.75 ▼8.25
Media Library /wp-admin/upload.php3.28 ▲0.0542.08 ▲0.24
Bitcoin Address Log /wp-admin/options-general.php?page=bitcoin_address_log_page3.2636.97
Bitcoin Address /wp-admin/options-general.php?page=bitcoin_address_options_page3.2335.26

Server storage [IO: ▲0.38MB] [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: 76 new files
Database: 1 new table, 8 new options
New tables
wp_bitcoin_address_log
New WordPress options
widget_recent-posts
can_compress_scripts
abd_libs_version
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
bitcoin_address_version

Browser metrics Passed 4 tests

Bitcoin Address: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲4813.27 ▼1.501.68 ▼0.4141.81 ▼0.75
Dashboard /wp-admin2,229 ▲234.85 ▼1.05102.87 ▲0.0236.69 ▼10.60
Posts /wp-admin/edit.php2,108 ▲82.12 ▲0.1437.82 ▼3.2831.86 ▼5.59
Add New Post /wp-admin/post-new.php1,551 ▲222.97 ▼0.11718.39 ▼6.9264.93 ▼44.26
Media Library /wp-admin/upload.php1,411 ▲114.14 ▼0.02116.39 ▲1.9247.93 ▼1.72
Bitcoin Address Log /wp-admin/options-general.php?page=bitcoin_address_log_page9282.0226.9230.91
Bitcoin Address /wp-admin/options-general.php?page=bitcoin_address_options_page8512.1425.6528.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_bitcoin_address_log
  • Zombie WordPress options were found after uninstall: 8 options
    • abd_libs_version
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • bitcoin_address_version
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=bitcoin_address_options_page
    • > 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_address_options_page
    • > 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'abd_meta_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/abstract.class.abd_multiple_choice_meta_option.inc.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'abd_single_choice_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_select_option.inc.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'abd_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_text_option.inc.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'abd_text_meta_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_textarea_meta_option.inc.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'abd_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/abstract.class.abd_multiple_choice_option.inc.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'abd_ground_floor' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_section.inc.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'abd_multiple_choice_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_check_option.inc.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'abd_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_upload_option.inc.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'abd_single_choice_meta_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_radio_meta_option.inc.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'abd_option' not found in wp-content/plugins/bitcoin-address/includes/abd_libs/class.abd_color_picker_option.inc.php:11

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === bitcoin-address === )
You can look at the official readme.txt

bitcoin-address/bitcoin_address.php 92% from 13 tests

The main file in "Bitcoin Address" v. 0.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bitcoin-address.php" instead of "bitcoin_address.php")

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
Good job! No executable or dangerous file extensions detected7,034 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP531,5761,4676,691
CSS23364307
PO File191429
JavaScript20137

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.13
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes68
▷ Abstract classes811.76%
▷ Concrete classes6088.24%
▷ Final classes00.00%
Methods500
▷ Static methods13326.60%
▷ Public methods44288.40%
▷ Protected methods285.60%
▷ Private methods306.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants44
▷ Global constants3579.55%
▷ Class constants920.45%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/abd_libs/css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
includes/abd_libs/css/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%
includes/abd_libs/css/images/ui-bg_glass_100_fdf5ce_1x400.png0.12KB0.16KB0.00%
includes/abd_libs/css/images/ui-icons_ffd27a_256x240.png4.27KB4.11KB▼ 3.78%
includes/abd_libs/css/images/ui-bg_diagonals-thick_20_666666_40x40.png0.25KB0.15KB▼ 37.45%