Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼272.48ms] Passed 4 tests
This is a short check of server-side resources used by Betterpay for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 27.65 ▼1.75 |
Dashboard /wp-admin | 3.07 ▲0.01 | 37.23 ▼3.56 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 38.26 ▼11.31 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 96.73 ▼1,070.34 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.22 ▼4.72 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Betterpay for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲68 | 16.24 ▲0.27 | 8.10 ▼0.12 | 46.78 ▼1.40 |
Dashboard /wp-admin | 2,931 ▲78 | 5.93 ▲0.09 | 138.67 ▼0.09 | 102.71 ▼0.94 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▲0.00 | 62.66 ▼0.07 | 88.33 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,653 ▼0 | 18.78 ▲0.20 | 361.83 ▲4.35 | 105.70 ▼9.22 |
Media Library /wp-admin/upload.php | 1,778 ▲6 | 5.00 ▲0.01 | 153.70 ▼12.11 | 112.05 ▼0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/betterpay/src/Betterpay.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in betterpay/assets to your readme.txt
betterpay/index.php 85% from 13 tests
The principal PHP file in "Betterpay for WooCommerce" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.3" instead of "2.6.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("betterpay.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin523 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 116 | 35 | 523 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 99.00 |
▷ Minimum class complexity | 99.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 13.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 95.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin