Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.20ms] Passed 4 tests
Analyzing server-side resources used by TT Add to Cart Buy Now for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 45.17 ▲7.05 |
Dashboard /wp-admin | 3.38 ▲0.08 | 55.34 ▲4.44 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.95 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.44 ▼8.10 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 35.92 ▲2.62 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by TT Add to Cart Buy Now for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.62 ▲0.10 | 2.11 ▲0.32 | 46.42 ▲0.28 |
Dashboard /wp-admin | 2,195 ▲21 | 5.61 ▼0.06 | 100.20 ▲2.36 | 47.36 ▲6.32 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.06 | 37.28 ▼0.13 | 36.46 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.40 ▲0.44 | 691.67 ▲17.56 | 54.31 ▲4.24 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▲0.12 | 101.59 ▼32.72 | 44.31 ▼4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== tt-add-to-cart-buy-now-for-woocommerce ===
) - Screenshots: These screenshots require images: #1 ([screenhot-1.png] Screenshot Admin WooCommerce - Add to Cart Buy Now options), #2 ([screenhot-2.png] Screenshot Frontend WooCommerce - Shop page with customized "Add to cart" and "Buy Now" buttons), #3 ([screenhot-3.png] Screenshot Frontend WooCommerce - Product page with a new "Buy Now" button (with Icons enabled)), #4 ([screenhot-4.png] Screenshot Frontend WooCommerce - Product page with a new "Buy Now" button)
tt-add-to-cart-buy-now-for-woocommerce/wc-add-to-cart-buy-now.php 92% from 13 tests
"TT Add to Cart Buy Now for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("tt-add-to-cart-buy-now-for-woocommerce.php" instead of "wc-add-to-cart-buy-now.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,297 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 62 | 74 | 681 |
PHP | 1 | 128 | 45 | 442 |
PO File | 2 | 50 | 52 | 132 |
JavaScript | 1 | 20 | 0 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 0.55MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 42.28KB | 17.30KB | ▼ 59.07% |
screenshot-2.png | 82.63KB | 30.06KB | ▼ 63.62% |
assets/images/icon-woocommerce-product-badge.png | 8.45KB | 4.08KB | ▼ 51.70% |
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
screenshot-4.png | 144.77KB | 66.90KB | ▼ 53.79% |