Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/5usujian-bottom-pop/5usujian-bottom-pop.php+48
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.11MB] [CPU: ▼289.11ms] Passed 4 tests
A check of server-side resources used by 拖放式弹窗表单提交在线支付文件上传合同签字5usujian bottom pop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 57.86 ▲4.85 |
Dashboard /wp-admin | 3.56 ▲0.16 | 36.04 ▲2.63 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 41.42 ▼14.34 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.06 | 97.16 ▼1,149.58 |
Media Library /wp-admin/upload.php | 3.44 ▲0.14 | 55.27 ▲25.27 |
底部弹窗设置 /wp-admin/admin.php?page=wysj_btpop_setting | 3.46 | 28.92 |
客户咨询列表 /wp-admin/admin.php?page=wysj_btpop_list | 3.41 | 25.35 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_wysj_btpop_list |
New WordPress options |
---|
wysj_bt_pop_options |
Browser metrics Passed 4 tests
Checking browser requirements for 拖放式弹窗表单提交在线支付文件上传合同签字5usujian bottom pop
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,870 ▲116 | 16.27 ▲0.58 | 6.27 ▲0.19 | 2.37 ▼0.26 |
Dashboard /wp-admin | 2,965 ▲104 | 6.97 ▲0.76 | 116.48 ▼15.27 | 174.41 ▲19.33 |
Posts /wp-admin/edit.php | 2,770 ▲82 | 3.25 ▲0.01 | 69.20 ▲2.98 | 171.11 ▲28.40 |
Add New Post /wp-admin/post-new.php | 1,689 ▼71 | 17.95 ▼4.68 | 433.48 ▲14.18 | 158.37 ▲3.72 |
Media Library /wp-admin/upload.php | 1,764 ▲69 | 5.90 ▲0.43 | 126.46 ▼8.34 | 201.85 ▲16.97 |
底部弹窗设置 /wp-admin/admin.php?page=wysj_btpop_setting | 3,257 | 5.39 | 114.24 | 319.06 |
客户咨询列表 /wp-admin/admin.php?page=wysj_btpop_list | 1,213 | 3.15 | 58.36 | 177.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wysj_btpop_list
- Zombie WordPress options detected upon uninstall: 1 option
- wysj_bt_pop_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/5usujian-bottom-pop/wysj-front/captcha.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(WYSJ_POP_DIR/wysj-admin/wysj-update.php): failed to open stream: No such file or directory in wp-content/plugins/5usujian-bottom-pop/wysj-admin/wysj-core.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WYSJ_POP_DIR/wysj-admin/wysj-update.php' (include_path='.:/usr/share/php') in wp-content/plugins/5usujian-bottom-pop/wysj-admin/wysj-core.php on line 2
- > PHP Warning
Use of undefined constant WYSJ_POP_DIR - assumed 'WYSJ_POP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/5usujian-bottom-pop/wysj-admin/wysj-core.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5usujian-bottom-pop/wysj-front/wysj-front.php:17
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There were no tags found
5usujian-bottom-pop/5usujian-bottom-pop.php Passed 13 tests
Analyzing the main PHP file in "拖放式弹窗表单提交在线支付文件上传合同签字5usujian bottom pop" version 1.0.2
114 characters long description:
在网页底部显示一个优雅的悬浮层,定制化表单功能可快捷收集用户资料,预约活动等
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
Success! There were no dangerous files found in this plugin2,528 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 66 | 53 | 1,574 |
JavaScript | 3 | 8 | 11 | 363 |
CSS | 3 | 188 | 0 | 361 |
SVG | 3 | 380 | 6 | 230 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 37.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 62.50% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/images/close.png | 3.65KB | 1.40KB | ▼ 61.69% |
asset/images/m-top-img.png | 96.03KB | 26.77KB | ▼ 72.12% |
asset/images/veri.png | 4.64KB | 2.39KB | ▼ 48.40% |
asset/images/top-img.png | 107.12KB | 31.41KB | ▼ 70.68% |
asset/images/dragable.png | 0.54KB | 0.43KB | ▼ 21.30% |