Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.00ms] Passed 4 tests
An overview of server-side resources used by ACL Floating Cart for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 35.13 ▲12.37 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.93 ▲6.77 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 35.49 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 78.94 ▼576.51 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 30.44 ▼7.41 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by ACL Floating Cart for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.88 ▲0.26 | 8.80 ▼2.29 | 45.09 ▼2.42 |
Dashboard /wp-admin | 2,967 ▲33 | 6.08 ▲0.02 | 133.01 ▼7.48 | 106.24 ▼6.57 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.71 ▼0.01 | 57.68 ▼13.63 | 88.93 ▼5.85 |
Add New Post /wp-admin/post-new.php | 1,872 ▼1,705 | 19.11 ▲4.30 | 374.85 ▼120.36 | 113.15 ▼22.69 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▼0.00 | 140.35 ▼5.34 | 117.70 ▲1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acl-floating-cart-for-woocommerce/includes/admin/focawo-info-page.php:8
- > PHP Notice
Trying to get property 'cart' of non-object in wp-content/plugins/acl-floating-cart-for-woocommerce/templates/template1/cart.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_cart() on null in wp-content/plugins/acl-floating-cart-for-woocommerce/templates/template1/cart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acl-floating-cart-for-woocommerce/includes/admin/focawo-addons.php:8
- > PHP Notice
Trying to get property 'cart' of non-object in wp-content/plugins/acl-floating-cart-for-woocommerce/templates/template2/cart.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_cart() on null in wp-content/plugins/acl-floating-cart-for-woocommerce/templates/template2/cart.php:3
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: instant shopping cart, floating cart, drawer cart, woo floating cart, floating cart for woocommerce
acl-floating-cart-for-woocommerce/acl-floating-cart.php 85% from 13 tests
The main PHP script in "ACL Floating Cart for WooCommerce" version 0.9 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("acl-floating-cart-for-woocommerce.php" instead of "acl-floating-cart.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,424 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 219 | 421 | 1,103 |
CSS | 3 | 20 | 10 | 713 |
Sass | 6 | 95 | 5 | 518 |
JavaScript | 5 | 21 | 9 | 90 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 44 | 97.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.22% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cart-icon.png | 2.60KB | 1.53KB | ▼ 41.14% |
assets/images/close-icon.png | 2.68KB | 1.58KB | ▼ 40.95% |