Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼291.90ms] Passed 4 tests
A check of server-side resources used by Add to Cart Button Labels for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 57.74 ▲7.19 |
Dashboard /wp-admin | 3.41 ▲0.01 | 35.09 ▼0.64 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 41.01 ▲3.64 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.81 ▼1,169.35 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.34 ▼1.25 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add to Cart Button Labels for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲53 | 15.83 ▲0.16 | 6.28 ▲0.12 | 3.03 ▲1.01 |
Dashboard /wp-admin | 2,888 ▲27 | 6.05 ▼0.11 | 119.27 ▼18.62 | 159.12 ▼2.04 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.23 ▼0.01 | 66.51 ▲0.83 | 142.52 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,711 ▼41 | 21.48 ▼0.09 | 420.04 ▼69.69 | 158.04 ▲2.86 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▲0.00 | 145.65 ▲0.44 | 185.58 ▲1.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: add to cart, woocommerce, woo commerce
add-to-cart-button-labels-for-woocommerce/add-to-cart-button-labels-for-woocommerce.php Passed 13 tests
The principal PHP file in "Add to Cart Button Labels for WooCommerce" v. 2.0.0 is loaded by WordPress automatically on each request
66 characters long description:
Customize "Add to cart" button labels in WooCommerce. Beautifully.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,195 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 188 | 622 | 1,195 |
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.56 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 69 | |
▷ Static methods | 1 | 1.45% |
▷ Public methods | 69 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin