Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▼8.04ms] Passed 4 tests
An overview of server-side resources used by Floating Cart and Menu Cart for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 36.44 ▼5.82 |
Dashboard /wp-admin | 4.05 ▲0.71 | 48.34 ▼15.00 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 45.87 ▼2.20 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.69 | 93.51 ▼9.13 |
Media Library /wp-admin/upload.php | 3.91 ▲0.69 | 41.13 ▲5.00 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 3.92 | 34.85 |
AIO Woo Cart /wp-admin/admin.php?page=taiowc | 3.91 | 39.58 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Floating Cart and Menu Cart for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.29 ▼0.05 | 1.60 ▼0.08 | 40.46 ▼6.54 |
Dashboard /wp-admin | 2,205 ▲34 | 5.57 ▼0.05 | 90.00 ▼0.84 | 89.26 ▲43.18 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.96 ▼0.05 | 35.61 ▼3.26 | 32.77 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,701 ▲165 | 22.09 ▼0.98 | 668.88 ▲44.77 | 53.97 ▲5.11 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.19 ▼0.01 | 102.97 ▲6.42 | 72.38 ▲32.24 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 1,252 | 2.23 | 28.21 | 49.03 |
AIO Woo Cart /wp-admin/admin.php?page=taiowc | 983 | 3.10 | 42.11 | 58.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/th-option/tab-html.php:15
- > PHP Warning
include_once(THEMEHUNK_PDIRth-option/header.php): failed to open stream: No such file or directory in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/admin-menu.php:4
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/th-option/sidebar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/plugins-list.php:4
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Warning
Use of undefined constant THEMEHUNK_PDIR - assumed 'THEMEHUNK_PDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/th-all-in-one-woo-cart/inc/themehunk-menu/th-option/header.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woocommerce cart, woocommerce, floating cart, ajax cart, cart...
th-all-in-one-woo-cart/th-all-in-one-woo-cart.php 85% from 13 tests
The main PHP file in "Floating Cart and Menu Cart for WooCommerce" ver. 1.1.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 367 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected8,155 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 704 | 1,026 | 2,604 |
PHP | 15 | 1,069 | 128 | 2,574 |
CSS | 6 | 254 | 72 | 2,437 |
PO File | 1 | 241 | 246 | 540 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 34.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 92 | |
▷ Static methods | 4 | 4.35% |
▷ Public methods | 84 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.70% |
Functions | 12 | |
▷ Named functions | 9 | 75.00% |
▷ Anonymous functions | 3 | 25.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
16 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-6.png | 7.41KB | 4.65KB | ▼ 37.23% |
inc/themehunk-menu/th-option/assets/images/icon.png | 14.32KB | 7.45KB | ▼ 47.95% |
images/icon-4.png | 3.23KB | 2.05KB | ▼ 36.45% |
images/th-logo.png | 3.35KB | 1.55KB | ▼ 53.63% |
images/fixed-cart.png | 1.72KB | 0.90KB | ▼ 47.99% |