10% check-wallet

Code Review | Check Wallet

WordPress plugin Check Wallet scored10%from 54 tests.

About plugin

  • Plugin page: check-wallet
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 21, 2015
  • Latest release: Jan 17, 2017
  • Number of updates: 10
  • Update frequency: every 60.8 days
  • Top authors: tomek00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,496 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/check-wallet/check-wallet.php+33
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Check_Wallet has a deprecated constructor

Server metrics [RAM: ▼1.70MB] [CPU: ▼47.99ms] Passed 4 tests

An overview of server-side resources used by Check Wallet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.05 ▼30.94
Dashboard /wp-admin2.30 ▼1.0011.74 ▼35.59
Posts /wp-admin/edit.php2.30 ▼1.0511.17 ▼37.52
Add New Post /wp-admin/post-new.php2.30 ▼3.5812.59 ▼87.91
Media Library /wp-admin/upload.php2.30 ▼0.9311.26 ▼23.48

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Check Wallet
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.79 ▲0.361.79 ▼0.0641.78 ▲2.27
Dashboard /wp-admin2,209 ▲205.85 ▲0.9196.46 ▼18.2040.15 ▼5.77
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0334.71 ▼5.4232.23 ▼5.17
Add New Post /wp-admin/post-new.php1,533 ▲522.97 ▲4.66632.63 ▲34.5153.00 ▼4.37
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0395.55 ▼0.5943.22 ▲1.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in WP_Widget_Check_Wallet is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_check-wallet-widget
    • widget_recent-comments
    • theysaidso_admin_options

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/check-wallet/check-wallet.php:10

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


Plugin configuration 93% 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:
  • Contributors: Contributors not specified
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

check-wallet/check-wallet.php Passed 13 tests

"Check Wallet" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Check the balance of your Bitcoin wallet

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
No dangerous file extensions were detected117 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File171131

PHP code Passed 2 tests

This is a very shot 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.26
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.21KB11.83KB▼ 56.50%