Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.46ms] Passed 4 tests
Analyzing server-side resources used by Add to Cart Button Manipulation for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.34 ▼2.77 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.22 ▼13.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.29 ▼4.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.67 ▼25.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.11 ▼0.76 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Add to Cart Button Manipulation for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.41 ▼0.20 | 1.61 ▼0.11 | 36.75 ▼4.51 |
Dashboard /wp-admin | 2,192 ▲18 | 5.63 ▲0.05 | 91.83 ▲2.34 | 41.79 ▼1.39 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.02 | 41.78 ▲6.80 | 38.97 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 22.98 ▲4.72 | 655.72 ▲28.44 | 51.74 ▼23.86 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.18 ▲0.01 | 97.82 ▼11.22 | 44.04 ▼3.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/add-to-cart-button-manipulation-for-woocommerce/public/templates/single-product/wc_atcbm_available_text.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #1 is missing in add-to-cart-button-manipulation-for-woocommerce/assets to your readme.txt
add-to-cart-button-manipulation-for-woocommerce/wc-atcbm.php 69% from 13 tests
"Add to Cart Button Manipulation for WooCommerce" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-to-cart-button-manipulation-for-woocommerce.php" instead of "wc-atcbm.php")
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected565 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 242 | 570 | 465 |
CSS | 2 | 17 | 4 | 57 |
JavaScript | 6 | 14 | 37 | 43 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected