83% cryptoniq-lite

Code Review | Cryptoniq - Cryptocurrency Decentralized Payment Gateway

WordPress plugin Cryptoniq - Cryptocurrency Decentralized Payment Gateway scored83%from 54 tests.

About plugin

  • Plugin page: cryptoniq-lite
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 6.3.1
  • First release: Sep 10, 2018
  • Latest release: Mar 27, 2021
  • Number of updates: 26
  • Update frequency: every 35.8 days
  • Top authors: DIVENGINE (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /9,890 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.78ms] Passed 4 tests

This is a short check of server-side resources used by Cryptoniq - Cryptocurrency Decentralized Payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.49 ▼3.33
Dashboard /wp-admin3.44 ▲0.1452.05 ▼2.11
Posts /wp-admin/edit.php3.49 ▲0.1452.64 ▼4.24
Add New Post /wp-admin/post-new.php5.96 ▲0.0895.63 ▼5.42
Media Library /wp-admin/upload.php3.30 ▲0.0841.62 ▲5.20
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.3734.83

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,430 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
cryptoniq_currency_prices
can_compress_scripts
cryptoniq_coin_prices

Browser metrics Passed 4 tests

An overview of browser requirements for Cryptoniq - Cryptocurrency Decentralized Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲17713.70 ▼0.8811.74 ▲9.7137.84 ▼6.00
Dashboard /wp-admin2,234 ▲464.85 ▼1.03114.17 ▲8.6348.24 ▲7.36
Posts /wp-admin/edit.php2,128 ▲362.04 ▲0.0142.77 ▲1.4739.58 ▲3.00
Add New Post /wp-admin/post-new.php1,552 ▲1723.13 ▼0.24629.09 ▼64.3652.77 ▲0.50
Media Library /wp-admin/upload.php1,427 ▲424.26 ▲0.11113.25 ▲6.7750.89 ▲3.71
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9592.0926.8235.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • cryptoniq_coin_prices
    • can_compress_scripts
    • cryptoniq_currency_prices
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/cryptoniq-lite/tgma/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/cryptoniq-lite/tgma/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in cryptoniq-lite/assets to your readme.txt
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Plugin Name: Please specify the plugin name on the first line ( === cryptoniq-lite === )
The official readme.txt might help

cryptoniq-lite/index.php 85% from 13 tests

The entry point to "Cryptoniq - Cryptocurrency Decentralized Payment Gateway" version 1.3.1 is a PHP file that has certain tags in its header comment area
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
  • Main file name: The principal plugin file should be the same as the plugin slug ("cryptoniq-lite.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin85,276 lines of code in 1,375 files:
LanguageFilesBlank linesComment linesLines of code
JSON60039,953
YAML40015,153
SVG1,26805,02712,357
PO File211,7252,2735,595
Sass25515464,647
LESS24513574,614
PHP147161,7562,870
Markdown126047
JavaScript812436
CSS41164

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity35.70
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods119
▷ Static methods75.88%
▷ Public methods9478.99%
▷ Protected methods2319.33%
▷ Private methods21.68%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/demo/images/cryptoniq.wallets.pro.png26.56KB14.16KB▼ 46.69%
admin/assets/demo/images/cryptoniq.coins.pro.png8.24KB3.67KB▼ 55.50%
admin/assets/demo/images/cryptoniq.prices.pro.png14.22KB5.69KB▼ 60.02%
assets/images/cryptoniq.logo.png24.10KB5.62KB▼ 76.68%