10% cryptocurrency-interest-rates

Code Review | Cryptocurrency Interest Rates

WordPress plugin Cryptocurrency Interest Rates scored 10% from 54 tests.

About plugin

  • Plugin page: cryptocurrency-in...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1.1
  • WordPress version: 5.8.1
  • First release: Mar 17, 2019
  • Latest release: Apr 11, 2019
  • Number of updates: 33
  • Update frequency: every 0.8 days
  • Top authors: earncryptointerest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,074 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/cryptocurrency-interest-rates/cryptointerest.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; CryptoInterestWidget has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼175.41ms] Passed 4 tests

A check of server-side resources used by Cryptocurrency Interest Rates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼1.044.33 ▼17.73
Dashboard /wp-admin1.82 ▼1.253.74 ▼34.67
Posts /wp-admin/edit.php1.82 ▼1.294.06 ▼24.53
Add New Post /wp-admin/post-new.php1.82 ▼3.623.80 ▼622.44
Media Library /wp-admin/upload.php1.82 ▼1.193.75 ▼19.99

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_cryptointerestwidget

Browser metrics Passed 4 tests

A check of browser resources used by Cryptocurrency Interest Rates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲4015.61 ▼0.035.05 ▼0.2075.72 ▲2.85
Dashboard /wp-admin2,929 ▲346.08 ▼0.07115.94 ▼19.50165.49 ▼9.57
Posts /wp-admin/edit.php2,740 ▼33.36 ▲0.1363.89 ▼0.95137.77 ▼0.43
Add New Post /wp-admin/post-new.php3,743 ▼6419.12 ▲0.90450.23 ▲24.40156.69 ▼12.23
Media Library /wp-admin/upload.php1,749 ▼35.52 ▼0.03136.15 ▼2.87186.79 ▲1.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/cryptocurrency-interest-rates/cryptointerest.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; CryptoInterestWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_cryptointerestwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cryptocurrency-interest-rates/cryptointerest.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% 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
6 plugin tags: passive income, interest rate, bitcoin, crypto, cryptocurrency...

cryptocurrency-interest-rates/cryptointerest.php 92% from 13 tests

"Cryptocurrency Interest Rates" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cryptocurrency-interest-rates.php" instead of "cryptointerest.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
Good job! No executable or dangerous file extensions detected112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1119112

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.47
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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