Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼7.11ms] Passed 4 tests
This is a short check of server-side resources used by WP Blockchain
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 48.07 ▲3.54 |
Dashboard /wp-admin | 3.47 ▲0.17 | 54.46 ▲0.76 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 53.39 ▼9.64 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 89.24 ▼19.98 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.54 ▲0.43 |
WP Blockchain /wp-admin/options-general.php?page=wp-blockchain-settings | 3.95 | 52.92 |
Server storage [IO: ▲1.85MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- There were 3 files (16.78KB) illegally modified outside of "wp-content/plugins/wp-blockchain/" and "wp-content/uploads/"
- (new file) wp-content/cache/wp-blockchain-css-panel.css
- (new file) wp-content/cache/wp-blockchain-css-settings.css
- (new file) wp-content/cache/wp-blockchain-css-stamps.css
Filesystem: 104 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_wpbc_locks |
wp_wpbc_stamps |
wp_wpbc_stamp_trees |
wp_wpbc_stamp_txs |
wp_wpbc_stamp_tx_confirmations |
New WordPress options |
---|
wpbc_last_cron |
wpbc_cron_key |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Blockchain: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲258 | 14.02 ▼0.24 | 6.51 ▲4.53 | 48.99 ▲8.39 |
Dashboard /wp-admin | 2,285 ▲94 | 5.30 ▲0.40 | 110.75 ▲3.47 | 70.83 ▲30.80 |
Posts /wp-admin/edit.php | 2,184 ▲95 | 2.49 ▲0.46 | 42.07 ▲1.29 | 40.37 ▲4.54 |
Add New Post /wp-admin/post-new.php | 1,598 ▲63 | 23.26 ▲0.06 | 644.30 ▲12.59 | 143.94 ▲88.89 |
Media Library /wp-admin/upload.php | 1,486 ▲95 | 4.50 ▲0.27 | 95.25 ▼6.50 | 88.15 ▲41.86 |
WP Blockchain /wp-admin/options-general.php?page=wp-blockchain-settings | 2,556 | 6.91 | 141.82 | 99.35 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_wpbc_stamps
- wp_wpbc_stamp_trees
- wp_wpbc_stamp_tx_confirmations
- wp_wpbc_stamp_txs
- wp_wpbc_locks
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- wpbc_last_cron
- db_upgraded
- wpbc_cron_key
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-blockchain-settings
- > Notice in wp-content/plugins/wp-blockchain/inc/settings.php+672
Undefined index: url
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
Please fix the following items
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blockchain/inc/lib/scssphp-master/src/Formatter/Compressed.php:22
- > PHP Fatal error
Uncaught Error: Class 'WPBC_API_Stamp' not found in wp-content/plugins/wp-blockchain/inc/api/stamp_services/stampery.php:12
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blockchain/inc/lib/scssphp-master/src/Formatter/Compact.php:21
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blockchain/inc/lib/scssphp-master/src/Formatter/Nested.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blockchain/inc/lib/scssphp-master/src/Formatter/Expanded.php:22
- > PHP Fatal error
Uncaught Error: Class 'WPBC_API' not found in wp-content/plugins/wp-blockchain/inc/api/block_explorers/blockcypher.php:12
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blockchain/inc/lib/scssphp-master/src/Formatter/Crunched.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\ode' not found in wp-content/plugins/wp-blockchain/inc/lib/scssphp-master/src/Node/Number.php:29
- > PHP Fatal error
Uncaught Error: Class 'WPBC_API' not found in wp-content/plugins/wp-blockchain/inc/api/block_explorers/btc.php:13
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blockchain/inc/lib/scssphp-master/src/Formatter/Debug.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (A stamp on the frontend), #2 (A stamp on the backend (admin bar)), #3 (A stamp on the backend (edition page)), #4 (A stamp on the backend (listing page)), #5 (A certificate page (edition page)), #6 (The settings page)
wp-blockchain/wp-blockchain.php 92% from 13 tests
The principal PHP file in "WP Blockchain" v. 3.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 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 plugin21,730 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 3,073 | 2,627 | 10,636 |
CSS | 6 | 136 | 84 | 2,965 |
Sass | 18 | 157 | 34 | 2,727 |
SVG | 1 | 0 | 0 | 2,671 |
LESS | 14 | 34 | 44 | 1,758 |
PO File | 1 | 314 | 416 | 591 |
JavaScript | 2 | 86 | 56 | 295 |
Markdown | 2 | 21 | 0 | 46 |
JSON | 1 | 0 | 0 | 41 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 58.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 695.00 |
Average method complexity | 5.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 2 | 6.90% |
▷ Concrete classes | 27 | 93.10% |
▷ Final classes | 0 | 0.00% |
Methods | 378 | |
▷ Static methods | 1 | 0.26% |
▷ Public methods | 120 | 31.75% |
▷ Protected methods | 242 | 64.02% |
▷ Private methods | 16 | 4.23% |
Functions | 165 | |
▷ Named functions | 151 | 91.52% |
▷ Anonymous functions | 14 | 8.48% |
Constants | 84 | |
▷ Global constants | 26 | 30.95% |
▷ Class constants | 58 | 69.05% |
▷ Public constants | 58 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/goodrebels-logo.png | 8.61KB | 6.21KB | ▼ 27.89% |
assets/images/goodrebels-logo-wide.png | 6.41KB | 5.38KB | ▼ 16.07% |