Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.92MB] [CPU: ▼5.50ms] Passed 4 tests
Analyzing server-side resources used by Shopbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.92 | 43.50 ▲5.26 |
Dashboard /wp-admin | 4.24 ▲0.89 | 49.37 ▼14.98 |
Posts /wp-admin/edit.php | 4.29 ▲0.93 | 57.54 ▲4.87 |
Add New Post /wp-admin/post-new.php | 6.84 ▲0.95 | 85.80 ▼17.16 |
Media Library /wp-admin/upload.php | 4.16 ▲0.93 | 47.88 ▲14.74 |
Shopbox /wp-admin/admin.php?page=shopbox | 4.08 | 35.53 |
Exception Logs /wp-admin/admin.php?page=shopbox_exception_logs | 4.07 | 35.89 |
Export Products /wp-admin/admin.php?page=shopbox_export_products | 4.16 | 38.77 |
Import Products /wp-admin/admin.php?page=shopbox_import_products | 4.53 | 435.72 |
Settings /wp-admin/admin.php?page=shopbox_settings | 4.13 | 36.82 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 323 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sb_orders_synch |
New WordPress options |
---|
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Shopbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 14.38 ▼0.34 | 1.68 ▲0.06 | 37.02 ▼2.80 |
Dashboard /wp-admin | 2,234 ▲54 | 5.61 ▲0.04 | 96.34 ▲2.75 | 41.20 ▲0.98 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.04 ▲0.02 | 35.40 ▼4.70 | 31.29 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.54 ▲0.43 | 675.16 ▲58.64 | 53.62 ▲5.48 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.25 ▲0.08 | 95.55 ▲0.86 | 43.00 ▲0.42 |
Shopbox /wp-admin/admin.php?page=shopbox | 861 | 2.20 | 26.90 | 26.24 |
Exception Logs /wp-admin/admin.php?page=shopbox_exception_logs | 807 | 1.69 | 23.87 | 22.83 |
Export Products /wp-admin/admin.php?page=shopbox_export_products | 1,119 | 2.02 | 24.72 | 25.33 |
Import Products /wp-admin/admin.php?page=shopbox_import_products | 1,156 | 2.02 | 23.88 | 29.40 |
Settings /wp-admin/admin.php?page=shopbox_settings | 1,138 | 1.99 | 27.20 | 26.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_sb_orders_synch
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shopbox_settings
- > Notice in wp-content/plugins/shopbox/ShopBox/Admin/partials/general-settings.php+84
Undefined variable: paymentTypes
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shopbox_settings
- > Warning in wp-content/plugins/shopbox/ShopBox/Admin/partials/general-settings.php+84
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=shopbox_import_products
- > Error in wp-content/plugins/shopbox/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php+113
Uncaught GuzzleHttp\Exception\ClientException: Client error: `GET https://api.shopbox.com/api/v3/tags` resulted in a `401 Unauthorized` response:
{"error":{"name":"Unauthorized","message":"Your request was made with invalid credentials.","code":0,"status":401}}
in wp-content/plugins/shopbox/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 wp-content/plugins/shopbox/vendor/guzzlehttp/guzzle/src/Middleware.php(69): GuzzleHttp\Exception\RequestException::create()
#1 wp-content/plugins/shopbox/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}()
#2 wp-content/plugins/shopbox/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler()
#3 wp-content/plugins/shopbox/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 wp-content/plugins/shopbo
SRP 50% 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
Please fix the following items
- 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/shopbox/ShopBox/Admin/partials/header.php:2
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/shopbox/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/shopbox/vendor/guzzlehttp/guzzle/src/Client.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/shopbox/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/shopbox/ShopBox/Admin/partials/header.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shopbox/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shopbox/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shopbox/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/shopbox/ShopBox/Admin/partials/header.php:2
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/shopbox/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > 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 86% from 29 tests
readme.txt 81% from 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
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
- Requires at least: The plugin version is formatted incorrectly
- Screenshots: These screenshots do not have images: #1 (Settings needed to connect woocommerce to shopbox), #2 (Export products to shopbox)
shopbox/shopbox.php 92% from 13 tests
This is the main PHP file of "Shopbox" version 1.17.97, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
No dangerous file extensions were detected19,497 lines of code in 303 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 146 | 2,603 | 6,021 | 11,263 |
JavaScript | 127 | 436 | 1,045 | 3,746 |
Markdown | 14 | 1,218 | 0 | 3,606 |
JSON | 13 | 0 | 0 | 866 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 94 | |
▷ Abstract classes | 2 | 2.13% |
▷ Concrete classes | 92 | 97.87% |
▷ Final classes | 34 | 36.96% |
Methods | 894 | |
▷ Static methods | 137 | 15.32% |
▷ Public methods | 746 | 83.45% |
▷ Protected methods | 38 | 4.25% |
▷ Private methods | 110 | 12.30% |
Functions | 129 | |
▷ Named functions | 36 | 27.91% |
▷ Anonymous functions | 93 | 72.09% |
Constants | 63 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 63 | 100.00% |
▷ Public constants | 52 | 82.54% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin