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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.73ms] Passed 4 tests
Server-side resources used by Custom Buttons for WooCommerce - Add To Cart Button for Product Types
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.25 ▼0.91 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.74 ▼3.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.12 ▼2.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.50 ▲0.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.44 ▲0.85 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Buttons for WooCommerce - Add To Cart Button for Product Types
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.40 ▲0.01 | 1.64 ▼0.24 | 41.98 ▼3.92 |
Dashboard /wp-admin | 2,212 ▲23 | 5.83 ▲0.88 | 100.55 ▼25.14 | 38.32 ▼5.62 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.04 | 39.58 ▼4.44 | 38.70 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 23.44 ▲0.34 | 644.84 ▼57.55 | 52.91 ▼4.93 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.32 ▲0.09 | 96.93 ▼9.17 | 41.87 ▼2.36 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: add to cart, product buttons, change add to cart, buttons, custom buttons...
button-customizer-for-woocommerce/button-customizer.php 85% from 13 tests
The main PHP script in "Custom Buttons for WooCommerce - Add To Cart Button for Product Types" version 1.2.3 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.4" instead of "3.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("button-customizer-for-woocommerce.php" instead of "button-customizer.php")
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
There were no executable files found in this plugin736 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 211 | 268 | 736 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
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
No PNG images were found in this plugin