Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.42ms] Passed 4 tests
This is a short check of server-side resources used by SMNTCS Quantity Increment Buttons for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.64 ▲0.06 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.09 ▲1.36 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.71 ▲0.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 82.19 ▼3.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 37.34 ▲4.46 |
Server storage [IO: ▲1.97MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by SMNTCS Quantity Increment Buttons for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.18 ▼0.47 | 2.00 ▲0.38 | 40.55 ▼0.19 |
Dashboard /wp-admin | 2,209 ▲32 | 5.57 ▼0.11 | 85.19 ▲0.17 | 38.56 ▼1.32 |
Posts /wp-admin/edit.php | 2,111 ▲32 | 1.98 ▼0.01 | 34.00 ▼2.10 | 33.69 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 18.21 ▼4.80 | 621.80 ▼4.59 | 82.83 ▲29.28 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.18 ▲0.04 | 103.54 ▲8.97 | 45.73 ▲3.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: woocommerce quantity, quantity increment, quantity, quantity buttons
smntcs-woocommerce-quantity-buttons/woocommerce-quantity-buttons.php 85% from 13 tests
This is the main PHP file of "SMNTCS Quantity Increment Buttons for WooCommerce" version 2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("smntcs-woocommerce-quantity-buttons.php" instead of "woocommerce-quantity-buttons.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 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 detected33,588 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 33,065 |
PHP | 2 | 31 | 79 | 167 |
Markdown | 1 | 85 | 0 | 124 |
Sass | 4 | 13 | 0 | 90 |
JavaScript | 5 | 5 | 7 | 79 |
XML | 1 | 13 | 14 | 51 |
YAML | 1 | 0 | 0 | 8 |
CSS | 4 | 4 | 4 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 7 | 100.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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.46MB with 0.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-2.png | 127.37KB | 30.51KB | ▼ 76.05% |
assets/images/screenshot-1.png | 347.17KB | 156.32KB | ▼ 54.97% |