Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.29ms] Passed 4 tests
A check of server-side resources used by Selling Commander for WooCommerce - connector plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.95 ▼2.57 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.97 ▼4.08 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.00 ▲1.26 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.90 ▼7.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.51 ▲4.06 |
Manage products /wp-admin/admin.php?page=sellingcommander-connector-products-justmanage | 3.33 | 32.13 |
Selling commander /wp-admin/admin.php?page=sellingcommander-connector | 3.21 | 31.31 |
Manage with S.C. /wp-admin/edit.php?post_type=product&page=sellingcommander-connector-products-justmanage | 3.08 | 23.32 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Selling Commander for WooCommerce - connector plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.45 ▲0.10 | 1.75 ▲0.08 | 41.61 ▼7.96 |
Dashboard /wp-admin | 2,222 ▲45 | 5.56 ▼0.05 | 83.62 ▼19.49 | 38.73 ▼4.23 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.05 | 33.94 ▼1.43 | 42.54 ▲5.96 |
Add New Post /wp-admin/post-new.php | 1,557 ▲27 | 18.64 ▼4.50 | 604.41 ▼95.70 | 68.03 ▲14.65 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.15 ▼0.03 | 93.99 ▼13.85 | 41.55 ▼1.35 |
Manage products /wp-admin/admin.php?page=sellingcommander-connector-products-justmanage | 1,334 | 2.00 | 22.64 | 26.51 |
Selling commander /wp-admin/admin.php?page=sellingcommander-connector | 790 | 1.99 | 24.19 | 26.61 |
Manage with S.C. /wp-admin/edit.php?post_type=product&page=sellingcommander-connector-products-justmanage | 28 | 0.42 | 0.11 | 3.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=product&page=sellingcommander-connector-products-justmanage
- > Network (severe)
wp-admin/edit.php?post_type=product&page=sellingcommander-connector-products-justmanage - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
selling-commander-connector/sellingcommander.php 85% from 13 tests
The main PHP script in "Selling Commander for WooCommerce - connector plugin" version 1.2.15 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("selling-commander-connector.php" instead of "sellingcommander.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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,949 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 750 | 46 | 4,190 |
JavaScript | 1 | 89 | 1 | 425 |
CSS | 1 | 70 | 2 | 334 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 68.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 639.00 |
Average method complexity | 8.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 88.12% |
▷ Protected methods | 5 | 4.95% |
▷ Private methods | 7 | 6.93% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/manage_products.png | 58.31KB | 21.86KB | ▼ 62.51% |
assets/manage_orders.png | 67.62KB | 25.75KB | ▼ 61.92% |