Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.83ms] Passed 4 tests
An overview of server-side resources used by Floating Product Category for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 25.25 ▼19.83 |
Dashboard /wp-admin | 3.31 ▲0.01 | 66.19 ▲17.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.29 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.11 ▼15.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.91 ▲2.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Floating Product Category for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 13.55 ▼0.81 | 4.32 ▲2.06 | 42.80 ▼2.02 |
Dashboard /wp-admin | 2,206 ▲21 | 5.79 ▲0.89 | 117.20 ▲10.70 | 49.17 ▲6.48 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.97 ▼0.05 | 36.56 ▼4.15 | 33.23 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,537 ▼2 | 23.14 ▲0.06 | 685.96 ▲81.54 | 49.28 ▼6.48 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.04 | 109.97 ▲10.63 | 48.07 ▲5.08 |
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 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-product-category-for-woocommerce/includes/floating-customizer-styles.php:41
- > PHP Notice
Undefined variable: prod_categories_query in wp-content/plugins/floating-product-category-for-woocommerce/view/product-cat.template-simple.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_terms() on null in wp-content/plugins/floating-product-category-for-woocommerce/view/product-cat.template-simple.php:2
- > PHP Notice
Undefined variable: prod_categories_query in wp-content/plugins/floating-product-category-for-woocommerce/view/product-cat.template-image.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_terms() on null in wp-content/plugins/floating-product-category-for-woocommerce/view/product-cat.template-image.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-product-category-for-woocommerce/includes/floating-customizer-styles.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% 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
5 plugin tags: product category, popup, floating, woocommerce, sticky
floating-product-category-for-woocommerce/floating-product-category.php 69% from 13 tests
The principal PHP file in "Floating Product Category for WooCommerce" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("floating-product-category-for-woocommerce.php" instead of "floating-product-category.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 195 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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 plugin471 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 64 | 50 | 283 |
CSS | 1 | 40 | 1 | 158 |
JavaScript | 1 | 6 | 6 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin