Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.50MB] [CPU: ▲5.78ms] Passed 4 tests
An overview of server-side resources used by MDTF - Meta Data and Taxonomies Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.50 | 58.17 ▲16.40 |
Dashboard /wp-admin | 4.80 ▲1.49 | 55.26 ▲0.56 |
Posts /wp-admin/edit.php | 4.91 ▲1.55 | 62.70 ▲12.78 |
Add New Post /wp-admin/post-new.php | 7.41 ▲1.52 | 97.98 ▼2.64 |
Media Library /wp-admin/upload.php | 4.72 ▲1.49 | 46.61 ▲12.42 |
Add New Filter Section /wp-admin/post-new.php?post_type=meta_data_filter | 4.78 | 57.19 |
MDTF Constant links /wp-admin/edit.php?post_type=mdf_const_links | 4.76 | 49.74 |
MDTF Settings /wp-admin/edit.php?post_type=meta_data_filter&page=mdf_settings | 5.17 | 64.82 |
MDTF Sort panels /wp-admin/edit.php?post_type=mdf_woo_sort | 4.76 | 68.15 |
MDTF Categories /wp-admin/edit-tags.php?taxonomy=meta_data_filter_cat&post_type=meta_data_filter | 4.71 | 44.08 |
MDTF Shortcodes /wp-admin/edit.php?post_type=mdf_shortcodes | 4.76 | 51.52 |
MDTF Filters /wp-admin/edit.php?post_type=meta_data_filter | 4.77 | 47.62 |
Server storage [IO: ▲5.44MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Illegal file modification found: 1 file (0.77KB) outside of "wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/template-meta-data-filter.php
Filesystem: 436 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_mdf_stat_tmp |
wp_mdf_query_cache |
wp_mdf_stat_buffer |
New WordPress options |
---|
widget_recent-posts |
widget_metadatafilter_taxsearch |
widget_theysaidso_widget |
theysaidso_admin_options |
meta_data_filter_settings |
can_compress_scripts |
widget_recent-comments |
meta_data_filter_was_activated |
widget_metadatafilter_search |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for MDTF - Meta Data and Taxonomies Filter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,039 ▲277 | 14.26 ▼0.48 | 13.68 ▲11.90 | 43.51 ▲0.15 |
Dashboard /wp-admin | 2,278 ▲100 | 5.80 ▲0.07 | 95.64 ▼15.72 | 44.99 ▲2.05 |
Posts /wp-admin/edit.php | 2,196 ▲93 | 2.34 ▲0.38 | 41.82 ▼2.43 | 35.66 ▼4.11 |
Add New Post /wp-admin/post-new.php | 6,297 ▲4,771 | 26.23 ▲3.14 | 917.49 ▲305.01 | 53.69 ▲1.75 |
Media Library /wp-admin/upload.php | 1,492 ▲92 | 4.39 ▲0.16 | 96.78 ▲1.99 | 41.76 ▲2.37 |
Add New Filter Section /wp-admin/post-new.php?post_type=meta_data_filter | 1,854 | 2.96 | 75.68 | 53.83 |
MDTF Constant links /wp-admin/edit.php?post_type=mdf_const_links | 1,157 | 2.48 | 34.12 | 28.84 |
MDTF Settings /wp-admin/edit.php?post_type=meta_data_filter&page=mdf_settings | 4,761 | 14.30 | 405.42 | 91.85 |
MDTF Sort panels /wp-admin/edit.php?post_type=mdf_woo_sort | 1,154 | 2.46 | 37.57 | 28.24 |
MDTF Categories /wp-admin/edit-tags.php?taxonomy=meta_data_filter_cat&post_type=meta_data_filter | 1,371 | 2.05 | 34.20 | 29.61 |
MDTF Shortcodes /wp-admin/edit.php?post_type=mdf_shortcodes | 1,170 | 2.28 | 33.90 | 28.82 |
MDTF Filters /wp-admin/edit.php?post_type=meta_data_filter | 1,208 | 2.44 | 35.76 | 31.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_mdf_stat_tmp
- wp_mdf_stat_buffer
- Zombie WordPress options were found after uninstall: 10 options
- theysaidso_admin_options
- widget_metadatafilter_search
- widget_recent-posts
- meta_data_filter_was_activated
- widget_metadatafilter_taxsearch
- widget_theysaidso_widget
- meta_data_filter_settings
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=meta_data_filter&page=mdf_settings
- > Notice in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/settings.php+1163
Undefined index: custom_css_code
SRP 0% 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
Almost there! Just fix the following items
- 43× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/sort_panel.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/shortcode/do_mdf_search_form.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/const_links/metabox.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/shortcode/search_panel_terms.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/sort_panel/metabox.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/classes/shortcodes.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/widgets/search_form.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/page/draw_front_page_items.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/const_links.php
- > /wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/views/data_meta_box.php
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MetaDataFilterCore' not found in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdtf-pagination/tw-pagination.php:23
- > PHP Notice
Undefined variable: filter_post_blocks in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/show_terms_meta_names.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'MetaDataFilterCore' not found in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/js/js_vars.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/woo_email_template.php on line 3
- > PHP Notice
Undefined variable: subscr in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/mdf_email_template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/unsubscr_template.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/mdf_email_template.php on line 4
- > PHP Notice
Undefined variable: subscr in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/woo_email_template.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/show_terms_meta_names.php on line 43
- > PHP Notice
Undefined variable: subscr in wp-content/plugins/wp-meta-data-filter-and-taxonomy-filter/ext/mdf_posts_messenger/views/woo_email_template.php on line 4
- > PHP Fatal error
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 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: ajax filter, filter, meta filter, taxonomies filter, woocommerce...
wp-meta-data-filter-and-taxonomy-filter/index.php 77% from 13 tests
This is the main PHP file of "MDTF - Meta Data and Taxonomies Filter" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-meta-data-filter-and-taxonomy-filter.php" instead of "index.php")
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WP 4.1.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin54,255 lines of code in 253 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 2,112 | 879 | 14,066 |
CSS | 98 | 1,162 | 876 | 12,369 |
JavaScript | 46 | 2,568 | 2,711 | 11,639 |
PO File | 4 | 2,408 | 4,130 | 5,412 |
HTML | 7 | 171 | 3 | 5,300 |
SVG | 13 | 1 | 1 | 3,142 |
Stylus | 1 | 254 | 6 | 931 |
Markdown | 6 | 233 | 0 | 666 |
Sass | 13 | 132 | 69 | 454 |
JSON | 8 | 0 | 0 | 276 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 64.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 359.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 3 | 13.64% |
Methods | 286 | |
▷ Static methods | 201 | 70.28% |
▷ Public methods | 267 | 93.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 6.64% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
137 PNG files occupy 1.07MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
js/icheck/skins/flat/grey@2x.png | 3.14KB | 2.77KB | ▼ 11.72% |
js/tooltipster/doc/images/browser-firefox.png | 9.13KB | 3.80KB | ▼ 58.35% |
js/tooltipster/doc/images/browser-safari.png | 12.14KB | 4.50KB | ▼ 62.90% |
js/icheck/skins/flat/grey.png | 1.48KB | 1.65KB | 0.00% |