Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼4.22ms] Passed 4 tests
An overview of server-side resources used by Easy Filtering
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.60 ▲4.20 |
Dashboard /wp-admin | 3.62 ▲0.28 | 52.51 ▼14.70 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 53.77 ▲4.42 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 88.11 ▼9.10 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 39.62 ▲2.71 |
Edit CARd /wp-admin/admin.php?page=easy-filtering-edit-card | 3.52 | 34.71 |
Create Card /wp-admin/admin.php?page=easy-filtering-card-creator | 3.52 | 39.32 |
Edit Filter /wp-admin/admin.php?page=easy-filtering-edit-filter | 3.52 | 36.11 |
Cards /wp-admin/admin.php?page=easy-filtering-view-cards | 3.52 | 38.10 |
Create Filter /wp-admin/admin.php?page=easy-filtering-create-filter | 3.55 | 36.42 |
How works /wp-admin/admin.php?page=easy-filtering-help | 3.53 | 32.74 |
Filters /wp-admin/admin.php?page=easy-filtering-view-filters | 3.52 | 36.71 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_easy_filtering_filters |
wp_easy_filtering_card |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Filtering
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.02 ▼0.76 | 15.99 ▲14.29 | 38.15 ▼6.03 |
Dashboard /wp-admin | 2,241 ▲64 | 5.69 ▲0.05 | 91.06 ▼3.02 | 43.27 ▲4.93 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.04 ▲0.05 | 43.44 ▲7.54 | 38.82 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.13 ▼0.02 | 649.80 ▼32.67 | 57.91 ▲3.84 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.25 ▲0.09 | 101.34 ▲0.57 | 43.55 ▼1.95 |
Edit CARd /wp-admin/admin.php?page=easy-filtering-edit-card | 834 | 2.04 | 26.90 | 21.20 |
Create Card /wp-admin/admin.php?page=easy-filtering-card-creator | 908 | 2.21 | 37.65 | 27.47 |
Edit Filter /wp-admin/admin.php?page=easy-filtering-edit-filter | 837 | 2.00 | 26.50 | 25.16 |
Cards /wp-admin/admin.php?page=easy-filtering-view-cards | 978 | 2.08 | 27.63 | 26.13 |
Create Filter /wp-admin/admin.php?page=easy-filtering-create-filter | 1,170 | 2.04 | 26.47 | 26.74 |
How works /wp-admin/admin.php?page=easy-filtering-help | 1,018 | 2.07 | 26.95 | 29.37 |
Filters /wp-admin/admin.php?page=easy-filtering-view-filters | 1,005 | 2.08 | 26.92 | 26.90 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-filtering/public/views/filter_prices.php
- > /wp-content/plugins/easy-filtering/public/views/filter-page.php
- > /wp-content/plugins/easy-filtering/admin/views/easy_filtering_get_taxonomies.php
- 34× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-filtering/admin/class-filter-list-table.php on line 4
- > PHP Notice
Undefined variable: postem_ipsum_taxonomies in wp-content/plugins/easy-filtering/admin/views/easy_filtering_get_taxonomies.php on line 3
- > PHP Notice
Undefined variable: max_price in wp-content/plugins/easy-filtering/public/views/filter_prices.php on line 11
- > PHP Notice
Undefined variable: filter_mode in wp-content/plugins/easy-filtering/public/views/filter-page.php on line 90
- > PHP Notice
Undefined variable: filter_order_frontend in wp-content/plugins/easy-filtering/public/views/filter-page.php on line 15
- > PHP Notice
Undefined variable: filter_post_type in wp-content/plugins/easy-filtering/public/views/filter-page.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-filtering/admin/class-card-list-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-filtering/admin/class-filter-list-table.php on line 4
- > PHP Notice
Undefined variable: filter_taxonomy in wp-content/plugins/easy-filtering/public/views/filter-page.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-filtering/admin/class-card-list-table.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in easy-filtering/assets to your readme.txt
easy-filtering/easy-filtering.php Passed 13 tests
"Easy Filtering" version 2.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
24 characters long description:
Filter contents via ajax
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected5,133 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,242 | 236 | 2,896 |
JavaScript | 5 | 513 | 123 | 1,152 |
CSS | 3 | 133 | 151 | 1,045 |
Markdown | 1 | 13 | 0 | 35 |
SVG | 1 | 0 | 1 | 5 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 59.25 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 2 | |
▷ Global constants | 2 | 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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/loading.png | 21.15KB | 8.81KB | ▼ 58.35% |
public/views/img/no-image.png | 5.38KB | 3.49KB | ▼ 35.13% |
admin/views/images/placeholder.png | 4.67KB | 1.86KB | ▼ 60.19% |