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: ▼3.90ms] Passed 4 tests
This is a short check of server-side resources used by Ajax Product Filter for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.80 ▼2.11 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.89 ▼6.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.25 ▼1.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.63 ▼5.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.39 ▼1.40 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
phoe_Ajax_Product_Filter_value |
Browser metrics Passed 4 tests
A check of browser resources used by Ajax Product Filter for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,033 ▲276 | 14.76 ▲0.36 | 17.47 ▲15.45 | 40.07 ▼5.04 |
Dashboard /wp-admin | 2,206 ▲23 | 5.84 ▲0.88 | 108.31 ▼0.83 | 39.42 ▼2.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 38.43 ▼0.27 | 34.85 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.62 ▲0.53 | 672.71 ▼39.96 | 54.39 ▼5.97 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▼0.02 | 95.77 ▼7.62 | 41.27 ▼2.28 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- phoe_Ajax_Product_Filter_value
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ajax-product-filter-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ajax-product-filter-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ajax-product-filter-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 32 tag instead of maximum 10
ajax-product-filter-for-woocommerce/mainfilter.php 77% from 13 tests
The main file in "Ajax Product Filter for Woocommerce" v. 2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ajax-product-filter-for-woocommerce.php" instead of "mainfilter.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,577 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 1,981 | 1,699 | 3,577 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 46.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 5 | 4.27% |
▷ Public methods | 94 | 80.34% |
▷ Protected methods | 23 | 19.66% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.47MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/image-frame-even.png | 0.67KB | 0.62KB | ▼ 8.42% |
assets/images/display-type.png | 10.90KB | 4.31KB | ▼ 60.43% |
assets/images/button2.png | 3.58KB | 2.59KB | ▼ 27.61% |
assets/images/premium-btn.png | 5.72KB | 5.28KB | ▼ 7.69% |
assets/images/tags.png | 83.81KB | 25.40KB | ▼ 69.69% |