Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/yunshangdian/yunshangdian.php+28
Undefined variable: wpdb
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.22ms] Passed 4 tests
This is a short check of server-side resources used by 新浪云商店打包插件
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.91 ▼0.69 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.66 ▼0.11 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.62 ▼1.76 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.80 ▼5.50 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.73 ▼0.92 |
云商店打包 /wp-admin/tools.php?page=yunshangdian | 3.20 | 28.95 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
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,804 ▲58 | 13.25 ▼1.40 | 1.64 ▼0.10 | 39.79 ▼2.55 |
Dashboard /wp-admin | 2,213 ▲25 | 4.82 ▼1.08 | 104.41 ▼5.39 | 46.03 ▲2.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.04 | 38.54 ▼1.54 | 39.12 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,517 ▼12 | 17.47 ▼0.94 | 647.28 ▲46.29 | 59.37 ▲9.56 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.05 | 96.26 ▲1.76 | 44.88 ▲0.51 |
云商店打包 /wp-admin/tools.php?page=yunshangdian | 844 | 2.03 | 24.19 | 54.10 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/yunshangdian/yunshangdian.php+117
Undefined index: page
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=yunshangdian
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=yunshangdian
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please take a closer look at the following
- 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant SAE_SECRETKEY - assumed 'SAE_SECRETKEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/yunshangdian/install/wp-config.php on line 51
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-pclzip.php' (include_path='.:/usr/share/php') in wp-content/plugins/yunshangdian/ZipArchive.class.php on line 2
- > PHP Warning
Use of undefined constant SAE_ACCESSKEY - assumed 'SAE_ACCESSKEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/yunshangdian/install/wp-config.php on line 46
- > PHP Warning
Use of undefined constant SAE_SECRETKEY - assumed 'SAE_SECRETKEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/yunshangdian/install/wp-config.php on line 47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yunshangdian/yunshangdian.php:224
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/yunshangdian/install/wp-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/yunshangdian/install/wp-config.php on line 87
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/yunshangdian/install/upgrade.php on line 12
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/yunshangdian/yunshangdian.php on line 28
- > PHP Warning
Use of undefined constant SAE_ACCESSKEY - assumed 'SAE_ACCESSKEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/yunshangdian/install/wp-config.php on line 49
- > PHP Warning
Use of undefined constant SAE_ACCESSKEY - assumed 'SAE_ACCESSKEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/yunshangdian/install/wp-config.php on line 44
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Screenshots: Screenshot #1 (后台样式) image missing
- Tags: No valid plugin tags found
yunshangdian/yunshangdian.php Passed 13 tests
The primary PHP file in "新浪云商店打包插件" version 1.1 is used by WordPress to initiate all plugin functionality
54 characters long description:
可以将wordpress导出为新浪云商店的应用。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,197 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 420 | 741 | 2,167 |
XML | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 63 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 19 | 95.00% |
▷ Class constants | 1 | 5.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected