Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wptao/wptao.php+40
Undefined index: caiji
Server metrics [RAM: ▼1.94MB] [CPU: ▼56.82ms] Passed 4 tests
Server-side resources used by WordPress淘宝客插件
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 5.11 ▼44.81 |
Dashboard /wp-admin | 2.08 ▼1.27 | 6.23 ▼58.82 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 7.19 ▼42.34 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.42 ▼81.29 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.85 ▼31.36 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress淘宝客插件
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.34 ▼0.01 | 1.86 ▼0.17 | 42.64 ▲0.21 |
Dashboard /wp-admin | 2,205 ▲37 | 5.61 ▲0.02 | 92.95 ▼3.07 | 85.78 ▲42.70 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.97 ▲0.00 | 41.23 ▲3.24 | 45.30 ▲9.51 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.61 ▲0.44 | 765.94 ▲69.57 | 59.81 ▲13.90 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.12 ▼0.01 | 102.44 ▼16.85 | 90.33 ▲42.99 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wptao/wptao.php+40
Undefined index: caiji
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% 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 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 Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wptao/admin/admin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptao/functions.php:326
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wptao/functions.php on line 249
- > PHP Notice
Undefined variable: wptao_options in wp-content/plugins/wptao/functions.php on line 249
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wptao/wptao.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== wptao ===
)
wptao/wptao.php 92% from 13 tests
Analyzing the main PHP file in "WordPress淘宝客插件" version 3.6
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 244 characters long)
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 plugin2,708 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 26 | 123 | 2,552 |
CSS | 3 | 0 | 0 | 112 |
JavaScript | 4 | 0 | 14 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/soldout.png | 1.82KB | 1.85KB | 0.00% |
admin/wptao/icon.png | 0.93KB | 0.19KB | ▼ 79.05% |
images/icon.png | 0.93KB | 0.19KB | ▼ 79.05% |
images/close1.png | 0.61KB | 0.78KB | 0.00% |