Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼294.41ms] Passed 4 tests
Server-side resources used by Add to Cart Button Custom Text and Color
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▼0.02 | 52.67 ▲1.19 |
Dashboard /wp-admin | 3.45 ▲0.04 | 35.40 ▲2.20 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.56 ▲0.15 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 95.84 ▼1,178.54 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 23.64 ▼0.45 |
WooCommerce Buttons /wp-admin/admin.php?page=woocommerce_buttons | 3.27 | 23.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add to Cart Button Custom Text and Color: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,793 ▲51 | 16.59 ▲0.90 | 6.63 ▲0.16 | 2.10 ▲0.03 |
Dashboard /wp-admin | 2,922 ▲61 | 6.74 ▲0.62 | 121.66 ▼17.86 | 281.11 ▲119.35 |
Posts /wp-admin/edit.php | 2,718 ▲24 | 3.29 ▲0.05 | 72.09 ▲7.92 | 138.17 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,635 ▼117 | 19.79 ▼1.93 | 396.21 ▼64.64 | 170.04 ▲14.85 |
Media Library /wp-admin/upload.php | 1,725 ▲30 | 5.85 ▲0.33 | 127.25 ▼17.22 | 183.72 ▼1.24 |
WooCommerce Buttons /wp-admin/admin.php?page=woocommerce_buttons | 1,611 | 3.49 | 83.78 | 141.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woocommerce_buttons
- > Notice in wp-content/plugins/add-to-cart-button-custom-text-and-color/add-to-cart-button-custom-text-and-color.php+141
Trying to access array offset on value of type bool
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-to-cart-button-custom-text-and-color/add-to-cart-button-custom-text-and-color.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-to-cart-button-custom-text-and-color/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (The Admin screen for the plugin. screenshot-1.png) image not found
add-to-cart-button-custom-text-and-color/add-to-cart-button-custom-text-and-color.php 92% from 13 tests
"Add to Cart Button Custom Text and Color" version 1.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:
- Description: The description should be shorter than 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected200 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 29 | 187 |
CSS | 1 | 1 | 1 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected