Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼144.50ms] Passed 4 tests
Server-side resources used by Sales Count Product for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 47.68 ▲20.31 |
Dashboard /wp-admin | 3.06 ▲0.00 | 46.49 ▼5.76 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 51.91 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 97.09 ▼568.22 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.68 ▼7.62 |
Essential Kit /wp-admin/admin.php?page=scpfw_kit | 2.74 | 25.94 |
Sales Count Product settings /wp-admin/admin.php?page=sales-count-product-settings | 2.74 | 24.32 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Sales Count Product for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,778 ▲182 | 16.20 ▲0.60 | 10.67 ▼0.02 | 50.46 ▼0.81 |
Dashboard /wp-admin | 2,973 ▲39 | 5.91 ▼0.05 | 148.38 ▼13.91 | 129.91 ▲5.64 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.71 ▲0.00 | 74.09 ▲8.00 | 97.01 ▼6.85 |
Add New Post /wp-admin/post-new.php | 1,683 ▼2,024 | 18.77 ▼0.26 | 412.08 ▼81.76 | 118.78 ▼0.20 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▼0.02 | 165.67 ▼0.53 | 118.66 ▼18.27 |
Essential Kit /wp-admin/admin.php?page=scpfw_kit | 28 | 0.90 | 0.06 | 9.75 |
Sales Count Product settings /wp-admin/admin.php?page=sales-count-product-settings | 28 | 0.90 | 0.07 | 10.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=scpfw_kit
- > Network (severe)
wp-admin/admin.php?page=scpfw_kit - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=sales-count-product-settings
- > Network (severe)
wp-admin/admin.php?page=sales-count-product-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in sales-count-product-for-woocommerce/assets to your readme.txt
- Contributors: The plugin contributors field is missing
sales-count-product-for-woocommerce/Sales_count_poduct_main.php 92% from 13 tests
Analyzing the main PHP file in "Sales Count Product for WooCommerce" version 1.0
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("sales-count-product-for-woocommerce.php" instead of "Sales_count_poduct_main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin991 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 76 | 10 | 608 |
JavaScript | 2 | 58 | 146 | 336 |
CSS | 2 | 0 | 0 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 4 | 13.79% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |