Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.09ms] Passed 4 tests
Analyzing server-side resources used by [凹凸曼]一键微信登录
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.22 ▼5.17 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.48 ▼2.52 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.46 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.60 ▼1.39 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.47 ▲1.85 |
settings /wp-admin/options-general.php?page=apoyl-weixin-settings | 3.28 | 35.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_apoyl_weixin |
New WordPress options |
---|
apoyl-weixin-settings |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
apoyl_weixin_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for [凹凸曼]一键微信登录
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲11 | 14.70 ▲0.37 | 1.66 ▼0.39 | 39.12 ▼4.18 |
Dashboard /wp-admin | 2,196 ▲16 | 5.62 ▼0.00 | 91.15 ▼2.64 | 40.42 ▼4.50 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.02 | 38.62 ▲0.36 | 33.45 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.16 ▲0.09 | 657.18 ▼11.66 | 51.17 ▼6.58 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▼0.01 | 108.14 ▲6.83 | 47.65 ▲2.15 |
settings /wp-admin/options-general.php?page=apoyl-weixin-settings | 939 | 2.12 | 24.32 | 26.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_apoyl_weixin
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- apoyl_weixin_db_version
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=apoyl-weixin-settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(APOYL_WEIXIN_DIRadmin/partials/nav.php): failed to open stream: No such file or directory in wp-content/plugins/apoyl-weixin/admin/partials/list.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/apoyl-weixin/public/partials/public-display.php:12
- > PHP Warning
Use of undefined constant APOYL_WEIXIN_DIR - assumed 'APOYL_WEIXIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/apoyl-weixin/admin/partials/list.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'APOYL_WEIXIN_DIRadmin/partials/nav.php' (include_path='.:/usr/share/php') in wp-content/plugins/apoyl-weixin/admin/partials/list.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/apoyl-weixin/admin/partials/nav.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-weixin/admin/partials/setting.php:23
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: oauth2, wechat, weixin
apoyl-weixin/apoyl-weixin.php Passed 13 tests
"[凹凸曼]一键微信登录" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
127 characters long description:
实现微信一键登录,让用户不在繁琐去注册用户,一键实现微信登录,极大的方便用户登录网站.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected564 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 137 | 169 | 561 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/icon32_appwx_logo.png | 1.79KB | 0.86KB | ▼ 51.88% |
public/img/icon32_wx_logo.png | 2.36KB | 1.44KB | ▼ 39.24% |
public/img/icon16_wx_logo.png | 1.50KB | 0.55KB | ▼ 63.18% |
public/img/icon64_wx_logo.png | 4.16KB | 2.02KB | ▼ 51.35% |
public/img/icon48_wx_button.png | 5.22KB | 2.11KB | ▼ 59.63% |