Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.74ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 46.32 ▲4.97 |
Dashboard /wp-admin | 3.33 ▼0.02 | 52.46 ▼20.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.43 ▲0.74 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.39 ▼17.55 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.92 ▲1.85 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.26 ▼0.49 | 1.92 ▼0.20 | 43.08 ▲2.29 |
Dashboard /wp-admin | 2,201 ▲24 | 5.66 ▲0.08 | 91.33 ▼5.09 | 41.52 ▼4.91 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.05 ▲0.00 | 35.41 ▼4.07 | 36.14 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,556 ▲11 | 23.17 ▼0.18 | 590.91 ▼82.85 | 56.05 ▼7.16 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.21 ▼0.00 | 97.21 ▼10.53 | 43.85 ▼1.05 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-woocommerce/woocommerce-aligncommerce-payment.php on line 12
- > 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-woocommerce/woocommerce-aligncommerce-payment.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-woocommerce/class-wc-banktransfer-pay.php:7
- > PHP Warning
require_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-woocommerce/woocommerce-aligncommerce-payment.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: euro, bitcoin, payments, woocommerce, gateway...
accept-bitcoin-payin-local-by-align-commerce-for-woocommerce/woocommerce-aligncommerce-payment.php 92% from 13 tests
Analyzing the main PHP file in "Woocommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce" version 1.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("accept-bitcoin-payin-local-by-align-commerce-for-woocommerce.php" instead of "woocommerce-aligncommerce-payment.php")
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
Good job! No executable or dangerous file extensions detected840 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 195 | 258 | 840 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 5.14 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 13.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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-1.png | 41.44KB | 23.29KB | ▼ 43.80% |
screenshot-2.png | 122.81KB | 42.28KB | ▼ 65.57% |
screenshot-3.png | 84.76KB | 35.14KB | ▼ 58.54% |