Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.58ms] Passed 4 tests
An overview of server-side resources used by Online Payments for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.19 ▼0.50 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.98 ▼13.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.94 ▼4.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.66 ▼19.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.97 ▼0.39 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Online Payments for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.72 ▲0.44 | 1.86 ▲0.14 | 36.78 ▼10.26 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.11 | 87.16 ▼19.28 | 35.77 ▼11.95 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.01 | 35.41 ▼8.32 | 32.83 ▼8.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.93 ▼0.25 | 604.13 ▼10.92 | 81.99 ▲25.87 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.03 | 99.12 ▼7.24 | 45.22 ▼2.97 |
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
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
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function com\\unionpay\\acp\\sdk\\plugin_dir_path() in wp-content/plugins/online-payments-for-woocommerce/sdk/SDKConfig.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function com\\unionpay\\acp\\sdk\\plugin_dir_path() in wp-content/plugins/online-payments-for-woocommerce/sdk/SDKConfig.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function com\\unionpay\\acp\\sdk\\plugin_dir_path() in wp-content/plugins/online-payments-for-woocommerce/sdk/SDKConfig.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% 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 require attention:
- Screenshots: Add an image for screenshot #4 (Pay screen in Online)
online-payments-for-woocommerce/init.php 85% from 13 tests
"Online Payments for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("online-payments-for-woocommerce.php" instead of "init.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,145 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 193 | 369 | 1,072 |
PO File | 1 | 20 | 20 | 73 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 30 | 57.69% |
▷ Public methods | 40 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 23.08% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 11 | 31.43% |
▷ Class constants | 24 | 68.57% |
▷ Public constants | 24 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/union.png | 9.82KB | 4.08KB | ▼ 58.44% |