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.08MB] [CPU: ▼2.96ms] Passed 4 tests
Server-side resources used by Superstore
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.47 ▲0.80 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.92 ▼1.46 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.57 ▼14.59 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 105.81 ▲14.01 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.21 ▲3.42 |
Server storage [IO: ▲6.20MB] [DB: ▲0.08MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 113 new files
Database: 2 new tables, 14 new options
New tables |
---|
wp_superstore_payments |
wp_superstore_payment_statements |
New WordPress options |
---|
widget_recent-comments |
widget_superstore-featured-products |
widget_theysaidso_widget |
superstore_pages_created |
widget_superstore-best-selling-products |
superstore_seller-account_page_id |
superstore_pages |
widget_superstore-top-rated-products |
widget_recent-posts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Superstore
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.74 ▲0.52 | 1.69 ▼0.04 | 43.97 ▼2.89 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.06 | 89.00 ▲3.82 | 41.80 ▲0.69 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.02 | 36.17 ▼3.06 | 37.64 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.65 ▲5.46 | 689.25 ▲30.80 | 53.89 ▼24.29 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.25 ▲0.09 | 100.84 ▼8.24 | 46.19 ▲1.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_superstore_payment_statements
- wp_superstore_payments
- This plugin did not uninstall successfully, leaving 14 options in the database
- widget_superstore-top-rated-products
- superstore_stores_page_id
- superstore_pages_created
- widget_recent-posts
- can_compress_scripts
- widget_superstore-latest-products
- theysaidso_admin_options
- widget_superstore-best-selling-products
- widget_theysaidso_widget
- widget_superstore-featured-products
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/superstore/includes/Email/ProductPublished.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/superstore/includes/RESTAPI/Seller.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/superstore/includes/RESTAPI/Report.php:14
- > PHP Fatal error
Uncaught Error: Class 'Binarithm\\Superstore\\Abstracts\\AbstractData' not found in wp-content/plugins/superstore/includes/Payment/PaymentStatement.php:12
- > PHP Notice
Undefined variable: r in wp-content/plugins/superstore/templates/widgets/product.php on line 11
- > PHP Fatal error
Trait 'Binarithm\\Superstore\\Traits\\Container' not found in wp-content/plugins/superstore/includes/Widgets/Controller.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/superstore/includes/RESTAPI/Payment.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/superstore/includes/Widgets/LatestProducts.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/superstore/templates/global/product-tab.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/superstore/includes/Email/UpdatePayment.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: woocommerce multivendor marketplace, woocommerce mutivendor, multi vendor marketplace, commission, vendor...
superstore/superstore.php 92% from 13 tests
This is the main PHP file of "Superstore" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.4" instead of "3.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected17,073 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 2,929 | 5,481 | 16,571 |
JavaScript | 4 | 2 | 1,479 | 493 |
JSON | 1 | 0 | 0 | 5 |
CSS | 4 | 0 | 16 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 22.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 72 | |
▷ Abstract classes | 3 | 4.17% |
▷ Concrete classes | 69 | 95.83% |
▷ Final classes | 1 | 1.45% |
Methods | 767 | |
▷ Static methods | 31 | 4.04% |
▷ Public methods | 709 | 92.44% |
▷ Protected methods | 46 | 6.00% |
▷ Private methods | 12 | 1.56% |
Functions | 27 | |
▷ Named functions | 25 | 92.59% |
▷ Anonymous functions | 2 | 7.41% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/superstore-logo-white.png | 29.63KB | 15.88KB | ▼ 46.39% |
assets/images/default-store-banner.png | 19.59KB | 6.63KB | ▼ 66.13% |
assets/images/superstore-logo-black.png | 29.65KB | 15.88KB | ▼ 46.44% |