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.00MB] [CPU: ▼1.82ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Product Filters by iFlair
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.23 ▼2.13 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.15 ▼3.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.49 ▲3.78 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.88 ▼0.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.63 ▼1.03 |
Server storage [IO: ▲4.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Product Filters by iFlair
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.45 ▼0.10 | 1.98 ▲0.18 | 40.87 ▲0.67 |
Dashboard /wp-admin | 2,195 ▲17 | 5.64 ▼0.08 | 91.29 ▼6.81 | 37.61 ▼4.98 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.01 | 40.28 ▲3.73 | 36.19 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 23.10 ▼0.08 | 640.27 ▼20.65 | 66.43 ▲9.04 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.04 | 94.10 ▼3.77 | 43.89 ▼1.41 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: woocommerce product filter, woocommerce filter, woocommerce filter plugins, e-commerce filter, shop filter...
iflair-woo-product-filters/iflair-woo-product-filters.php Passed 13 tests
Analyzing the main PHP file in "WooCommerce Product Filters by iFlair" version 1.1
65 characters long description:
Following plugin is used to apply filter on WooCommerce products.
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
Good job! No executable or dangerous file extensions detected10,790 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 13 | 0 | 5 | 5,695 |
PHP | 39 | 851 | 1,189 | 3,023 |
JavaScript | 4 | 376 | 52 | 1,148 |
CSS | 6 | 17 | 50 | 924 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 22.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 71 | |
▷ Static methods | 3 | 4.23% |
▷ Public methods | 68 | 95.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.23% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
16 PNG files occupy 0.35MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/p-search.png | 7.71KB | 8.47KB | 0.00% |
assets/images/down-arrow.png | 0.31KB | 0.30KB | ▼ 2.19% |
public/images/maximize.png | 5.29KB | 3.09KB | ▼ 41.51% |
assets/screenshot-1.png | 101.30KB | 27.46KB | ▼ 72.89% |
public/images/bucket.png | 7.96KB | 4.66KB | ▼ 41.46% |