84% current-bitcoin-price

Code Review | Bitcoin Price Ticker

WordPress plugin Bitcoin Price Ticker scored84%from 54 tests.

About plugin

  • Plugin page: current-bitcoin-p...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: Jul 11, 2018
  • Number of updates: 11
  • Update frequency: every 26.1 days
  • Top authors: mishuk24 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /7,627 total downloads

Benchmarks

Plugin footprint 83% 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.05MB] [CPU: ▼4.60ms] Passed 4 tests

Analyzing server-side resources used by Bitcoin Price Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0548.25 ▲4.09
Dashboard /wp-admin3.36 ▲0.0654.85 ▼1.57
Posts /wp-admin/edit.php3.47 ▲0.1248.03 ▼2.94
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.11 ▼15.69
Media Library /wp-admin/upload.php3.28 ▲0.0536.97 ▲1.81
Current Bitcoin Price /wp-admin/options-general.php?page=cbp-admin-dashboard3.2533.73

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
cbp_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bitcoin Price Ticker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲9213.41 ▼1.099.46 ▲7.3339.46 ▼5.08
Dashboard /wp-admin2,199 ▲285.72 ▲0.0788.50 ▼17.1538.64 ▼3.61
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0437.78 ▼1.9934.26 ▼3.12
Add New Post /wp-admin/post-new.php1,529 ▼023.48 ▲0.44670.77 ▲27.2954.55 ▲1.03
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0494.93 ▼10.0842.94 ▼5.86
Current Bitcoin Price /wp-admin/options-general.php?page=cbp-admin-dashboard9212.0225.6233.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • cbp_options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/current-bitcoin-price/includes/cbp_shortcodes.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/current-bitcoin-price/includes/cbp_admin_area.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/current-bitcoin-price/functions.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
The official readme.txt might help

current-bitcoin-price/current-bitcoin-price.php Passed 13 tests

The main PHP script in "Bitcoin Price Ticker" version 1.0.4 is automatically included on every request by WordPress
82 characters long description:
A simple plugin which helps you to see Current Price of Bitcoin using coindesk API

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
Good job! No executable or dangerous file extensions detected296 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP475133199
JavaScript321472
CSS13025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin