Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.66ms] Passed 4 tests
Server-side resources used by Ajax Side Cart Button for WooCommerce eshop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.99 ▲2.74 |
Dashboard /wp-admin | 3.37 ▲0.07 | 58.86 ▲3.76 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 56.06 ▲5.02 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.77 ▼5.47 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.81 ▲1.60 |
Custom Cart /wp-admin/admin.php?page=custom-woocommerce-cart-button | 3.27 | 39.11 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
woocommerce_enable_ajax_add_to_cart |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Side Cart Button for WooCommerce eshop
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,117 ▲356 | 15.19 ▲0.84 | 5.94 ▲4.10 | 44.45 ▲0.49 |
Dashboard /wp-admin | 2,440 ▲263 | 6.35 ▲0.81 | 123.06 ▲18.87 | 92.92 ▲49.27 |
Posts /wp-admin/edit.php | 2,365 ▲268 | 3.51 ▲1.48 | 53.96 ▲18.70 | 79.34 ▲46.49 |
Add New Post /wp-admin/post-new.php | 1,637 ▲101 | 23.16 ▼0.16 | 662.83 ▼21.13 | 37.13 ▼17.53 |
Media Library /wp-admin/upload.php | 1,499 ▲99 | 4.30 ▲0.08 | 86.15 ▼25.40 | 77.16 ▲30.20 |
Custom Cart /wp-admin/admin.php?page=custom-woocommerce-cart-button | 1,358 | 3.17 | 43.84 | 64.07 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- woocommerce_enable_ajax_add_to_cart
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/custom-woo-cart-button/css/frontend.php:164
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=custom-woocommerce-cart-button
- > Javascript (severe) in unknown
/wp-content/plugins/custom-woo-cart-button/js/backend.js 52:40 Uncaught TypeError: $(...).tabs is not a function
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
5 plugin tags: floating cart, popup, boost sales, ajax, cart
custom-woo-cart-button/custom-woo-cart-button.php 92% from 13 tests
The main PHP file in "Ajax Side Cart Button for WooCommerce eshop" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,723 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 247 | 22 | 708 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 2 | 71 | 3 | 188 |
CSS | 2 | 19 | 6 | 119 |
PO File | 1 | 3 | 5 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/customWooCommerceButton.png | 25.00KB | 11.64KB | ▼ 53.43% |
images/custom-woocommerce-cart-button-pro.png | 31.00KB | 13.54KB | ▼ 56.30% |
images/extendwp.png | 5.75KB | 3.37KB | ▼ 41.46% |