Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.40ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Natural Sort
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 36.79 ▲1.81 |
Dashboard /wp-admin | 3.08 ▲0.03 | 44.79 ▼4.81 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 44.00 ▲3.71 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 94.23 ▼569.00 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.59 ▼1.59 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Natural Sort
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲83 | 15.88 ▲0.36 | 7.35 ▼2.47 | 52.28 ▼2.69 |
Dashboard /wp-admin | 2,967 ▲33 | 5.90 ▼0.28 | 135.82 ▼17.94 | 119.36 ▼7.11 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.70 ▲0.01 | 66.65 ▼1.20 | 97.82 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,672 ▲68 | 18.78 ▼0.09 | 379.92 ▼4.89 | 106.31 ▼14.43 |
Media Library /wp-admin/upload.php | 1,804 ▲56 | 5.02 ▼0.00 | 147.57 ▼8.36 | 128.72 ▲7.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/woocommerce-natural-sort-for-products/ds-naturalsort.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% 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
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== woocommerce-natural-sort-for-products ===
) - Screenshots: Please add images for these screenshots: #1 (Before Plugin Activation), #2 (After Plugin Activation)
woocommerce-natural-sort-for-products/ds-naturalsort.php 85% from 13 tests
"Woocommerce Natural Sort" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-natural-sort-for-products.php" instead of "ds-naturalsort.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin219 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 43 | 185 |
PO File | 1 | 8 | 20 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 48.76KB | 20.12KB | ▼ 58.74% |
screenshot-2.png | 46.04KB | 18.28KB | ▼ 60.30% |