Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.26ms] Passed 4 tests
This is a short check of server-side resources used by WP VK-付费内容插件(付费阅读/资料/工具软件资源管理)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.53 ▼4.74 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.63 ▼13.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.73 ▼6.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 81.16 ▼12.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.81 ▲4.68 |
Server storage [IO: ▲2.08MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 90 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_vk_trade_log |
wp_vk_orders |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_wb_wp_vk_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
WP VK-付费内容插件(付费阅读/资料/工具软件资源管理): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.35 ▼0.02 | 1.70 ▼0.08 | 39.22 ▼3.55 |
Dashboard /wp-admin | 2,227 ▲47 | 5.51 ▼0.14 | 86.62 ▲1.55 | 44.15 ▲3.08 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.99 ▲0.02 | 39.29 ▼1.73 | 44.24 ▲8.60 |
Add New Post /wp-admin/post-new.php | 6,392 ▲4,864 | 27.69 ▲4.49 | 888.31 ▲247.49 | 56.14 ▲7.24 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.24 ▼0.04 | 109.68 ▲11.64 | 54.33 ▲13.53 |
订单管理 /wp-admin/admin.php?page=wp_vk#/order | 1,286 | 7.23 | 101.89 | 109.29 |
支付设置 /wp-admin/admin.php?page=wp_vk#/pay-setting | 1,291 | 7.29 | 92.47 | 73.95 |
插件设置 /wp-admin/admin.php?page=wp_vk#/setting | 1,296 | 7.31 | 87.75 | 63.46 |
资源管理 /wp-admin/admin.php?page=wp_vk#/items | 1,291 | 7.25 | 86.92 | 63.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_vk_trade_log
- wp_vk_orders
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_wb_wp_vk_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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 0% 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
Please take a closer look at the following
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-vk/tpl/wbs_header.tpl.php
- > /wp-content/plugins/wp-vk/pay/hupay/notify.php
- > /wp-content/plugins/wp-vk/pay/alipay/return.php
- > /wp-content/plugins/wp-vk/tpl/my_order.tpl.php
- > /wp-content/plugins/wp-vk/tpl/wbs_admin.tpl.php
- > /wp-content/plugins/wp-vk/pay/payjs/notify.php
- > /wp-content/plugins/wp-vk/order/my_order.tpl.php
- > /wp-content/plugins/wp-vk/wbm/tpl/svg.php
- 33× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: data in wp-content/plugins/wp-vk/pay/wxpay/qrcode.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-vk/index.php:15
- > PHP Notice
Undefined variable: list in wp-content/plugins/wp-vk/tpl/my_order.tpl.php on line 7
- > PHP Notice
Undefined variable: user_id in wp-content/plugins/wp-vk/tpl/front_tips_content.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-vk/tpl/front_tips_content.php on line 13
- > PHP Notice
Undefined variable: pd_index_url in wp-content/plugins/wp-vk/tpl/wbs_header.tpl.php on line 12
- > PHP Notice
Undefined variable: pages in wp-content/plugins/wp-vk/order/my_order.tpl.php on line 53
- > PHP Notice
Undefined variable: title in wp-content/plugins/wp-vk/tpl/front_widget.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-vk/wbm/tpl/header.php:12
- > PHP Warning
Use of undefined constant WP_VK_PATH - assumed 'WP_VK_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-vk/order/my_order.tpl.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: payjs, wechat pay, xunhupay, alipay
wp-vk/index.php 85% from 13 tests
"WP VK-付费内容插件(付费阅读/资料/工具软件资源管理)" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-vk.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 253 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,527 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 2,377 | 2,925 | 9,448 |
SQL | 1 | 10 | 1 | 44 |
JavaScript | 18 | 0 | 57 | 24 |
CSS | 10 | 0 | 9 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 1 | 1.85% |
▷ Concrete classes | 53 | 98.15% |
▷ Final classes | 0 | 0.00% |
Methods | 716 | |
▷ Static methods | 255 | 35.61% |
▷ Public methods | 707 | 98.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 1.26% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 40 | |
▷ Global constants | 40 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wxp_pic.png | 56.87KB | 57.03KB | 0.00% |
assets/pagebreak.png | 2.59KB | 2.59KB | 0.00% |
assets/img/alipay-pic.png | 48.80KB | 16.73KB | ▼ 65.71% |