76% cryptocurrency-price-ticker-widget

Code Review | Cryptocurrency Widgets - Price Ticker & Coins List

WordPress plugin Cryptocurrency Widgets - Price Ticker & Coins List scored76%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-pr...
  • Plugin version: 2.6.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Nov 30, 2023
  • Number of updates: 110
  • Update frequency: every 19.7 days
  • Top authors: Narinder singh (100%)

Code review

54 tests

User reviews

179 reviews

Install metrics

10,000+ active /304,370 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.96MB] [CPU: ▲4.77ms] 75% from 4 tests

This is a short check of server-side resources used by Cryptocurrency Widgets - Price Ticker & Coins List
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 954.45ms on /wp-admin/admin.php?page=cool-crypto-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.41 ▲0.9443.60 ▲4.86
Dashboard /wp-admin4.32 ▲1.0150.90 ▲2.07
Posts /wp-admin/edit.php4.37 ▲1.0154.54 ▲2.44
Add New Post /wp-admin/post-new.php6.85 ▲0.96100.84 ▲14.60
Media Library /wp-admin/upload.php4.18 ▲0.9443.50 ▲9.69
↳ Add New Widget /wp-admin/post-new.php?post_type=ccpw5.6463.23
Dashboard /wp-admin/admin.php?page=cool-crypto-plugins5.15954.45
API Settings /wp-admin/admin.php?page=openexchange-api-settings5.4047.02
↳ Settings /wp-admin/admin.php?page=ccpw_options5.3745.26
↳ All Widgets /wp-admin/edit.php?post_type=ccpw5.1947.48

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2,506 new files
Database: 1 new table, 16 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Cryptocurrency Widgets - Price Ticker & Coins List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲20613.83 ▼0.367.21 ▲5.5039.52 ▼5.64
Dashboard /wp-admin2,297 ▲1265.68 ▲0.0494.28 ▼9.0649.38 ▼0.97
Posts /wp-admin/edit.php2,203 ▲1032.05 ▲0.0942.65 ▲0.6741.88 ▲2.31
Add New Post /wp-admin/post-new.php1,603 ▲7723.28 ▲0.37582.24 ▲4.7061.01 ▲2.84
Media Library /wp-admin/upload.php1,502 ▲1084.25 ▲0.0696.94 ▲2.3044.93 ▲5.17
↳ Add New Widget /wp-admin/post-new.php?post_type=ccpw2,9084.68124.26131.52
Dashboard /wp-admin/admin.php?page=cool-crypto-plugins1,2302.2029.9042.12
API Settings /wp-admin/admin.php?page=openexchange-api-settings1,0972.3728.6036.78
↳ Settings /wp-admin/admin.php?page=ccpw_options1,0082.3429.2535.35
↳ All Widgets /wp-admin/edit.php?post_type=ccpw1,2022.2134.8537.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 16 options
    • cool-crypto-plugins-crypto
    • ccpw-type
    • ccpw_data_save
    • widget_recent-comments
    • widget_theysaidso_widget
    • ccpw-fresh-installation
    • widget_recent-posts
    • ccpw_activation_time
    • cool-crypto-plugins-crypto-pro
    • ccpw_do_activation_redirect
    • ...

Smoke tests 50% from 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 0% 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cryptocurrency-price-ticker-widget/admin/addon-dashboard-page/includes/cool_plugins_downloader.php
  • 51× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/review-notices/class.review-notice.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/cmb2/includes/CMB2_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/cmb2/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cryptocurrency-price-ticker-widget/includes/ccpw-generate-html.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-price-ticker-widget/admin/openexchange-api/openexchange-api-settings.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #9 (Coins Marketcap plugin coin single page.), #10 (Cryptocurrency Exchanges List Pro WordPress plugin.), #11 (Coins Marketcap plugin - Top Gainer/Top Losers.)
You can take inspiration from this readme.txt

cryptocurrency-price-ticker-widget/cryptocurrency-price-ticker-widget.php 69% from 13 tests

The principal PHP file in "Cryptocurrency Widgets - Price Ticker & Coins List" v. 2.6.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: The description should be shorter than 140 characters (currently 151 characters long)

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
No dangerous file extensions were detected45,721 lines of code in 872 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity20.51
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
▷ Abstract classes910.98%
▷ Concrete classes7389.02%
▷ Final classes11.37%
▷ Static methods9414.66%
▷ Public methods54785.34%
▷ Protected methods9014.04%
▷ Private methods40.62%
▷ Named functions4897.96%
▷ Anonymous functions12.04%
▷ Global constants1137.93%
▷ Class constants1862.07%
▷ Public constants18100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1605 PNG files occupy 4.71MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/coin-logos/bifrost.png18.55KB0.00KB▼ 100.00%