10% cryptothanks

Code Review | Cryptothanks

WordPress plugin Cryptothanks scored10%from 54 tests.

About plugin

  • Plugin page: cryptothanks
  • Plugin version: 0.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3
  • WordPress version: 6.3.1
  • First release: Oct 31, 2017
  • Latest release: Dec 6, 2019
  • Number of updates: 9
  • Update frequency: every 85.2 days
  • Top authors: subet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /7,218 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/cryptothanks/CryptoThanks_Plugin.php+61
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.19ms] Passed 4 tests

A check of server-side resources used by Cryptothanks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.68 ▼2.23
Dashboard /wp-admin3.33 ▲0.0347.60 ▼2.52
Posts /wp-admin/edit.php3.45 ▲0.0947.51 ▼5.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.08 ▼2.60
Media Library /wp-admin/upload.php3.26 ▲0.0335.70 ▲1.07

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 41 new options
New WordPress options
CryptoThanks_Plugin_button_size
CryptoThanks_Plugin_label_size
CryptoThanks_Plugin_USDT_address
can_compress_scripts
CryptoThanks_Plugin_ETC_amount
CryptoThanks_Plugin_label_align
CryptoThanks_Plugin_BTC_amount
CryptoThanks_Plugin_LTC_address
widget_recent-posts
CryptoThanks_Plugin__installed
...

Browser metrics Passed 4 tests

A check of browser resources used by Cryptothanks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.34 ▲0.101.87 ▲0.2645.12 ▼0.18
Dashboard /wp-admin2,214 ▲375.62 ▼0.0393.29 ▲5.1335.97 ▼9.45
Posts /wp-admin/edit.php2,116 ▲92.02 ▲0.0541.45 ▼0.7936.71 ▲1.64
Add New Post /wp-admin/post-new.php1,539 ▲623.01 ▼0.02628.55 ▲33.8748.98 ▼0.44
Media Library /wp-admin/upload.php1,419 ▲224.21 ▼0.0195.89 ▼10.7340.02 ▼5.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 41 options in the database
    • CryptoThanks_Plugin_DASH_address
    • theysaidso_admin_options
    • CryptoThanks_Plugin_BCC_amount
    • can_compress_scripts
    • CryptoThanks_Plugin_ETH_address
    • widget_recent-comments
    • CryptoThanks_Plugin_ETH_amount
    • CryptoThanks_Plugin_button_size
    • CryptoThanks_Plugin_USDT_address
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptothanks/cryptothanks.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Requires php: Version format is invalid
  • Tags: You are using too many tags: 21 tag instead of maximum 10
Please take inspiration from this readme.txt

cryptothanks/cryptothanks.php 85% from 13 tests

The entry point to "Cryptothanks" version 0.2.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin703 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8172414703

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.83
▷ Minimum class complexity2.00
▷ Maximum class complexity45.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods77
▷ Static methods00.00%
▷ Public methods4761.04%
▷ Protected methods3038.96%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin