Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲2.53MB] [CPU: ▲2.54ms] Passed 4 tests
An overview of server-side resources used by Seraphinite Bulk Discounts for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.90 ▲2.44 | 55.29 ▲18.75 |
Dashboard /wp-admin | 5.88 ▲2.53 | 62.25 ▼2.92 |
Posts /wp-admin/edit.php | 5.93 ▲2.57 | 53.76 ▲3.69 |
Add New Post /wp-admin/post-new.php | 8.47 ▲2.58 | 93.29 ▼4.82 |
Media Library /wp-admin/upload.php | 5.80 ▲2.57 | 51.14 ▲14.22 |
Server storage [IO: ▲0.49MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
seraph_wd_Sett |
widget_recent-comments |
seraph_wd_State |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
seraph_wd_RmtCfg |
Browser metrics Passed 4 tests
Checking browser requirements for Seraphinite Bulk Discounts for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.24 ▼0.32 | 1.69 ▲0.15 | 43.54 ▲3.82 |
Dashboard /wp-admin | 2,200 ▲23 | 5.61 ▼0.03 | 99.25 ▲6.37 | 45.28 ▲4.12 |
Posts /wp-admin/edit.php | 2,099 ▼1 | 1.95 ▼0.02 | 34.19 ▼5.88 | 35.44 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 18.59 ▼4.60 | 621.59 ▼41.00 | 63.52 ▼3.57 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.18 ▲0.01 | 94.71 ▲1.57 | 41.24 ▼3.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- db_upgraded
- seraph_wd_Sett
- theysaidso_admin_options
- widget_recent-posts
- seraph_wd_RmtCfg
- widget_theysaidso_widget
- can_compress_scripts
- seraph_wd_State
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woo, discount, product, bulk, woocommerce
seraphinite-discount-for-woocommerce/seraphinite-discount-for-woocommerce.php Passed 13 tests
The main PHP script in "Seraphinite Bulk Discounts for WooCommerce" version 2.4.5 is automatically included on every request by WordPress
57 characters long description:
Increase your sales by providing products bulk discounts.
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
No dangerous file extensions were detected9,696 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 2,596 | 34 | 9,566 |
JavaScript | 7 | 0 | 0 | 122 |
XML | 1 | 2 | 0 | 5 |
JSON | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 71.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 361.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 558 | |
▷ Static methods | 516 | 92.47% |
▷ Public methods | 487 | 87.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 71 | 12.72% |
Functions | 150 | |
▷ Named functions | 78 | 52.00% |
▷ Anonymous functions | 72 | 48.00% |
Constants | 93 | |
▷ Global constants | 1 | 1.08% |
▷ Class constants | 92 | 98.92% |
▷ Public constants | 92 | 100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/VendorLogo.png | 1.47KB | 1.45KB | ▼ 1.40% |
Images/ProductLogo.png | 4.01KB | 2.19KB | ▼ 45.46% |