Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.05MB] [CPU: ▼10.52ms] Passed 4 tests
A check of server-side resources used by Cryptocurrency Checkout - Accept Bitcoin, Ethereum and Nimiq
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.35 ▼3.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 33.40 ▼16.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 41.62 ▼12.13 |
Add New Post /wp-admin/post-new.php | 5.55 ▼0.33 | 81.69 ▼9.74 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 32.42 ▼4.11 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Cryptocurrency Checkout - Accept Bitcoin, Ethereum and Nimiq: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.16 ▼1.26 | 1.73 ▼0.04 | 40.13 ▼6.29 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.07 | 109.11 ▲7.03 | 41.15 ▼0.13 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.01 | 39.86 ▼4.10 | 35.87 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.29 ▲0.05 | 586.62 ▼70.95 | 48.86 ▼9.65 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.04 | 100.87 ▼5.97 | 44.24 ▼0.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
The following issues need your attention
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: gateway in wp-content/plugins/woo-nimiq-gateway/validation_services/json_rpc_nim.php on line 303
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/woo-nimiq-gateway/nimiq-xpub/vendor/simplito/elliptic-php/lib/Curve/EdwardsCurve/Point.php:6
- > PHP Notice
Undefined variable: gateway in wp-content/plugins/woo-nimiq-gateway/validation_services/nimiq_watch.php on line 263
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/woo-nimiq-gateway/nimiq-xpub/vendor/simplito/elliptic-php/lib/Curve/MontCurve/Point.php:7
- > PHP Notice
Undefined variable: gateway in wp-content/plugins/woo-nimiq-gateway/validation_services/blockstream.php on line 288
- > PHP Fatal error
Uncaught Error: Interface 'StephenHill\\ServiceInterface' not found in wp-content/plugins/woo-nimiq-gateway/nimiq-xpub/vendor/stephenhill/base58/src/GMPService.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-nimiq-gateway/includes/bulk_actions.php:15
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/woo-nimiq-gateway/nimiq-xpub/vendor/simplito/elliptic-php/lib/Curve/ShortCurve/JPoint.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-nimiq-gateway/includes/webhook.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function get_option() on null in wp-content/plugins/woo-nimiq-gateway/validation_services/nimiq_watch.php:21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
woo-nimiq-gateway/woo-nimiq-gateway.php 92% from 13 tests
The main file in "Cryptocurrency Checkout - Accept Bitcoin, Ethereum and Nimiq" v. 3.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 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 plugin15,750 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 1,995 | 1,571 | 11,329 |
PO File | 8 | 952 | 1,253 | 3,017 |
JSON | 9 | 0 | 0 | 558 |
Markdown | 13 | 236 | 0 | 552 |
JavaScript | 3 | 38 | 35 | 158 |
CSS | 2 | 21 | 0 | 136 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 25.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 2 | 4.44% |
Methods | 643 | |
▷ Static methods | 109 | 16.95% |
▷ Public methods | 577 | 89.74% |
▷ Protected methods | 3 | 0.47% |
▷ Private methods | 63 | 9.80% |
Functions | 97 | |
▷ Named functions | 78 | 80.41% |
▷ Anonymous functions | 19 | 19.59% |
Constants | 24 | |
▷ Global constants | 5 | 20.83% |
▷ Class constants | 19 | 79.17% |
▷ Public constants | 16 | 84.21% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected