Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.66ms] Passed 4 tests
Analyzing server-side resources used by QQWorld收银台 初级版 / QQWorld Checkout Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.89 ▼8.63 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.09 ▼0.96 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.07 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 101.01 ▲8.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.68 ▼0.99 |
Server storage [IO: ▲0.35MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QQWorld收银台 初级版 / QQWorld Checkout Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.40 ▲0.04 | 1.79 ▼0.83 | 43.34 ▲0.91 |
Dashboard /wp-admin | 2,227 ▲39 | 5.88 ▼0.03 | 107.61 ▲4.74 | 41.22 ▼1.57 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 2.06 ▲0.06 | 39.74 ▼0.81 | 35.32 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 18.41 ▼4.72 | 594.42 ▼3.05 | 56.32 ▲3.22 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.20 ▼0.01 | 95.99 ▼4.79 | 41.12 ▼4.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-checkout-lite/lib/wepay/WxPay.Config.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WxPayNotify' not found in wp-content/plugins/qqworld-checkout-lite/lib/wepay/class.NotifyCallBack.php:2
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-checkout-lite/lib/wepay/WxPay.Config.php on line 6
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-checkout-lite/lib/wepay/WxPay.Config.php on line 5
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-checkout-lite/lib/wepay/WxPay.Config.php on line 5
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-checkout-lite/lib/wepay/WxPay.Config.php on line 5
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-checkout-lite/lib/wepay/WxPay.Config.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function qqworld_checkout\\plugin_dir_url() in wp-content/plugins/qqworld-checkout-lite/qqworld-checkout-lite.php:20
- > PHP Fatal error
Uncaught Error: Class 'WxPayNotifyReply' not found in wp-content/plugins/qqworld-checkout-lite/lib/wepay/WxPay.Notify.php:8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
qqworld-checkout-lite/qqworld-checkout-lite.php 92% from 13 tests
Analyzing the main PHP file in "QQWorld收银台 初级版 / QQWorld Checkout Lite" version 1.1.2
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected3,318 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 397 | 1,897 | 2,668 |
PO File | 2 | 178 | 228 | 496 |
CSS | 1 | 2 | 0 | 153 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A short review of 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 | 7.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 386 | |
▷ Static methods | 19 | 4.92% |
▷ Public methods | 378 | 97.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 2.07% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 13 | 59.09% |
▷ Class constants | 9 | 40.91% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/youzanpay/featured.png | 7.54KB | 7.46KB | ▼ 1.10% |
images/wepay-readme.png | 7.00KB | 1.96KB | ▼ 72.05% |
images/passpay/featured.png | 7.12KB | 7.04KB | ▼ 1.07% |
images/alipay/featured.png | 7.50KB | 7.41KB | ▼ 1.26% |
images/banner-772x250.png | 73.70KB | 73.86KB | 0.00% |