Benchmarks
Plugin footprint 83% from 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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.02ms] Passed 4 tests
A check of server-side resources used by Woo Floating Minicart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.12 ▼7.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.83 ▼1.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.33 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 102.04 ▼5.14 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.75 ▲1.72 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Floating Minicart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.58 ▼0.14 | 1.64 ▼0.38 | 42.27 ▼2.05 |
Dashboard /wp-admin | 2,189 ▲12 | 5.59 ▼0.07 | 91.82 ▼9.14 | 41.75 ▼1.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.01 | 39.49 ▲1.13 | 37.86 ▲4.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▼0.21 | 603.63 ▼20.08 | 68.42 ▲12.42 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.02 | 101.93 ▼3.66 | 47.22 ▲2.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/woo-floating-minicart/aankha-woo-floating-minicart.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-floating-minicart/css/awfm-style-from-option.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: woocommerce addons, woo floating minicart, minicart, products, woocommerce...
woo-floating-minicart/aankha-woo-floating-minicart.php 92% from 13 tests
The primary PHP file in "Woo Floating Minicart" version 3.1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-floating-minicart.php" instead of "aankha-woo-floating-minicart.php")
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
No dangerous file extensions were detected1,414 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 655 |
PHP | 5 | 240 | 175 | 516 |
CSS | 2 | 22 | 23 | 234 |
JavaScript | 2 | 10 | 10 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 8 | 42.11% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/basketg.png | 2.30KB | 1.77KB | ▼ 23.06% |