Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.85MB] [CPU: ▲10.68ms] Passed 4 tests
Analyzing server-side resources used by Web3 Access
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.77 | 48.54 ▲4.68 |
Dashboard /wp-admin | 4.18 ▲0.88 | 57.36 ▲11.87 |
Posts /wp-admin/edit.php | 4.23 ▲0.88 | 63.63 ▲13.92 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.00 | 115.90 ▲18.75 |
Media Library /wp-admin/upload.php | 4.11 ▲0.88 | 50.49 ▲12.25 |
All Product /wp-admin/edit.php?post_type=metapress_product | 4.15 | 47.17 |
Access Settings /wp-admin/admin.php?page=metapress-access-settings | 4.11 | 49.84 |
Networks /wp-admin/admin.php?page=metapress-networks | 4.12 | 43.72 |
Subscriptions /wp-admin/admin.php?page=metapress-subscriptions | 4.09 | 76.27 |
Add New /wp-admin/post-new.php?post_type=metapress_product | 4.19 | 58.65 |
Payments /wp-admin/admin.php?page=metapress-payments | 4.07 | 46.03 |
API Keys /wp-admin/admin.php?page=metapress-api-keys | 4.07 | 43.16 |
Settings /wp-admin/admin.php?page=metapress-settings | 4.12 | 48.28 |
Payment Tokens /wp-admin/admin.php?page=metapress-tokens | 4.17 | 49.62 |
Wallet Addresses /wp-admin/admin.php?page=metapress-wallet-addresses | 4.07 | 46.86 |
Server storage [IO: ▲2.73MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 95 new files
Database: 5 new tables, 19 new options
New tables |
---|
wp_metapress_access_tokens |
wp_metapress_test_payments |
wp_metapress_payments |
wp_metapress_subscriptions |
wp_metapress_test_subscriptions |
New WordPress options |
---|
metapress_subscriptions_page |
widget_theysaidso_widget |
metapress_supported_test_networks |
theysaidso_admin_options |
can_compress_scripts |
metapress_contract_addresses |
metapress_update_request_key |
metapress_token_ratios |
widget_recent-comments |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Web3 Access
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲338 | 19.62 ▲5.41 | 183.95 ▲182.29 | 38.15 ▼6.19 |
Dashboard /wp-admin | 2,288 ▲108 | 5.64 ▲0.02 | 94.53 ▲1.61 | 44.27 ▲2.39 |
Posts /wp-admin/edit.php | 2,193 ▲96 | 1.98 ▲0.03 | 37.66 ▼0.01 | 36.83 ▲2.63 |
Add New Post /wp-admin/post-new.php | 6,531 ▲5,005 | 27.20 ▲3.67 | 865.20 ▲172.65 | 72.44 ▲13.69 |
Media Library /wp-admin/upload.php | 1,493 ▲93 | 4.32 ▲0.12 | 97.53 ▲1.55 | 43.46 ▲0.75 |
All Product /wp-admin/edit.php?post_type=metapress_product | 1,157 | 1.91 | 30.93 | 32.54 |
Access Settings /wp-admin/admin.php?page=metapress-access-settings | 1,092 | 2.01 | 28.37 | 35.48 |
Networks /wp-admin/admin.php?page=metapress-networks | 2,303 | 2.01 | 25.60 | 35.31 |
Subscriptions /wp-admin/admin.php?page=metapress-subscriptions | 1,000 | 2.10 | 28.51 | 39.35 |
Add New /wp-admin/post-new.php?post_type=metapress_product | 1,924 | 3.63 | 78.14 | 39.07 |
Payments /wp-admin/admin.php?page=metapress-payments | 1,175 | 1.93 | 34.40 | 42.61 |
API Keys /wp-admin/admin.php?page=metapress-api-keys | 982 | 2.00 | 24.93 | 31.33 |
Settings /wp-admin/admin.php?page=metapress-settings | 1,296 | 2.00 | 25.48 | 42.20 |
Payment Tokens /wp-admin/admin.php?page=metapress-tokens | 1,129 | 3.04 | 41.91 | 70.56 |
Wallet Addresses /wp-admin/admin.php?page=metapress-wallet-addresses | 1,064 | 2.00 | 24.37 | 35.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_metapress_payments
- wp_metapress_subscriptions
- wp_metapress_test_payments
- wp_metapress_access_tokens
- wp_metapress_test_subscriptions
- This plugin did not uninstall successfully, leaving 19 options in the database
- metapress_transactions_page
- metapress_update_request_key
- theysaidso_admin_options
- widget_recent-comments
- metapress_token_ratios_updated_timestamp
- metapress_contract_addresses
- metapress_pages_created
- db_upgraded
- wp_metapress_plugin_version
- metapress_api_request_match
- ...
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 36× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/web3-access/admin/metapress-admin-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/web3-access/convert/ratios.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/web3-access/admin/metapress-admin-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/web3-access/admin/metapress-admin-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/web3-access/admin/metapress-admin-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web3-access/includes/scripts.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web3-access/custom/product/create-type.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web3-access/updates/automatic-updates.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web3-access/custom/product/create-type.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/web3-access/updates/contract-update.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: restrict content, web 3, cryptocurrency, erc-20, crypto...
web3-access/web3-access.php 77% from 13 tests
This is the main PHP file of "Web3 Access" version 1.5.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 391 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin30,321 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 3,248 | 4,587 | 20,852 |
PHP | 44 | 658 | 59 | 5,799 |
CSS | 9 | 254 | 53 | 2,253 |
JSON | 5 | 0 | 0 | 1,250 |
HTML | 3 | 9 | 0 | 167 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 30.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 173 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 144 | 83.24% |
▷ Protected methods | 7 | 4.05% |
▷ Private methods | 22 | 12.72% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ethereum.png | 3.72KB | 3.75KB | 0.00% |
images/coinbase.png | 2.07KB | 2.13KB | 0.00% |
images/avax.png | 3.55KB | 3.71KB | 0.00% |
images/ethereumwallet.png | 1.81KB | 1.85KB | 0.00% |
images/metapress-logo-icon.png | 15.68KB | 16.00KB | 0.00% |