Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.17ms] Passed 4 tests
A check of server-side resources used by Add To Cart Button Customizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.51 ▲1.40 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.60 ▼3.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.07 ▼1.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.68 ▼14.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.41 ▼1.94 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add To Cart Button Customizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.32 ▲0.18 | 1.70 ▼0.65 | 43.40 ▲1.29 |
Dashboard /wp-admin | 2,195 ▲17 | 5.55 ▼0.03 | 87.52 ▼25.20 | 41.63 ▼0.61 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.05 | 35.47 ▼3.75 | 33.80 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.20 ▲0.11 | 631.08 ▼66.61 | 54.95 ▼2.94 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.03 | 105.97 ▼7.28 | 43.50 ▼3.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7 in add-to-cart-button-customizer/assets to your readme.txt
add-to-cart-button-customizer/class-custom-add-to-cart-button-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Add To Cart Button Customizer" v. 2.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/languages.")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-to-cart-button-customizer.php" instead of "class-custom-add-to-cart-button-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,738 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 614 | 190 | 1,385 |
CSS | 2 | 148 | 1 | 1,063 |
PO File | 5 | 376 | 445 | 863 |
JavaScript | 2 | 171 | 53 | 422 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 94.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 11.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 1.57MB with 1.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot/Customize-Your-Add-to-Cart-Button-with-Icon-and-Styling-Options.png | 12.00KB | 0.00KB | ▼ 100.00% |
assets/128.png | 3.50KB | 1.67KB | ▼ 52.25% |
(invalid) screenshot/Show-Custom-Add-to-Cart-Button-on-Shop-Page.png | 160.72KB | 0.00KB | ▼ 100.00% |
(invalid) screenshot/Customize-Button-Appearance.png | 5.07KB | 0.00KB | ▼ 100.00% |
assets/banner-1544x500.png | 40.96KB | 19.96KB | ▼ 51.28% |