Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/scs-support/scs-support.php+40
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.85MB] [CPU: ▼50.03ms] Passed 4 tests
A check of server-side resources used by 新浪云存储SCS-Support
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 5.56 ▼32.21 |
Dashboard /wp-admin | 2.15 ▼1.15 | 5.98 ▼46.47 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 7.36 ▼38.40 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 6.12 ▼83.02 |
Media Library /wp-admin/upload.php | 2.15 ▼1.07 | 5.03 ▼30.16 |
SCS Setting /wp-admin/options-general.php?page=scs-support/scs-support.php | 2.15 | 5.79 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
scs_options |
Browser metrics Passed 4 tests
A check of browser resources used by 新浪云存储SCS-Support
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 14.45 ▼0.23 | 1.89 ▼0.47 | 45.88 ▼0.53 |
Dashboard /wp-admin | 2,219 ▲34 | 4.86 ▼0.96 | 109.27 ▲5.65 | 54.27 ▲14.74 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.04 ▲0.04 | 39.96 ▲3.48 | 47.22 ▲15.31 |
Add New Post /wp-admin/post-new.php | 1,554 ▲34 | 23.37 ▲0.41 | 591.70 ▼85.29 | 55.71 ▲3.18 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.26 ▲0.05 | 98.71 ▼8.15 | 50.44 ▲3.04 |
SCS Setting /wp-admin/options-general.php?page=scs-support/scs-support.php | 890 | 2.14 | 28.39 | 72.01 |
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
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function attribute_escape is deprecated since version 2.8.0! Use esc_attr() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- scs_options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=scs-support/scs-support.php
- > User deprecated in wp-includes/functions.php+5453
Function attribute_escape is deprecated since version 2.8.0! Use esc_attr() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=scs-support/scs-support.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=scs-support/scs-support.php
- > Notice in wp-content/plugins/scs-support/scs-support.php+193
Undefined index: bucket
- > GET request to /wp-admin/options-general.php?page=scs-support/scs-support.php
- > Notice in wp-content/plugins/scs-support/scs-support.php+196
Undefined index: ak
- > GET request to /wp-admin/options-general.php?page=scs-support/scs-support.php
- > Notice in wp-content/plugins/scs-support/scs-support.php+199
Undefined index: sk
- > GET request to /wp-admin/options-general.php?page=scs-support/scs-support.php
- > Notice in wp-content/plugins/scs-support/scs-support.php+202
Undefined index: hiPath
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/scs-support/scs-support.php:18
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/scs-support/scs-support.php on line 16
- > PHP Fatal error
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 fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=scs-support/scs-support.php
- > Network (severe)
http://archives.gimhoy.cn/archives/alipay_donate.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (SCS Setting) image missing
scs-support/scs-support.php Passed 13 tests
"新浪云存储SCS-Support" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
上传附件至新浪云存储(Sina Cloud Storage)。This is a plugin for SCS.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,369 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 333 | 832 | 1,369 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 101.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 223.00 |
Average method complexity | 6.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 56 | |
▷ Static methods | 43 | 76.79% |
▷ Public methods | 48 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 14.29% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 8 | 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 images were found in this plugin