88% crypto-coin-ticker

Code Review | Crypto Coin Ticker

WordPress plugin Crypto Coin Ticker scored 88% from 54 tests.

About plugin

  • Plugin page: crypto-coin-ticker
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.2
  • WordPress version: 5.8.1
  • First release: Dec 21, 2017
  • Latest release: Nov 15, 2018
  • Number of updates: 14
  • Update frequency: every 23.4 days
  • Top authors: alexmustin (78.57%)zwaply (28.57%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 8,125 total downloads


Plugin footprint Passed 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.21MB] [CPU: ▼138.91ms] Passed 4 tests

This is a short check of server-side resources used by Crypto Coin Ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.082,060.67 ▲2,025.10
Dashboard /wp-admin3.37 ▲0.3146.57 ▲3.87
Posts /wp-admin/edit.php3.42 ▲0.3146.87 ▲4.90
Add New Post /wp-admin/post-new.php5.66 ▲0.2389.00 ▼567.53
Media Library /wp-admin/upload.php3.25 ▲0.2437.84 ▲3.14
Settings /wp-admin/admin.php?page=crypto-coin-ticker3.2233.23
Affiliate Panel /wp-admin/admin.php?page=crypto-coin-ticker-affiliate-panel3.2228.93

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Crypto Coin Ticker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,036 ▲44016.58 ▲0.7213.40 ▲5.3954.98 ▲6.91
Dashboard /wp-admin3,182 ▲2516.28 ▲0.36134.29 ▼6.80127.61 ▲13.00
Posts /wp-admin/edit.php2,812 ▲732.69 ▲0.0065.67 ▼0.9099.21 ▲6.91
Add New Post /wp-admin/post-new.php1,715 ▲4318.87 ▼0.20365.45 ▼1.23111.84 ▼0.77
Media Library /wp-admin/upload.php1,878 ▲715.02 ▲0.01156.02 ▼4.23124.32 ▲8.79
Settings /wp-admin/admin.php?page=crypto-coin-ticker1,6582.2157.28102.54
Affiliate Panel /wp-admin/admin.php?page=crypto-coin-ticker-affiliate-panel1,0962.3459.9566.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× 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/crypto-coin-ticker/admin/class-crypto-coin-ticker-dashboard-wallet.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/crypto-coin-ticker/admin/partials/crypto-coin-ticker-affiliate-panel.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/crypto-coin-ticker/admin/partials/crypto-coin-ticker-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-coin-ticker/admin/class-crypto-coin-ticker-dashboard-affiliate.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=crypto-coin-ticker-affiliate-panel
    • > Network (severe)
    https://zwaply.com/affiliate-login/?username= - Failed to load resource: the server responded with a status of 500 ()


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: price, currency, bitcoin, crypto, ticker

crypto-coin-ticker/crypto-coin-ticker.php 85% from 13 tests

Analyzing the main PHP file in "Crypto Coin Ticker" version 1.0.7
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 222 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin8,479 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity27.67
▷ Minimum class complexity2.00
▷ Maximum class complexity58.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4293.33%
▷ Protected methods00.00%
▷ Private methods36.67%
▷ Named functions685.71%
▷ Anonymous functions114.29%
▷ Global constants2100.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
There were not PNG files found in your plugin