Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/xunhu-alipay-payment-for-easy-digital-downloads/class-xh-alipay-edd-api.php+88
Uncaught Error: Call to undefined function edd_get_option() in wp-content/plugins/xunhu-alipay-payment-for-easy-digital-downloads/class-xh-alipay-edd-api.php:88
Stack trace:
#0 wp-includes/class-wp-hook.php(310): XH_Alipay_Payment_EDD_Api->register_activation_hook()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.01ms] Passed 4 tests
This is a short check of server-side resources used by Easy Digital Downloads支付宝个人版
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.78 ▲5.71 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.25 ▼14.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.62 ▼7.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.03 ▼16.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.46 ▲2.39 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Digital Downloads支付宝个人版
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.14 | 1.63 ▼0.16 | 40.26 ▲0.52 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▼0.02 | 106.68 ▲3.12 | 41.36 ▼0.41 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.18 ▲0.15 | 39.38 ▲1.85 | 34.78 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,537 ▼7 | 23.34 ▲4.96 | 657.89 ▲32.02 | 53.50 ▼7.53 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.00 | 96.46 ▼2.10 | 43.80 ▼0.55 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (alipay settings page), #2 (Checkout with option for alipay payment.), #3 (Order pay screen, including QR code of alipay and payment amount.)
xunhu-alipay-payment-for-easy-digital-downloads/init.php 85% from 13 tests
The primary PHP file in "Easy Digital Downloads支付宝个人版" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xunhu-alipay-payment-for-easy-digital-downloads.php" instead of "init.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
No dangerous file extensions were detected452 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 72 | 22 | 397 |
PO File | 1 | 175 | 397 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 3.41KB | 2.44KB | ▼ 28.24% |