Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.43ms] Passed 4 tests
An overview of server-side resources used by WCF Replace & Remove Cart Button for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.62 ▼5.39 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.03 ▲1.20 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 75.73 ▲27.69 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.74 ▼8.36 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 42.72 ▲6.84 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WCF Replace & Remove Cart Button for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.48 ▲0.11 | 2.80 ▲1.04 | 38.33 ▼6.58 |
Dashboard /wp-admin | 2,212 ▲35 | 5.82 ▲0.28 | 96.05 ▼5.31 | 32.02 ▼14.36 |
Posts /wp-admin/edit.php | 2,120 ▲23 | 2.47 ▲0.51 | 38.71 ▲2.31 | 37.27 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,696 ▲164 | 22.91 ▼0.20 | 684.45 ▲16.73 | 35.00 ▼24.55 |
Media Library /wp-admin/upload.php | 1,484 ▲81 | 4.42 ▲0.32 | 110.27 ▲5.54 | 46.66 ▲1.77 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wcf-replace-remove-cart-button-for-woocommerce/enquiry_form.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: product_title in wp-content/plugins/wcf-replace-remove-cart-button-for-woocommerce/enquiry_form.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wcf-replace-remove-cart-button-for-woocommerce/option_main.php:52
- > PHP Notice
Undefined variable: id in wp-content/plugins/wcf-replace-remove-cart-button-for-woocommerce/enquiry_form.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcf-replace-remove-cart-button-for-woocommerce/wcf_replace_remove_cart_button.php:26
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
4 plugin tags: replace cart, remove cart, woocommerce, enquiry button
wcf-replace-remove-cart-button-for-woocommerce/wcf_replace_remove_cart_button.php 92% from 13 tests
The main PHP file in "WCF Replace & Remove Cart Button for WooCommerce" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wcf-replace-remove-cart-button-for-woocommerce.php" instead of "wcf_replace_remove_cart_button.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
No dangerous file extensions were detected243 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 121 | 44 | 241 |
CSS | 1 | 0 | 6 | 1 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin