Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.26MB] [CPU: ▲3.59ms] Passed 4 tests
A check of server-side resources used by 淘宝客(官方接口)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.71 ▲1.24 | 53.22 ▲3.90 |
Dashboard /wp-admin | 4.61 ▲1.31 | 58.86 ▲8.59 |
Posts /wp-admin/edit.php | 4.66 ▲1.31 | 61.76 ▲8.48 |
Add New Post /wp-admin/post-new.php | 7.13 ▲1.24 | 93.93 ▼6.62 |
Media Library /wp-admin/upload.php | 4.47 ▲1.24 | 51.76 ▲14.54 |
Server storage [IO: ▲4.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 250 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
tbk_data |
Browser metrics Passed 4 tests
An overview of browser requirements for 淘宝客(官方接口)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.28 ▼0.07 | 1.74 ▲0.15 | 40.20 ▼0.21 |
Dashboard /wp-admin | 2,246 ▲66 | 5.56 ▼0.08 | 90.68 ▼1.77 | 46.38 ▲0.84 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.01 ▲0.04 | 39.44 ▼2.67 | 45.47 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,566 ▲29 | 23.05 ▲4.59 | 671.42 ▼9.93 | 56.96 ▼18.19 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.24 ▲0.11 | 103.24 ▼15.44 | 48.10 ▲2.14 |
商品菜单配置 /wp-admin/admin.php?page=jiutu_tbk#tab=%e5%95%86%e5%93%81%e8%8f%9c%e5%8d%95%e9%85%8d%e7%bd%ae | 2,314 | 4.29 | 69.00 | 89.43 |
插件设置 /wp-admin/admin.php?page=jiutu_tbk#tab=%e6%8f%92%e4%bb%b6%e8%ae%be%e7%bd%ae | 2,378 | 4.09 | 67.14 | 106.21 |
使用说明 /wp-admin/admin.php?page=jiutu_tbk#tab=%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e | 2,299 | 3.55 | 56.03 | 65.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- tbk_data
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nines-taoke/vendor/dtk-developer/openapi-sdk-php/test.php
- 122× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DtkClient' not found in wp-content/plugins/nines-taoke/vendor/dtk-developer/openapi-sdk-php/api/GetActivityCatalogue.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/nines-taoke/vendor/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php:36
- > PHP Fatal error
Uncaught Error: Class 'DtkClient' not found in wp-content/plugins/nines-taoke/vendor/dtk-developer/openapi-sdk-php/api/GetTopicGoodsList.php:9
- > PHP Fatal error
Uncaught Error: Class 'DtkClient' not found in wp-content/plugins/nines-taoke/vendor/dtk-developer/openapi-sdk-php/api/GetJdParseUrl.php:7
- > PHP Fatal error
Uncaught Error: Class 'DtkClient' not found in wp-content/plugins/nines-taoke/vendor/dtk-developer/openapi-sdk-php/api/GetGoodsPriceTrend.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/nines-taoke/vendor/psr/container/src/NotFoundExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'DtkClient' not found in wp-content/plugins/nines-taoke/vendor/dtk-developer/openapi-sdk-php/api/GetCarouseList.php:6
- > PHP Fatal error
Uncaught Error: Class 'DtkClient' not found in wp-content/plugins/nines-taoke/vendor/dtk-developer/openapi-sdk-php/api/GetJdGoodsDetails.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/nines-taoke/vendor/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Pimple\\ServiceProviderInterface' not found in wp-content/plugins/nines-taoke/vendor/ennnnny/tbk/src/Tbk/Spread/ServiceProvider.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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:
- Screenshots: Please add images for these screenshots: #1 (前端首页展示截图), #2 (搜索功能展示截图)
nines-taoke/NinesTaoKe.php 85% from 13 tests
The main PHP script in "淘宝客(官方接口)" version 2.8.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Git Repository: Please remove the Git repository from this plugin
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nines-taoke.php" instead of "NinesTaoKe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin21,268 lines of code in 241 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 3,015 | 4,361 | 12,049 |
CSS | 4 | 1,268 | 33 | 7,323 |
JavaScript | 3 | 2 | 7 | 953 |
PO File | 1 | 161 | 177 | 334 |
JSON | 7 | 0 | 0 | 309 |
Markdown | 4 | 42 | 0 | 146 |
reStructuredText | 1 | 96 | 139 | 97 |
YAML | 1 | 7 | 1 | 39 |
XML | 1 | 2 | 0 | 16 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 188 | |
▷ Abstract classes | 2 | 1.06% |
▷ Concrete classes | 186 | 98.94% |
▷ Final classes | 2 | 1.08% |
Methods | 667 | |
▷ Static methods | 66 | 9.90% |
▷ Public methods | 657 | 98.50% |
▷ Protected methods | 4 | 0.60% |
▷ Private methods | 6 | 0.90% |
Functions | 110 | |
▷ Named functions | 39 | 35.45% |
▷ Anonymous functions | 71 | 64.55% |
Constants | 79 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 79 | 100.00% |
▷ Public constants | 79 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 2.96MB with 1.66MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 2,466.33KB | 349.38KB | ▼ 85.83% |
screenshot-2.png | 563.44KB | 101.95KB | ▼ 81.91% |
inc/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |