Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.85ms] Passed 4 tests
This is a short check of server-side resources used by WordPress 用户中心
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.84 ▲3.69 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.71 ▼0.00 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 55.19 ▲1.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.77 ▼7.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.30 ▲2.69 |
基本设置 /wp-admin/admin.php?page=wp-user-center | 3.28 | 28.23 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress 用户中心
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.67 ▲0.12 | 1.81 ▲0.18 | 44.54 ▲0.70 |
Dashboard /wp-admin | 2,233 ▲59 | 5.61 ▼0.05 | 91.75 ▼3.53 | 52.17 ▲11.11 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.97 ▼0.01 | 45.18 ▲9.48 | 44.43 ▲8.81 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.11 ▲0.03 | 596.08 ▼62.68 | 63.48 ▲7.82 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.28 ▲0.19 | 97.72 ▼9.11 | 51.68 ▲6.71 |
积分统计 /wp-admin/admin.php?page=wp-user-center# | 2,556 | 1.92 | 30.83 | 112.59 |
基本设置 /wp-admin/admin.php?page=wp-user-center | 2,556 | 1.90 | 33.21 | 55.25 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-user-center/wp-user-center.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-user-center
- > Javascript (severe) in unknown
/wp-content/plugins/wp-user-center/js/jquery.ba-bbq.min.js?ver=6.3.1 17:118 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-user-center
- > Network (severe)
wp-content/plugins/wp-user-center/images/input_bg.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-user-center
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: a(...).live is not a function" "TypeError: a(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-user-center/js/admin.js?ver=1.0.1:1:2373)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-user-center
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: a(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-user-center ===
)
wp-user-center/wp-user-center.php 92% from 13 tests
The main PHP file in "WordPress 用户中心" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 230 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected723 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 5 | 9 | 609 |
CSS | 1 | 0 | 0 | 111 |
JavaScript | 2 | 0 | 16 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/on_off_slide.png | 0.82KB | 0.84KB | 0.00% |
images/check-off.png | 0.40KB | 0.41KB | 0.00% |
images/wp_admin_map.png | 2.69KB | 2.79KB | 0.00% |
images/wp_admin_icon_map.png | 0.85KB | 0.92KB | 0.00% |
images/check-on.png | 0.32KB | 0.33KB | 0.00% |