Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.49ms] Passed 4 tests
A check of server-side resources used by 网站百宝箱
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 41.25 ▲2.16 |
Dashboard /wp-admin | 3.47 ▲0.16 | 44.66 ▲0.05 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 46.09 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.68 ▼5.76 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.40 ▲2.90 |
Server storage [IO: ▲15.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 226 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_websitebox_liuyan |
New WordPress options |
---|
widget_recent-posts |
websitebox_tongji |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 网站百宝箱
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.36 ▼1.00 | 8.14 ▲6.42 | 41.40 ▼1.29 |
Dashboard /wp-admin | 2,208 ▲28 | 5.53 ▼0.14 | 84.39 ▼3.67 | 40.52 ▼0.10 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.96 ▼0.05 | 33.48 ▼3.25 | 39.01 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.63 ▲0.39 | 588.70 ▼10.66 | 65.56 ▲11.29 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.19 ▲0.03 | 94.71 ▼5.03 | 45.56 ▲3.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_websitebox_liuyan
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- websitebox_tongji
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wzbaibaoxiang/websitebox.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wzbaibaoxiang/back.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wzbaibaoxiang/sanhheyi.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function websitebox_paymoney() in wp-content/plugins/wzbaibaoxiang/head.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wzbaibaoxiang/shuiyin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wzbaibaoxiang/tankuang.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wzbaibaoxiang/shubiaotexiao.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wzbaibaoxiang/inc/websitebox_art_cron.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wzbaibaoxiang/shoujikefu.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wzbaibaoxiang/liuyan.php:6
- > PHP Fatal error
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 is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: wp
wzbaibaoxiang/websitebox.php 85% from 13 tests
The primary PHP file in "网站百宝箱" version 0.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 210 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wzbaibaoxiang.php" instead of "websitebox.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin63,333 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 38 | 54 | 30 | 40,376 |
CSS | 11 | 2,707 | 32 | 11,002 |
PHP | 21 | 487 | 78 | 8,777 |
SVG | 3 | 356 | 3 | 2,954 |
JSON | 1 | 0 | 0 | 224 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 351)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 112.80 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 351.00 |
Average method complexity | 18.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 351.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
54 PNG files occupy 1.58MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/side_icon02.png | 0.82KB | 0.82KB | 0.00% |
images/huaban.png | 4.01KB | 4.01KB | 0.10% |
images/bei3.png | 111.10KB | 61.24KB | ▼ 44.88% |
images/bei2.png | 16.25KB | 6.25KB | ▼ 61.56% |
images/leixing3.png | 5.95KB | 2.48KB | ▼ 58.27% |