Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.54MB] [CPU: ▼263.41ms] Passed 4 tests
Analyzing server-side resources used by WP Search Filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.06 ▲4.54 | 90.83 ▲40.31 |
Dashboard /wp-admin | 7.97 ▲4.56 | 72.51 ▲40.83 |
Posts /wp-admin/edit.php | 8.20 ▲4.56 | 75.17 ▲36.70 |
Add New Post /wp-admin/post-new.php | 11.48 ▲4.50 | 124.62 ▼1,156.38 |
Media Library /wp-admin/upload.php | 7.91 ▲4.61 | 52.09 ▲25.73 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 8.16 | 55.36 |
Server storage [IO: ▲9.85MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 850 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_gdpr |
fs_api_cache |
fs_accounts |
widget_wpsf_widget |
fs_active_plugins |
fs_debug_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Search Filter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,058 ▲304 | 21.36 ▲5.65 | 6.24 ▲0.55 | 2.27 ▼0.55 |
Dashboard /wp-admin | 3,181 ▲323 | 11.28 ▲5.10 | 205.60 ▲65.83 | 169.96 ▲5.65 |
Posts /wp-admin/edit.php | 3,016 ▲322 | 8.20 ▲4.97 | 140.10 ▲75.72 | 154.05 ▲13.88 |
Add New Post /wp-admin/post-new.php | 1,688 ▼68 | 17.12 ▲0.01 | 522.65 ▲120.88 | 157.18 ▼15.82 |
Media Library /wp-admin/upload.php | 1,793 ▲95 | 8.74 ▲3.17 | 171.60 ▲27.99 | 204.29 ▲8.52 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,752 | 7.95 | 132.51 | 127.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- fs_debug_mode
- fs_api_cache
- widget_wpsf_widget
- fs_accounts
- fs_active_plugins
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-search-filter/templates/wpsf-advanced-filter.php
- > /wp-content/plugins/wp-search-filter/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/wp-search-filter/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/wp-search-filter/freemius/templates/ajax-loader.php
- 226× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: view in wp-content/plugins/wp-search-filter/vendor/symfony/translation/Tests/fixtures/extractor/translation.html.php on line 2
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-search-filter/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Extractor\\ExtractorInterface' not found in wp-content/plugins/wp-search-filter/vendor/symfony/translation/Extractor/ChainExtractor.php:21
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/wp-search-filter/vendor/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Dumper\\DumperInterface' not found in wp-content/plugins/wp-search-filter/vendor/symfony/translation/Dumper/FileDumper.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Catalogue\\OperationInterface' not found in wp-content/plugins/wp-search-filter/vendor/symfony/translation/Catalogue/AbstractOperation.php:27
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/wp-search-filter/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-search-filter/vendor/symfony/translation/Tests/Dumper/PhpFileDumperTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wp-search-filter/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/wp-search-filter/vendor/htmlburger/carbon-fields/core/Service/Meta_Query_Service.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Interface) image not found
wp-search-filter/wp-search-filter.php 92% from 13 tests
The entry point to "WP Search Filter" version 0.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-search-filter/vendor/nesbot/carbon/bin/upgrade-carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 148 | 16,158 | 27,711 | 66,452 |
PHP | 461 | 11,753 | 27,899 | 49,984 |
PO File | 31 | 6,918 | 8,639 | 15,098 |
JSON | 17 | 0 | 0 | 14,964 |
XSD | 4 | 99 | 76 | 4,991 |
Sass | 28 | 399 | 77 | 2,515 |
CSS | 39 | 316 | 128 | 695 |
Markdown | 8 | 143 | 0 | 416 |
XML | 16 | 3 | 0 | 321 |
Qt Linguist | 1 | 0 | 0 | 10 |
YAML | 4 | 0 | 0 | 7 |
DOS Batch | 1 | 0 | 0 | 4 |
INI | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,360)
- Method cyclomatic complexity should be reduced to less than 100 (currently 157)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 157.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 282 | |
▷ Abstract classes | 19 | 6.74% |
▷ Concrete classes | 263 | 93.26% |
▷ Final classes | 2 | 0.76% |
Methods | 2,880 | |
▷ Static methods | 433 | 15.03% |
▷ Public methods | 2,263 | 78.58% |
▷ Protected methods | 246 | 8.54% |
▷ Private methods | 371 | 12.88% |
Functions | 263 | |
▷ Named functions | 165 | 62.74% |
▷ Anonymous functions | 98 | 37.26% |
Constants | 199 | |
▷ Global constants | 107 | 53.77% |
▷ Class constants | 92 | 46.23% |
▷ Public constants | 92 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/wp-search-filter.png | 9.16KB | 5.26KB | ▼ 42.58% |