84% bitcoin-exchange-widget

Code Review | Bitcoin Exchange Widget

WordPress plugin Bitcoin Exchange Widget scored84%from 54 tests.

About plugin

  • Plugin page: bitcoin-exchange-...
  • Plugin version: 1.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: Nov 27, 2013
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: bradmkjr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,914 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.14ms] Passed 4 tests

Analyzing server-side resources used by Bitcoin Exchange Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.55 ▲0.32
Dashboard /wp-admin3.33 ▲0.0245.70 ▼2.61
Posts /wp-admin/edit.php3.38 ▲0.0249.15 ▲1.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.01 ▼1.77
Media Library /wp-admin/upload.php3.25 ▲0.0235.71 ▼0.49

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_btc_exchange_widget
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Bitcoin Exchange Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.40 ▲0.021.72 ▼0.1439.01 ▼8.02
Dashboard /wp-admin2,203 ▲125.89 ▲0.9995.74 ▼10.8637.71 ▼3.90
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0739.57 ▲4.0434.56 ▲1.06
Add New Post /wp-admin/post-new.php1,533 ▼023.36 ▲0.24624.40 ▼30.6854.43 ▲5.44
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0395.17 ▼10.4340.27 ▼6.13

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_btc_exchange_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bitcoin-exchange-widget/btc-exchange.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: widget, exchange, bitcoin, btc

bitcoin-exchange-widget/btc-exchange.php 92% from 13 tests

The main file in "Bitcoin Exchange Widget" v. 1.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bitcoin-exchange-widget.php" instead of "btc-exchange.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1295989

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin