10% live-ticker-cryptocoin

Code Review | Cryptocoin Live Ticker

WordPress plugin Cryptocoin Live Ticker scored10%from 54 tests.

About plugin

  • Plugin page: live-ticker-crypt...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 9, 2017
  • Latest release: May 4, 2018
  • Number of updates: 25
  • Update frequency: every 8.3 days
  • Top authors: coinalyze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,534 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/live-ticker-cryptocoin/cryptocoin-live-ticker.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; CryptocoinLiveTickerWidget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.38ms] Passed 4 tests

A check of server-side resources used by Cryptocoin Live Ticker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.47 ▼36.86
Dashboard /wp-admin2.11 ▼1.195.79 ▼44.17
Posts /wp-admin/edit.php2.11 ▼1.245.77 ▼45.30
Add New Post /wp-admin/post-new.php2.11 ▼3.776.69 ▼83.17
Media Library /wp-admin/upload.php2.11 ▼1.126.12 ▼28.72

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_cryptocoinlivetickerwidget

Browser metrics Passed 4 tests

A check of browser resources used by Cryptocoin Live Ticker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.18 ▼1.111.73 ▼0.3040.56 ▼6.19
Dashboard /wp-admin2,208 ▲204.81 ▼1.0899.89 ▼5.3143.29 ▲0.19
Posts /wp-admin/edit.php2,091 ▼12.05 ▲0.0233.68 ▼6.7338.08 ▼1.13
Add New Post /wp-admin/post-new.php1,531 ▼1223.21 ▲5.05670.31 ▲35.8766.51 ▲9.60
Media Library /wp-admin/upload.php1,390 ▲24.22 ▼0.02105.60 ▼0.8349.63 ▲1.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/live-ticker-cryptocoin/cryptocoin-live-ticker.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; CryptocoinLiveTickerWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_cryptocoinlivetickerwidget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/live-ticker-cryptocoin/cryptocoin-live-ticker.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

live-ticker-cryptocoin/cryptocoin-live-ticker.php 92% from 13 tests

The principal PHP file in "Cryptocoin Live Ticker" v. 1.5.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("live-ticker-cryptocoin.php" instead of "cryptocoin-live-ticker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected208 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2349167
CSS112141

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin