Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▲3.59ms] Passed 4 tests
An overview of server-side resources used by Bitcoin and Altcoin Wallets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 41.84 ▲1.86 |
Dashboard /wp-admin | 3.92 ▲0.62 | 57.35 ▲0.02 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 56.11 ▲12.31 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 91.17 ▲0.16 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 46.47 ▲13.86 |
Server storage [IO: ▲2.61MB] [DB: ▲0.74MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 184 new files
Database: no new tables, 37 new options
New WordPress options |
---|
db_upgraded |
wallets_fiat_fixerio_key |
wallets_cron_autocancel |
wallets_rates_vs |
theysaidso_admin_options |
wallets_polling_interval |
widget_recent-comments |
wallets_http_tor_port |
wallets_cron_last_run |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Bitcoin and Altcoin Wallets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲944 | 14.10 ▼0.41 | 5.56 ▲3.99 | 31.32 ▼12.02 |
Dashboard /wp-admin | 2,983 ▲809 | 5.26 ▼0.30 | 114.48 ▲17.41 | 54.24 ▲12.16 |
Posts /wp-admin/edit.php | 2,397 ▲297 | 2.33 ▲0.36 | 49.84 ▲13.18 | 38.84 ▲6.07 |
Add New Post /wp-admin/post-new.php | 1,681 ▲142 | 23.20 ▲0.08 | 705.91 ▲28.82 | 60.55 ▼2.67 |
Media Library /wp-admin/upload.php | 1,734 ▲334 | 4.61 ▲0.44 | 110.74 ▲1.93 | 45.51 ▲1.64 |
Uninstaller [IO: ▲0.02MB] [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
The following items require your attention
- This plugin does not fully uninstall, leaving 11 options in the database
- wallets_cron_last_peak_mem
- widget_theysaidso_widget
- wallets_cron_last_elapsed_time
- wallets_cron_last_run
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- wallets_migration_state
- wallets_cron_last_mem_delta
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wallets/uninstall.php on line 6
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wallets/uninstall.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wallets/uninstall.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/wallets/third-party/ParsedownExtra.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function DSWallets\\add_action() in wp-content/plugins/wallets/apis/suggest.php:15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
wallets/wallets.php 92% from 13 tests
The main file in "Bitcoin and Altcoin Wallets" v. 6.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.2")
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 detected35,253 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 7,040 | 5,549 | 31,149 |
Markdown | 17 | 2,151 | 0 | 3,434 |
JavaScript | 28 | 31 | 68 | 411 |
CSS | 6 | 56 | 18 | 257 |
SVG | 1 | 0 | 0 | 2 |
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.37 |
Average class complexity | 66.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 314.00 |
Average method complexity | 5.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 4 | 18.18% |
▷ Concrete classes | 18 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 295 | |
▷ Static methods | 84 | 28.47% |
▷ Public methods | 200 | 67.80% |
▷ Protected methods | 73 | 24.75% |
▷ Private methods | 22 | 7.46% |
Functions | 390 | |
▷ Named functions | 174 | 44.62% |
▷ Anonymous functions | 216 | 55.38% |
Constants | 73 | |
▷ Global constants | 5 | 6.85% |
▷ Class constants | 68 | 93.15% |
▷ Public constants | 68 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sprites/reload-icon.png | 0.78KB | 1.15KB | 0.00% |
assets/sprites/wallets-32x32.png | 1.47KB | 1.41KB | ▼ 4.06% |