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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.68 ▼2.23 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.60 ▼2.52 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.51 ▼5.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.08 ▼2.60 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.34 ▲0.10 | 1.87 ▲0.26 | 45.12 ▼0.18 |
Dashboard /wp-admin | 2,214 ▲37 | 5.62 ▼0.03 | 93.29 ▲5.13 | 35.97 ▼9.45 |
Posts /wp-admin/edit.php | 2,116 ▲9 | 2.02 ▲0.05 | 41.45 ▼0.79 | 36.71 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.01 ▼0.02 | 628.55 ▲33.87 | 48.98 ▼0.44 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.21 ▼0.01 | 95.89 ▼10.73 | 40.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 172 | 414 | 703 |
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 code | 0.34 |
Average class complexity | 10.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 61.04% |
▷ Protected methods | 30 | 38.96% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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