Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/dx-auto-publish/dx-auto-publish.php+64
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.96ms] Passed 4 tests
An overview of server-side resources used by DX-auto-publish
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.84 ▼36.64 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.70 ▼42.96 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.04 ▼39.25 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.05 ▼85.00 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.95 ▼29.27 |
自动定时发布 /wp-admin/admin.php?page=DX-auto-publish | 2.05 | 5.98 |
daxiawp主题商城 /wp-admin/admin.php?page=daxiawp_theme | 2.05 | 6.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DX-auto-publish
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 13.17 ▼1.47 | 1.64 ▼0.16 | 41.22 ▼3.49 |
Dashboard /wp-admin | 2,232 ▲44 | 5.79 ▲0.90 | 104.52 ▼5.69 | 93.52 ▲49.61 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.00 ▼0.05 | 33.59 ▼6.35 | 41.52 ▲7.06 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.10 ▼0.37 | 714.05 ▲107.51 | 55.88 ▼0.75 |
Media Library /wp-admin/upload.php | 1,417 ▲35 | 4.20 ▼0.04 | 97.76 ▼4.52 | 83.11 ▲40.82 |
自动定时发布 /wp-admin/admin.php?page=DX-auto-publish | 876 | 2.06 | 26.57 | 79.79 |
daxiawp主题商城 /wp-admin/admin.php?page=daxiawp_theme | 1,050 | 4.39 | 130.40 | 53.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/dx-auto-publish/dx-auto-publish.php+64
date_default_timezone_set(): Timezone ID '' is invalid
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Notice in wp-content/plugins/dx-auto-publish/dx-auto-publish.php+64
date_default_timezone_set(): Timezone ID '' is invalid
- > GET request to /wp-admin/admin.php?page=DX-auto-publish
- > Notice in wp-content/plugins/dx-auto-publish/form.php+2
Undefined index: update_draft
- > GET request to /wp-admin/admin.php?page=DX-auto-publish
- > Notice in wp-content/plugins/dx-auto-publish/form.php+7
Undefined index: delete_draft
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: update_draft in wp-content/plugins/dx-auto-publish/form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dx-auto-publish/dx-auto-publish.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-auto-publish/theme.php:4
- > PHP Notice
Undefined index: delete_draft in wp-content/plugins/dx-auto-publish/form.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dx-auto-publish/form.php:27
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=DX-auto-publish
- > Network (severe)
https://wpa.qq.com/pa?p=2:1683134075:44 - Failed to load resource: the server responded with a status of 404 ()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454435&uuid=0d9841855177d320&dri=0&dis=0&dai=0&ps=136x64&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=daxiawp%E4%B8%BB%E9%A2%98&dbv=2&drs=1&pcs=800x585&pss=1038x585&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444720&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444720, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454451&uuid=3ac5aacae4b8e86b&dri=0&dis=0&dai=0&ps=136x386&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454435%22)%3B&dbv=2&drs=1&pcs=800x585&pss=1038x585&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444723&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444723, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454453&uuid=56c3f4e4a4b8d386&dri=0&dis=0&dai=0&ps=136x708&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454451%22)%3B&dbv=2&drs=1&pcs=800x585&pss=1038x585&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444723&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444723, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454454&uuid=f3c77be5a8a09d83&dri=0&dis=0&dai=0&ps=388x64&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454453%22)%3B&dbv=2&drs=1&pcs=800x585&pss=1038x585&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444723&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444724, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454455&uuid=a9d89bbd11cd52bd&dri=0&dis=0&dai=0&ps=388x386&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454454%22)%3B&dbv=2&drs=1&pcs=785x585&pss=1038x699&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444724&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444724, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454457&uuid=731cc548b4c680b9&dri=0&dis=0&dai=0&ps=388x708&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454455%22)%3B&dbv=2&drs=1&pcs=785x585&pss=1038x699&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444724&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444725, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454459&uuid=d0ce02753c6fec31&dri=0&dis=0&dai=0&ps=640x64&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454457%22)%3B&dbv=2&drs=1&pcs=785x585&pss=1038x726&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444724&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444725, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454461&uuid=cdc8bd7e4c48a561&dri=0&dis=0&dai=0&ps=640x386&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454459%22)%3B&dbv=2&drs=1&pcs=785x585&pss=1038x951&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444725&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444725, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daxiawp_theme
- > Javascript (warning) in unknown
http://cbjs.baidu.com/js/m.js 0 A parser-blocking, cross site (i.e. different eTLD+1) script, https://pos.baidu.com/gctm?di=454462&uuid=d92291e2f196eb5b&dri=0&dis=0&dai=0&ps=640x708&enu=encoding&exps=110011&ant=0&psi=0bbf0b6b1d7b4707&dcb=___adblockplus_&dtm=SSP_JSONP&dvi=0.0&dci=-1&dpt=none&tpr=1696444720333&ti=%E4%B8%BB%E9%A2%98%E5%95%86%E5%9F%8E%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&ari=2&ver=0830&vc=BAIDU_CLB_fillSlot(%22454461%22)%3B&dbv=2&drs=1&pcs=785x585&pss=1038x951&cfv=0&cpl=0&chi=16&cce=true&cec=UTF-8&tlm=1696444725&prot=2&rw=600<u=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Ddaxiawp_theme&ecd=1&dft=0&uc=800x600&pis=-1x-1&sr=800x600&tcn=1696444726, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== dx-auto-publish ===
)
dx-auto-publish/dx-auto-publish.php Passed 13 tests
Analyzing the main PHP file in "DX-auto-publish" version 1.2
62 characters long description:
Automatic batch timing post. 自动批量定时发布文章。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin114 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 30 | 15 | 114 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 0.89KB | 1.01KB | 0.00% |