Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.47ms] Passed 4 tests
This is a short check of server-side resources used by QQWorld Woocommerce助手精简版
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.17 ▼6.20 |
Dashboard /wp-admin | 3.44 ▲0.14 | 46.02 ▲0.78 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 47.58 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.19 ▼13.37 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 41.76 ▲8.51 |
WooCommerce Assistant /wp-admin/admin.php?page=qqworld-woocommerce-assistant | 3.33 | 31.59 |
Brand Taxonomy /wp-admin/admin.php?page=qqworld-woocommerce-assistant-brand-taxonomy | 3.33 | 32.83 |
Shipping Status /wp-admin/admin.php?page=qqworld-woocommerce-assistant-shipping-status | 3.33 | 29.88 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for QQWorld Woocommerce助手精简版
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 13.21 ▼1.38 | 1.87 ▲0.06 | 41.60 ▼3.13 |
Dashboard /wp-admin | 2,239 ▲51 | 4.89 ▲0.00 | 109.90 ▼0.15 | 38.99 ▼3.21 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.05 ▲0.05 | 38.65 ▲2.52 | 37.80 ▲7.55 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 17.90 ▼5.09 | 645.94 ▲20.54 | 33.73 ▼20.49 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.28 ▲0.05 | 95.76 ▼3.38 | 44.12 ▲0.46 |
WooCommerce Assistant /wp-admin/admin.php?page=qqworld-woocommerce-assistant | 938 | 1.99 | 35.09 | 32.70 |
Brand Taxonomy /wp-admin/admin.php?page=qqworld-woocommerce-assistant-brand-taxonomy | 848 | 1.93 | 24.36 | 28.22 |
Shipping Status /wp-admin/admin.php?page=qqworld-woocommerce-assistant-shipping-status | 851 | 1.93 | 26.09 | 25.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function qqworld\\plugin_dir_url() in wp-content/plugins/qqworld-woocommerce-assistant-lite/qawc.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: china, speed
qqworld-woocommerce-assistant-lite/qawc.php 85% from 13 tests
The principal PHP file in "QQWorld Woocommerce助手精简版" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qqworld-woocommerce-assistant-lite.php" instead of "qawc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,074 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 68 | 13 | 431 |
CSS | 1 | 10 | 5 | 289 |
PO File | 2 | 300 | 694 | 258 |
JavaScript | 2 | 23 | 10 | 96 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 1 | 2.78% |
▷ Private methods | 1 | 2.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-772x250.png | 52.78KB | 52.15KB | ▼ 1.19% |
images/extensions/brand-taxonomy.png | 8.18KB | 8.15KB | 0.41% |
images/extensions/chinization.png | 7.71KB | 7.62KB | ▼ 1.23% |
images/extensions/shipping-status.png | 8.45KB | 8.45KB | 0.05% |
images/extensions/logistics-query.png | 10.40KB | 10.40KB | 0.03% |