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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.73ms] Passed 4 tests
This is a short check of server-side resources used by Easy Filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.64 ▼1.58 |
Dashboard /wp-admin | 3.33 ▲0.02 | 42.96 ▼5.64 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 44.13 ▲1.40 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.03 ▼23.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.14 ▼0.25 |
Easy Filter /wp-admin/options-general.php?page=ez-filter | 3.28 | 30.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Easy Filter: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.12 ▼1.16 | 5.14 ▲3.16 | 39.41 ▼0.42 |
Dashboard /wp-admin | 2,210 ▲21 | 5.83 ▲0.88 | 93.92 ▼17.23 | 39.49 ▼2.04 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.02 | 35.57 ▲1.77 | 32.71 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.52 ▼4.73 | 591.13 ▼72.65 | 49.87 ▼13.42 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.05 | 96.94 ▲3.78 | 41.78 ▲1.25 |
Easy Filter /wp-admin/options-general.php?page=ez-filter | 951 | 1.74 | 28.09 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-filter
- > Notice in wp-content/plugins/easy-filter/Views/option.php+116
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-filter
- > Notice in wp-content/plugins/easy-filter/Views/option.php+116
Trying to access array offset on value of type null
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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-filter/Views/option.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function EzFilter\\Classes\\register_deactivation_hook() in wp-content/plugins/easy-filter/Classes/EzFilter.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: post type filter, taxonomy filter, post type, admin post filter, filter...
easy-filter/ez-filter.php 92% from 13 tests
Analyzing the main PHP file in "Easy Filter" version 1.10
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-filter.php" instead of "ez-filter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected787 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 150 | 18 | 683 |
JavaScript | 2 | 15 | 14 | 84 |
CSS | 2 | 5 | 5 | 20 |
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.49 |
Average class complexity | 17.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 33 | 67.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 32.65% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
assets/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
assets/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |