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
The following installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/class-requests.php+24
The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.
Server metrics [RAM: ▼1.86MB] [CPU: ▼49.81ms] Passed 4 tests
Analyzing server-side resources used by Dropshipping with Banggood for WooCommerce (Lite version)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.34 | 7.42 ▼32.44 |
Dashboard /wp-admin | 2.15 ▼1.16 | 10.68 ▼44.31 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 8.73 ▼41.65 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 10.08 ▼80.82 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.90 ▼30.49 |
Import List /wp-admin/admin.php?page=b2wl_import | 2.15 | 9.69 |
Search Products /wp-admin/admin.php?page=b2wl_dashboard | 2.15 | 10.87 |
Settings /wp-admin/admin.php?page=b2wl_setting | 2.15 | 8.34 |
Server storage [IO: ▲5.45MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 270 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Dropshipping with Banggood for WooCommerce (Lite version)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲40 | 14.36 ▲0.08 | 1.74 ▼0.19 | 44.34 ▲1.43 |
Dashboard /wp-admin | 2,235 ▲55 | 5.82 ▲0.18 | 88.22 ▼1.74 | 68.06 ▲29.79 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.31 ▲0.36 | 35.40 ▼4.21 | 31.35 ▼7.57 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 18.55 ▼4.67 | 697.84 ▲12.48 | 60.42 ▲7.84 |
Media Library /wp-admin/upload.php | 1,437 ▲34 | 4.44 ▲0.25 | 111.60 ▲0.51 | 69.70 ▲22.17 |
Import List /wp-admin/admin.php?page=b2wl_import | 1,881 | 2.93 | 58.71 | 73.64 |
Search Products /wp-admin/admin.php?page=b2wl_dashboard | 21,241 | 2.62 | 65.46 | 59.70 |
Settings /wp-admin/admin.php?page=b2wl_setting | 4,291 | 3.04 | 53.28 | 49.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/class-requests.php+24
The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=b2wl_setting
- > User deprecated in wp-includes/class-requests.php+24
The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/banggood-dropshipping/view/settings/settings_footer.php
- 75× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/banggood-dropshipping/view/product_data_tab.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _ex() in wp-content/plugins/banggood-dropshipping/view/settings/phrase_filter.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _ex() in wp-content/plugins/banggood-dropshipping/view/settings/settings_head.php:1
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/banggood-dropshipping/includes/libs/Requests/Requests/Exception/HTTP/418.php:15
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/banggood-dropshipping/includes/libs/Requests/Requests/Exception/HTTP/500.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/banggood-dropshipping/view/includes/category_modal.php:4
- > PHP Notice
Undefined variable: account in wp-content/plugins/banggood-dropshipping/view/settings/account.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/banggood-dropshipping/view/includes/confirm_modal.php:11
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/banggood-dropshipping/includes/libs/Requests/Requests/Exception/HTTP/412.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function b2wl_get_setting() in wp-content/plugins/banggood-dropshipping/view/settings/price_formula.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: affiliate, dropship, woocommerce, woo, dropshipper...
banggood-dropshipping/bng2woo-lite.php 77% from 13 tests
The entry point to "Dropshipping with Banggood for WooCommerce (Lite version)" version 1.2.11 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("banggood-dropshipping.php" instead of "bng2woo-lite.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin59,324 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 20,290 |
PHP | 129 | 3,397 | 5,219 | 15,473 |
JavaScript | 60 | 3,451 | 909 | 13,130 |
CSS | 9 | 484 | 36 | 9,702 |
SVG | 9 | 62 | 12 | 698 |
XML | 1 | 0 | 0 | 31 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 225)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 27.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 590.00 |
Average method complexity | 5.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 225.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 5 | 4.67% |
▷ Concrete classes | 102 | 95.33% |
▷ Final classes | 0 | 0.00% |
Methods | 636 | |
▷ Static methods | 110 | 17.30% |
▷ Public methods | 531 | 83.49% |
▷ Protected methods | 70 | 11.01% |
▷ Private methods | 35 | 5.50% |
Functions | 40 | |
▷ Named functions | 23 | 57.50% |
▷ Anonymous functions | 17 | 42.50% |
Constants | 37 | |
▷ Global constants | 11 | 29.73% |
▷ Class constants | 26 | 70.27% |
▷ Public constants | 26 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 1.02MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/stickers/stick-004.png | 71.08KB | 20.12KB | ▼ 71.70% |
assets/img/stickers/stick-021.png | 62.45KB | 17.95KB | ▼ 71.26% |
assets/img/stickers/stick-011.png | 43.36KB | 13.87KB | ▼ 68.01% |
assets/img/stickers/stick-003.png | 68.36KB | 21.68KB | ▼ 68.29% |
assets/img/stickers/stick-012.png | 11.41KB | 4.44KB | ▼ 61.04% |