Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.23ms] Passed 4 tests
An overview of server-side resources used by RND Product Filters with ajax for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 41.48 ▲1.92 |
Dashboard /wp-admin | 3.44 ▲0.14 | 51.31 ▲0.75 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 51.40 ▼0.74 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.17 ▼10.40 |
Media Library /wp-admin/upload.php | 3.37 ▲0.13 | 40.05 ▲1.46 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for RND Product Filters with ajax for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.14 ▲0.05 | 1.93 ▲0.08 | 42.95 ▼2.53 |
Dashboard /wp-admin | 2,198 ▲23 | 5.48 ▼0.08 | 86.92 ▼14.92 | 39.73 ▼2.61 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.09 ▲0.12 | 37.05 ▼0.63 | 34.48 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.26 ▲5.15 | 644.20 ▲10.82 | 58.89 ▼12.21 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.05 | 98.34 ▼10.71 | 41.23 ▼7.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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 fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rnd-wc-product-filters-with-ajax/ajax/filters.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/rnd-wc-product-filters-with-ajax/rnd-ajax-product-filters.php:38
- > PHP Warning
sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/rnd-wc-product-filters-with-ajax/ajax/templates/active-filter.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rnd-wc-product-filters-with-ajax/ajax/widgets/widget-category-filter.php:6
- > PHP Notice
Undefined variable: active_filters in wp-content/plugins/rnd-wc-product-filters-with-ajax/ajax/templates/active-filter.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: woocommerce ajax product search, woocommerce ajax product reviews, woocommerce ajax pagination, wordpress plugin, woocommerce ajax advance search...
rnd-wc-product-filters-with-ajax/rnd-ajax-product-filters.php 85% from 13 tests
The principal PHP file in "RND Product Filters with ajax for WooCommerce" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("rnd-wc-product-filters-with-ajax.php" instead of "rnd-ajax-product-filters.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 detected3,975 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 434 | 438 | 1,633 |
JavaScript | 5 | 189 | 82 | 874 |
SVG | 1 | 0 | 0 | 640 |
CSS | 4 | 53 | 10 | 544 |
PO File | 2 | 116 | 156 | 284 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 60.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 47 | |
▷ Static methods | 7 | 14.89% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ajax/assets/css/select2.png | 0.60KB | 0.99KB | 0.00% |
ajax/assets/css/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |