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: ▼5.28ms] Passed 4 tests
This is a short check of server-side resources used by RaCar Clear Cart for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.82 ▼4.26 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.65 ▼1.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.76 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.36 ▼11.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.68 ▼3.97 |
Server storage [IO: ▲0.08MB] [DB: ▲0.33MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for RaCar Clear Cart for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 14.74 ▲0.46 | 1.78 ▼0.01 | 45.60 ▼4.11 |
Dashboard /wp-admin | 2,218 ▲30 | 5.85 ▼0.03 | 108.23 ▲4.02 | 42.20 ▼2.12 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.05 | 39.83 ▲5.12 | 36.41 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.60 ▲6.03 | 665.92 ▼4.84 | 64.59 ▲4.18 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.20 ▼0.12 | 99.85 ▲0.48 | 44.34 ▲1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/racar-clear-cart-for-woocommerce/includes/views/class-racar-clear-cart-button.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: clear cart, woocommerce, empty cart, woo commerce, cart
racar-clear-cart-for-woocommerce/racar-clear-cart-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "RaCar Clear Cart for WooCommerce" version 2.1.2
102 characters long description:
This plugin adds a convenient button to empty the shopping cart. Clear the entire cart with one click.
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
Success! There were no dangerous files found in this plugin869 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 156 | 202 | 657 |
PO File | 2 | 72 | 94 | 192 |
CSS | 2 | 1 | 8 | 15 |
JavaScript | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 8 | 23.53% |
▷ Public methods | 33 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.94% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin