Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.87MB] [CPU: ▼38.91ms] Passed 4 tests
A check of server-side resources used by WX Subscribe 微信支付付费订阅
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.18 ▲0.10 |
Dashboard /wp-admin | 3.08 ▼0.26 | 24.29 ▼33.39 |
Posts /wp-admin/edit.php | 3.08 ▼0.27 | 26.71 ▼21.97 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.80 | 24.87 ▼85.82 |
Media Library /wp-admin/upload.php | 3.08 ▼0.14 | 22.60 ▼14.44 |
微信订阅 /wp-admin/admin.php?page=wxs-plugin-admin | 3.08 | 25.26 |
插件配置 /wp-admin/admin.php?page=wxs-options-list | 3.08 | 25.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_subscribe_order |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
wxs_db_version |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WX Subscribe 微信支付付费订阅
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.18 ▼1.18 | 1.59 ▼0.16 | 36.62 ▼3.80 |
Dashboard /wp-admin | 2,248 ▲60 | 4.89 ▲0.02 | 110.54 ▼3.63 | 54.03 ▲12.76 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.06 ▲0.05 | 40.30 ▲1.59 | 50.66 ▲14.81 |
Add New Post /wp-admin/post-new.php | 1,551 ▲16 | 17.62 ▼5.54 | 660.21 ▼10.02 | 71.17 ▲14.78 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.26 ▲0.04 | 107.72 ▼4.96 | 57.26 ▲10.02 |
微信订阅 /wp-admin/admin.php?page=wxs-plugin-admin | 1,009 | 2.15 | 28.36 | 80.91 |
插件配置 /wp-admin/admin.php?page=wxs-options-list | 816 | 2.07 | 27.86 | 53.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wx-subscribe/libs/utils.php+9
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_subscribe_order
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- wxs_db_version
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wxs-options-list
- > Notice in wp-content/plugins/wx-subscribe/libs/utils.php+9
Trying to access array offset on value of type bool
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
Please fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wx-subscribe/admin/userprofile.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wx-subscribe/admin/payjs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wx-subscribe/admin/notices.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wx-subscribe/admin/dashboard.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wx-subscribe/admin/plugin-option.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wx-subscribe/admin/post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wx-subscribe/admin/notices.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wx-subscribe/user/content.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wx-subscribe/admin/shortcode.php:36
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: subscribe, payment
wx-subscribe/wx-subscribe.php 92% from 13 tests
"WX Subscribe 微信支付付费订阅" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 206 characters long)
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 detected830 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 136 | 304 | 780 |
Markdown | 1 | 33 | 0 | 50 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 3 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin