Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.21ms] Passed 4 tests
This is a short check of server-side resources used by Beyond Pay for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 40.96 ▼1.69 |
Dashboard /wp-admin | 3.52 ▲0.17 | 52.12 ▼12.83 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.23 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.40 ▼3.36 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.41 ▲2.89 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Beyond Pay for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲55 | 14.20 ▼0.50 | 1.68 ▲0.05 | 44.23 ▲2.29 |
Dashboard /wp-admin | 2,210 ▲30 | 5.62 ▲0.00 | 95.13 ▲5.98 | 43.37 ▲3.03 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.06 | 40.04 ▲2.31 | 37.26 ▲6.87 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.82 ▲0.72 | 692.43 ▲21.87 | 51.82 ▼1.79 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.17 ▼0.01 | 96.69 ▼3.91 | 40.97 ▼1.17 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/beyond-pay-for-woocommerce/includes/wc-beyond-pay-gateway.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beyond-pay-for-woocommerce/beyondpay-gateway.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: recurring billing, subscription payments, subscriptions, payment, credit card...
beyond-pay-for-woocommerce/beyondpay-gateway.php 92% from 13 tests
"Beyond Pay for WooCommerce" version 1.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("beyond-pay-for-woocommerce.php" instead of "beyondpay-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,575 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 557 | 234 | 2,151 |
JavaScript | 4 | 18 | 10 | 218 |
Markdown | 1 | 58 | 0 | 142 |
CSS | 2 | 0 | 0 | 64 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 15 | 27.78% |
▷ Public methods | 39 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 27.78% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.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.26MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 80.20KB | 25.79KB | ▼ 67.84% |
assets/screenshot-2.png | 89.64KB | 29.53KB | ▼ 67.06% |
assets/screenshot-1.png | 101.22KB | 33.06KB | ▼ 67.34% |