Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲2.62ms] Passed 4 tests
Server-side resources used by Filter Anything
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 48.18 ▲7.53 |
Dashboard /wp-admin | 3.83 ▲0.52 | 57.40 ▲5.48 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 58.35 ▲2.99 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 99.15 ▼5.53 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 45.17 ▲9.44 |
Filters /wp-admin/edit.php?post_type=wfa-filters | 3.80 | 47.25 |
Add New /wp-admin/post-new.php?post_type=wfa-filters | 3.93 | 64.18 |
Server storage [IO: ▲9.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 652 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Filter Anything: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,093 ▲332 | 18.16 ▲3.59 | 1.81 ▼0.02 | 46.93 ▲5.59 |
Dashboard /wp-admin | 2,496 ▲319 | 8.92 ▲3.26 | 172.22 ▲71.81 | 44.70 ▲6.83 |
Posts /wp-admin/edit.php | 2,430 ▲330 | 6.09 ▲4.07 | 86.36 ▲45.08 | 35.26 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,618 ▲81 | 19.82 ▲1.67 | 747.72 ▲81.14 | 43.16 ▼22.24 |
Media Library /wp-admin/upload.php | 1,564 ▲164 | 6.63 ▲2.41 | 112.34 ▲7.52 | 47.36 ▼0.82 |
Filters /wp-admin/edit.php?post_type=wfa-filters | 1,422 | 6.06 | 83.06 | 30.60 |
Add New /wp-admin/post-new.php?post_type=wfa-filters | 2,275 | 10.34 | 192.11 | 37.79 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/filter-anything/lib/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 236× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/filter-anything/lib/htmlburger/carbon-fields/templates/Container/user_meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/filter-anything/lib/composer/installers/src/Composer/Installers/OxidInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/filter-anything/lib/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/filter-anything/lib/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/filter-anything/lib/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/filter-anything/lib/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/filter-anything/lib/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function carbon_get_post_meta() in wp-content/plugins/filter-anything/templates/tp_filters.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/filter-anything/lib/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/filter-anything/lib/htmlburger/carbon-fields/core/Field/Sidebar_Field.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: user filter, filter results, filter, advance filters, directory...
filter-anything/filter-anything.php 85% from 13 tests
"Filter Anything" version 0.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin35,791 lines of code in 590 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 282 | 3,380 | 7,848 | 13,423 |
JavaScript | 180 | 5,276 | 8,584 | 13,383 |
CSS | 12 | 464 | 1,173 | 3,156 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 49 | 340 | 0 | 1,777 |
JSON | 8 | 0 | 0 | 951 |
Markdown | 26 | 312 | 0 | 718 |
YAML | 6 | 39 | 3 | 162 |
XML | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 238 | |
▷ Abstract classes | 12 | 5.04% |
▷ Concrete classes | 226 | 94.96% |
▷ Final classes | 1 | 0.44% |
Methods | 1,159 | |
▷ Static methods | 114 | 9.84% |
▷ Public methods | 922 | 79.55% |
▷ Protected methods | 202 | 17.43% |
▷ Private methods | 35 | 3.02% |
Functions | 115 | |
▷ Named functions | 26 | 22.61% |
▷ Anonymous functions | 89 | 77.39% |
Constants | 34 | |
▷ Global constants | 6 | 17.65% |
▷ Class constants | 28 | 82.35% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin