Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.24ms] Passed 4 tests
A check of server-side resources used by Easy Options Add-To-Cart Button Text per product for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.84 ▼5.34 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.54 ▼0.52 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.34 ▲5.23 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.19 ▼11.07 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.62 ▼0.04 |
Easy Options Add To Cart button text per product WC /wp-admin/options-general.php?page=easy-options-add-to-cart-button-text-per-product-wc | 3.22 | 45.36 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Options Add-To-Cart Button Text per product for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.56 ▼0.82 | 1.65 ▼0.31 | 43.58 ▼4.36 |
Dashboard /wp-admin | 2,210 ▲19 | 5.90 ▲1.00 | 104.47 ▲4.01 | 37.52 ▼8.94 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.05 | 34.45 ▼1.49 | 31.81 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,517 ▼18 | 17.82 ▼5.53 | 619.19 ▼40.55 | 64.38 ▲1.33 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.06 | 94.80 ▼1.30 | 42.34 ▲1.33 |
Easy Options Add To Cart button text per product WC /wp-admin/options-general.php?page=easy-options-add-to-cart-button-text-per-product-wc | 777 | 2.02 | 31.50 | 52.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-options-add-to-cart-button-text-per-product-wc/easy-options-add-to-cart-button-text-per-product-wc.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: text, buy now button, woocommerce, button, add to cart...
easy-options-add-to-cart-button-text-per-product-wc/easy-options-add-to-cart-button-text-per-product-wc.php Passed 13 tests
The main PHP file in "Easy Options Add-To-Cart Button Text per product for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Allows you to change the text on a WooCommerce products Add To Cart button to BUY NOW. This can be selected on a per product basis.
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
Good job! No executable or dangerous file extensions detected129 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 32 | 129 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dbut-small.png | 5.33KB | 2.67KB | ▼ 49.92% |
stars-small.png | 1.50KB | 1.51KB | 0.00% |
dbut.png | 13.46KB | 6.06KB | ▼ 55.01% |