Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.14MB] [CPU: ▼322.38ms] Passed 4 tests
An overview of server-side resources used by Hashcash
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 54.06 ▲3.07 |
Dashboard /wp-admin | 3.18 ▼0.22 | 18.05 ▼15.40 |
Posts /wp-admin/edit.php | 3.18 ▼0.46 | 19.74 ▼16.42 |
Add New Post /wp-admin/post-new.php | 3.18 ▼3.79 | 18.19 ▼1,247.82 |
Media Library /wp-admin/upload.php | 3.18 ▼0.11 | 15.50 ▼9.86 |
Hashcash.IO /wp-admin/options-general.php?page=wp-hashcash | 3.18 | 17.92 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Hashcash
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,904 ▲150 | 15.22 ▼0.61 | 9.56 ▲3.14 | 2.63 ▲0.13 |
Dashboard /wp-admin | 2,897 ▲36 | 6.12 ▼0.04 | 113.28 ▼19.04 | 155.57 ▼7.55 |
Posts /wp-admin/edit.php | 2,696 ▲39 | 3.23 ▼0.01 | 62.43 ▼2.18 | 138.64 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 16.73 ▲0.56 | 404.71 ▼4.70 | 155.14 ▲1.26 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.51 ▲0.00 | 135.90 ▼5.83 | 183.04 ▲1.00 |
Hashcash.IO /wp-admin/options-general.php?page=wp-hashcash | 1,191 | 2.56 | 57.05 | 151.87 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/hashcash/admin/class-wp-hashcash-admin.php+169
Trying to access array offset on value of type bool
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-hashcash
- > Notice in wp-content/plugins/hashcash/admin/class-wp-hashcash-admin.php+240
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hashcash/includes/contactform7.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hashcash/admin/views/admin.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wp-hashcash
- > Network (severe)
https://hashcash.io/js/libs/pow/pow.client.min.js - Failed to load resource: net::ERR_CERT_DATE_INVALID
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Submit button disabled. User need to unlock it before proceeding.), #2 (Widget updates both visually and via WAI-ARIA to inform user about progress.), #3 (Submit button unlocked.), #4 (If user tries to click on submit button before unlocking, information popup will show up.)
hashcash/hashcash.php Passed 13 tests
The main file in "Hashcash" v. 1.0.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
23 characters long description:
Hashcash.IO Integration
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin766 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 177 | 244 | 506 |
Bourne Shell | 1 | 28 | 31 | 105 |
JavaScript | 3 | 17 | 7 | 82 |
CSS | 3 | 19 | 1 | 73 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 15.64KB | 7.15KB | ▼ 54.29% |
screenshot-1.png | 15.31KB | 6.49KB | ▼ 57.61% |
screenshot-4.png | 16.67KB | 7.05KB | ▼ 57.72% |
screenshot-2.png | 15.38KB | 6.60KB | ▼ 57.10% |