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
- This plugin did not install gracefully
- > 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.14MB] [CPU: ▼2.30ms] Passed 4 tests
This is a short check of server-side resources used by 拖放式弹窗表单提交在线支付文件上传合同签字5usujian bottom pop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.02 ▲4.26 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.12 ▼1.67 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.33 ▼1.08 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 84.11 ▼8.82 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.63 ▲2.39 |
底部弹窗设置 /wp-admin/admin.php?page=wysj_btpop_setting | 3.38 | 37.16 |
客户咨询列表 /wp-admin/admin.php?page=wysj_btpop_list | 3.33 | 34.19 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wysj_btpop_list |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
wysj_bt_pop_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for 拖放式弹窗表单提交在线支付文件上传合同签字5usujian bottom pop
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,234 ▲488 | 13.90 ▼0.48 | 9.51 ▲7.75 | 76.73 ▲35.50 |
Dashboard /wp-admin | 2,261 ▲76 | 5.14 ▼0.73 | 101.08 ▼6.50 | 47.29 ▲6.24 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.39 ▲0.38 | 44.39 ▲7.86 | 42.40 ▲8.42 |
Add New Post /wp-admin/post-new.php | 1,562 ▲28 | 22.22 ▼0.89 | 668.31 ▲59.34 | 37.92 ▼17.64 |
Media Library /wp-admin/upload.php | 1,437 ▲52 | 4.53 ▲0.26 | 99.37 ▼1.10 | 48.65 ▲2.91 |
底部弹窗设置 /wp-admin/admin.php?page=wysj_btpop_setting | 2,342 | 3.77 | 70.09 | 146.21 |
客户咨询列表 /wp-admin/admin.php?page=wysj_btpop_list | 934 | 2.03 | 29.92 | 44.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_wysj_btpop_list
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- wysj_bt_pop_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 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 errors when accessed directly with GET requests:
- > 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
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
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5usujian-bottom-pop/wysj-front/wysj-front.php:17
- > 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
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please add at least on tag
- Requires php: Invalid version format
5usujian-bottom-pop/5usujian-bottom-pop.php Passed 13 tests
The primary PHP file in "拖放式弹窗表单提交在线支付文件上传合同签字5usujian bottom pop" version 1.0.3 is used by WordPress to initiate all plugin functionality
114 characters long description:
在网页底部显示一个优雅的悬浮层,定制化表单功能可快捷收集用户资料,预约活动等
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected2,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
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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
PNG files should be compressed to save space and minimize bandwidth usage
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/dragable.png | 0.54KB | 0.43KB | ▼ 21.30% |
asset/images/wysj-logo.png | 5.71KB | 2.50KB | ▼ 56.13% |
asset/images/close.png | 3.65KB | 1.40KB | ▼ 61.69% |
asset/images/m-top-img.png | 96.03KB | 26.77KB | ▼ 72.12% |
asset/images/top-img.png | 107.12KB | 31.41KB | ▼ 70.68% |