Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼320.28ms] Passed 4 tests
A check of server-side resources used by WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 59.71 ▲4.81 |
Dashboard /wp-admin | 3.41 ▲0.00 | 35.52 ▼13.33 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 39.28 ▼8.07 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 106.80 ▼1,256.31 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 27.74 ▼3.41 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.90 ▲0.15 | 6.37 ▼0.00 | 2.56 ▲0.01 |
Dashboard /wp-admin | 2,888 ▲34 | 6.15 ▲0.00 | 117.10 ▼18.61 | 215.29 ▲55.54 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.23 ▼0.01 | 62.73 ▼0.81 | 148.20 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,690 ▼21 | 21.00 ▲0.36 | 434.53 ▼7.07 | 197.49 ▼27.41 |
Media Library /wp-admin/upload.php | 1,694 ▼7 | 5.47 ▼0.03 | 161.85 ▲20.30 | 204.88 ▼35.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php:20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php on line 18
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_bank_transfer_pay.php:7
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: woocommerce, gateway, bitcoin, euro, web payments...
accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php 92% from 13 tests
"WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce.php" instead of "alligncommerce_payment.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin882 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 137 | 188 | 882 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 122.81KB | 42.28KB | ▼ 65.57% |
screenshot-1.png | 41.44KB | 23.29KB | ▼ 43.80% |
screenshot-3.png | 84.76KB | 35.14KB | ▼ 58.54% |