89% cc-ticker

Code Review | Easy CryptoCurrency Ticker

WordPress plugin Easy CryptoCurrency Ticker scored89%from 54 tests.

About plugin

  • Plugin page: cc-ticker
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2017
  • Latest release: Dec 28, 2020
  • Number of updates: 4
  • Update frequency: every 274.5 days
  • Top authors: urkekg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,542 total downloads


Plugin footprint 82% 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: ▲6.01MB] [CPU: ▲5.27ms] 75% from 4 tests

Server-side resources used by Easy CryptoCurrency Ticker
It is recommended to improve the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 6.01MB on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /9.48 ▲6.0243.07 ▼2.14
Dashboard /wp-admin9.31 ▲6.0152.43 ▲4.37
Posts /wp-admin/edit.php9.42 ▲6.0755.28 ▲13.06
Add New Post /wp-admin/post-new.php11.89 ▲6.01104.57 ▲18.56
Media Library /wp-admin/upload.php9.23 ▲6.0141.22 ▲5.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy CryptoCurrency Ticker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.54 ▼0.891.51 ▼0.6538.10 ▼13.65
Dashboard /wp-admin2,206 ▲184.80 ▼1.08107.19 ▼0.1142.15 ▲0.12
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0640.75 ▲1.2136.93 ▲4.89
Add New Post /wp-admin/post-new.php1,533 ▼023.33 ▲0.02611.64 ▼92.3253.46 ▼1.78
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.0696.38 ▼6.3343.20 ▼1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_wpau_cryptocurrency_ticker

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 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
8 plugin tags: cryptocompare, bitcoin, cryptocurrency, quote, litecoin...

cc-ticker/cc-ticker.php 85% from 13 tests

The main PHP file in "Easy CryptoCurrency Ticker" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

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
Success! There were no dangerous files found in this plugin573 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.00
▷ Minimum class complexity17.00
▷ Maximum class complexity39.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods952.94%
▷ Public methods1376.47%
▷ Protected methods00.00%
▷ Private methods423.53%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin