Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.25MB] [CPU: ▼15.30ms] Passed 4 tests
An overview of server-side resources used by WP商城系统 - 情动
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 41.86 ▲3.32 |
Dashboard /wp-admin | 3.76 ▲0.42 | 50.90 ▼13.84 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 55.14 ▲3.94 |
Add New Post /wp-admin/post-new.php | 3.57 ▼2.31 | 49.50 ▼53.27 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 37.68 ▲2.61 |
Dashboard /wp-admin/plugins.php?page=meta-box | 3.62 | 37.05 |
商品管理 /wp-admin/edit.php?post_type=products | 3.73 | 58.14 |
订单管理 /wp-admin/edit.php?post_type=orders | 3.73 | 42.10 |
Server storage [IO: ▲6.56MB] [DB: ▲0.12MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 537 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
qd_admin |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP商城系统 - 情动
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 14.28 ▲0.01 | 1.71 ▲0.00 | 41.24 ▲0.63 |
Dashboard /wp-admin | 2,298 ▲121 | 5.62 ▼0.13 | 92.14 ▼2.97 | 54.09 ▲11.97 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 1.99 ▼0.00 | 40.23 ▲0.43 | 48.79 ▲8.92 |
Add New Post /wp-admin/post-new.php | 6,400 ▲4,863 | 26.26 ▲8.00 | 885.32 ▲217.18 | 105.16 ▲35.16 |
Media Library /wp-admin/upload.php | 1,486 ▲89 | 4.17 ▼0.11 | 104.28 ▲2.21 | 52.92 ▲7.09 |
Dashboard /wp-admin/plugins.php?page=meta-box | 1,796 | 9.30 | 289.41 | 70.12 |
商品管理 /wp-admin/edit.php?post_type=products | 1,175 | 1.97 | 30.87 | 54.76 |
常见问题/介绍 /wp-admin/admin.php?page=qd_admin#tab=%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98-%e4%bb%8b%e7%bb%8d | 1,416 | 3.61 | 54.69 | 93.71 |
常规设置 /wp-admin/admin.php?page=qd_admin#tab=%e5%b8%b8%e8%a7%84%e8%ae%be%e7%bd%ae | 1,432 | 3.39 | 50.86 | 69.98 |
支付设置 /wp-admin/admin.php?page=qd_admin#tab=%e6%94%af%e4%bb%98%e8%ae%be%e7%bd%ae | 1,444 | 3.57 | 57.30 | 72.42 |
订单管理 /wp-admin/edit.php?post_type=orders | 1,121 | 1.90 | 29.03 | 45.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.12MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- qd_admin
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/plugins.php?page=meta-box
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/jiutu-qingdong/meta-box.php): failed to open stream: No such file or directory
SRP 0% 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
Almost there! Just fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/jiutu-qingdong/inc/templates/upload.php
- > /wp-content/plugins/jiutu-qingdong/inc/templates/media.php
- > /wp-content/plugins/jiutu-qingdong/inc/templates/audio.php
- > /wp-content/plugins/jiutu-qingdong/inc/templates/video.php
- > /wp-content/plugins/jiutu-qingdong/inc/templates/image-advanced.php
- 66× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/text-list.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_List_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/radio.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jiutu-qingdong/inc/about/sections/upgrade.php:10
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/fieldset-text.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/file.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/custom-html.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/taxonomy.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/image-select.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Taxonomy_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/taxonomy-advanced.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/jiutu-qingdong/inc/fields/heading.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (商城页面), #2 (产品详情页), #3 (详情), #4 (详情)
jiutu-qingdong/qingdong.php 92% from 13 tests
"WP商城系统 - 情动" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("jiutu-qingdong.php" instead of "qingdong.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .as - Adobe Flash ActionScript File in Adobe Flash
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/htmlelements/AudioElement.as
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/htmlelements/DailyMotionElement.as
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/FlashMediaElement.as
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/htmlelements/HLSMediaElement.as
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/HtmlMediaEvent.as
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/htmlelements/IMediaElement.as
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/htmlelements/VideoElement.as
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/info/src/flash/htmlelements/YouTubeElement.as
- .xap - Silverlight Application Package in Microsoft Silverlight
- ☣ wp-content/plugins/jiutu-qingdong/static/external/player/johndyer-mediaelement-89793bc/build/silverlightmediaelement.xap
- .as - Adobe Flash ActionScript File in Adobe Flash
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 178 | 7,296 | 6,089 | 31,786 |
CSS | 53 | 2,087 | 515 | 14,608 |
PHP | 159 | 2,777 | 4,959 | 12,313 |
ActionScript | 8 | 531 | 249 | 2,176 |
HTML | 25 | 438 | 32 | 1,365 |
Markdown | 7 | 353 | 0 | 1,309 |
C# | 3 | 142 | 93 | 504 |
PO File | 1 | 161 | 177 | 334 |
XAML | 2 | 20 | 1 | 263 |
MSBuild script | 1 | 0 | 10 | 119 |
Sass | 1 | 12 | 0 | 87 |
JSON | 2 | 0 | 0 | 47 |
XML | 2 | 0 | 0 | 38 |
SVG | 6 | 1 | 0 | 35 |
Bourne Shell | 1 | 2 | 11 | 8 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 135 | |
▷ Abstract classes | 8 | 5.93% |
▷ Concrete classes | 127 | 94.07% |
▷ Final classes | 0 | 0.00% |
Methods | 629 | |
▷ Static methods | 311 | 49.44% |
▷ Public methods | 575 | 91.41% |
▷ Protected methods | 33 | 5.25% |
▷ Private methods | 21 | 3.34% |
Functions | 56 | |
▷ Named functions | 37 | 66.07% |
▷ Anonymous functions | 19 | 33.93% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 1.42MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
static/external/player/johndyer-mediaelement-89793bc/info/src/css/controls-wmp.png | 5.38KB | 3.02KB | ▼ 43.93% |
static/external/player/johndyer-mediaelement-89793bc/info/src/css/controls.fw.png | 78.86KB | 1.98KB | ▼ 97.48% |
screenshot-2.png | 532.31KB | 162.40KB | ▼ 69.49% |
inc/about/images/online-generator.png | 12.95KB | 13.04KB | 0.00% |