Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.14ms] Passed 4 tests
Analyzing server-side resources used by Floating Buttons for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.66 ▼0.39 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.20 ▼3.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.61 ▼1.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.09 ▼14.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.34 ▲1.76 |
Support /wp-admin/admin.php?page=qc_jarvis_supports | 3.01 | 22.21 |
Server storage [IO: ▲6.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 245 new files
Database: no new tables, 45 new options
New WordPress options |
---|
position_x |
user_from_title |
jarvis_icon |
cart_total_price |
can_compress_scripts |
jarvis_mode |
db_upgraded |
sell_notification_off_mobile |
cart_no_product_found |
notification_delay_one |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Floating Buttons for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.33 ▼0.39 | 1.68 ▲0.13 | 40.16 ▲1.34 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.08 | 82.64 ▼5.77 | 38.91 ▼2.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 33.19 ▼1.88 | 32.47 ▼6.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.72 ▲0.62 | 655.88 ▼11.26 | 64.25 ▲4.49 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 97.66 ▲1.18 | 42.50 ▼1.85 |
Support /wp-admin/admin.php?page=qc_jarvis_supports | 28 | 0.42 | 0.09 | 3.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 45 options in the database
- jarvis_form_animation
- last_sold_from
- last_sold_just_purchased
- last_sold_product_title
- global_fake_sale_delay_time
- cart_total_price
- fake_sale_notification_sound
- jarvis_support_form_title
- global_notification_delay_time
- position_y
- ...
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
Good news, no errors were detected
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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shop-assistant-for-woocommerce-jarvis/qc-support-promo-page/class-qc-support-promo-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shop-assistant-for-woocommerce-jarvis/class-qc-free-plugin-upgrade-notice.php:34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=qc_jarvis_supports
- > Network (severe)
wp-admin/admin.php?page=qc_jarvis_supports - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
shop-assistant-for-woocommerce-jarvis/jarvis-woo.php 85% from 13 tests
The main PHP script in "Floating Buttons for WooCommerce" version 2.8.5 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("shop-assistant-for-woocommerce-jarvis.php" instead of "jarvis-woo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected58,343 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 27 | 2,187 | 419 | 30,057 |
JavaScript | 71 | 4,285 | 3,057 | 20,557 |
PHP | 16 | 1,118 | 501 | 4,752 |
SVG | 4 | 0 | 0 | 2,977 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 37.60 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 7.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 8 | 13.33% |
▷ Public methods | 59 | 98.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.67% |
Functions | 29 | |
▷ Named functions | 29 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
73 PNG files occupy 1.11MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
qc-support-promo-page/images/icon-pack/service-08.png | 2.54KB | 1.42KB | ▼ 44.28% |
images/widget-reset.png | 1.09KB | 0.36KB | ▼ 66.67% |
qc-support-promo-page/images/express-shop.png | 41.74KB | 15.12KB | ▼ 63.78% |
qc-support-promo-page/images/highlight.png | 16.86KB | 6.57KB | ▼ 61.02% |
images/icon-7.png | 3.19KB | 1.46KB | ▼ 54.21% |