Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼6.72ms] Passed 4 tests
A check of server-side resources used by WPC Product Quantity for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 36.62 ▼4.98 |
Dashboard /wp-admin | 3.64 ▲0.30 | 48.04 ▼12.86 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 42.63 ▼11.39 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 92.29 ▲2.35 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 41.51 ▲6.48 |
About /wp-admin/admin.php?page=wpclever | 3.53 | 30.91 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.75 | 37.31 |
Server storage [IO: ▲0.18MB] [DB: ▲0.09MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPC Product Quantity for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲95 | 14.35 ▼0.02 | 1.70 ▼0.22 | 40.98 ▼4.35 |
Dashboard /wp-admin | 2,272 ▲95 | 5.58 ▼0.07 | 82.79 ▼16.87 | 76.94 ▲31.73 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 2.02 ▲0.01 | 37.66 ▼1.46 | 30.03 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,596 ▲59 | 23.17 ▲0.07 | 723.40 ▲87.32 | 51.60 ▼14.61 |
Media Library /wp-admin/upload.php | 1,471 ▲77 | 4.17 ▼0.03 | 99.74 ▼1.17 | 83.97 ▲36.23 |
About /wp-admin/admin.php?page=wpclever | 1,400 | 2.14 | 39.81 | 35.94 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,735 | 2.13 | 41.13 | 72.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: woo, min, wpc, max, qty...
wpc-product-quantity/wpc-product-quantity.php Passed 13 tests
"WPC Product Quantity for WooCommerce" version 4.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
WPC Product Quantity provides powerful controls for product quantity.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,486 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 301 | 76 | 1,767 |
CSS | 4 | 136 | 10 | 758 |
JavaScript | 4 | 91 | 9 | 464 |
Sass | 1 | 52 | 0 | 318 |
PO File | 1 | 54 | 63 | 150 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 61.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 3 | 4.76% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
No PNG images were found in this plugin