Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.69ms] Passed 4 tests
An overview of server-side resources used by WeiBo TuChuang
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.15 ▼4.69 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.79 ▼8.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.15 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.90 ▼19.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.49 ▼1.50 |
微博图床 /wp-admin/options-general.php?page=weibo-tuchuang | 3.18 | 28.69 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WeiBo TuChuang
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.61 ▼0.98 | 1.74 ▼0.07 | 42.59 ▲0.40 |
Dashboard /wp-admin | 2,212 ▲27 | 5.91 ▲0.02 | 110.77 ▲5.25 | 45.25 ▲5.20 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▼0.01 | 39.27 ▼0.68 | 41.03 ▲5.77 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.62 ▼4.79 | 603.75 ▼63.83 | 52.43 ▲3.16 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.30 ▲0.08 | 97.87 ▼3.79 | 47.22 ▲4.48 |
微博图床 /wp-admin/options-general.php?page=weibo-tuchuang | 782 | 2.01 | 24.52 | 51.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=weibo-tuchuang
- > User deprecated in wp-includes/functions.php+5453
Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/weibo-tuchuang/weibo-tuchuang.php:30
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Contributors: Contributors not specified
- Contributors: No tags were detected
weibo-tuchuang/weibo-tuchuang.php Passed 13 tests
Analyzing the main PHP file in "WeiBo TuChuang" version 1.2
72 characters long description:
在文章发布页面增加微博上传功能,使用微博作为图床
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,525 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 273 | 1,594 | 1,454 |
JavaScript | 1 | 10 | 0 | 69 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 1 | 0.70% |
▷ Public methods | 140 | 97.90% |
▷ Protected methods | 3 | 2.10% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
There were not PNG files found in your plugin