Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.95ms] Passed 4 tests
Analyzing server-side resources used by ChinaDS – Tmall-Taobao Dropshipping for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.70 ▼0.11 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.08 ▲2.29 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.23 ▼6.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.76 ▼17.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.22 ▼0.13 |
Server storage [IO: ▲3.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 134 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_tbds_error_product_images |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
ChinaDS – Tmall-Taobao Dropshipping for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲38 | 13.50 ▼0.88 | 1.71 ▼0.32 | 43.11 ▼1.07 |
Dashboard /wp-admin | 2,215 ▲27 | 4.85 ▼0.09 | 112.82 ▲11.82 | 44.17 ▲0.39 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.00 ▼0.01 | 34.25 ▼10.52 | 32.69 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 22.94 ▼0.32 | 656.28 ▲26.74 | 52.11 ▼1.56 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.21 ▲0.03 | 94.94 ▼2.06 | 41.14 ▲0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_tbds_error_product_images
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/chinads-dropshipping-taobao-woocommerce/admin/views/html-import-list-override-options.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: taobao dropshiping, wordpress, woocommerce, dropship, chinads...
chinads-dropshipping-taobao-woocommerce/chinads-taobao-dropshipping-for-woocommerce.php 85% from 13 tests
The principal PHP file in "ChinaDS – Tmall-Taobao Dropshipping for WooCommerce" v. 2.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("chinads-dropshipping-taobao-woocommerce.php" instead of "chinads-taobao-dropshipping-for-woocommerce.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected22,902 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,408 | 1,106 | 11,097 |
SVG | 4 | 0 | 12 | 3,820 |
JavaScript | 24 | 227 | 146 | 2,728 |
CSS | 37 | 359 | 239 | 1,957 |
PO File | 2 | 690 | 862 | 1,725 |
Sass | 5 | 316 | 2 | 1,575 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 204)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 67.59 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 521.00 |
Average method complexity | 6.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 204.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 1 | 4.00% |
Methods | 313 | |
▷ Static methods | 92 | 29.39% |
▷ Public methods | 274 | 87.54% |
▷ Protected methods | 32 | 10.22% |
▷ Private methods | 7 | 2.24% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-256x256.png | 5.42KB | 2.73KB | ▼ 49.67% |
assets/img/icon.png | 0.41KB | 0.33KB | ▼ 19.58% |