Benchmarks
Plugin footprint 65% 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: ▲0.07MB] [CPU: ▼10.24ms] Passed 4 tests
This is a short check of server-side resources used by Query Wrangler
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 43.16 ▲7.25 |
Dashboard /wp-admin | 3.38 ▲0.04 | 49.73 ▼13.49 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.94 ▼6.71 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 87.22 ▼16.26 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.65 ▼4.50 |
Add New /wp-admin/admin.php?page=qw-create | 3.31 | 36.83 |
Settings /wp-admin/admin.php?page=qw-settings | 3.34 | 38.90 |
Import /wp-admin/admin.php?page=qw-import | 3.31 | 36.62 |
Query Wrangler /wp-admin/admin.php?page=query-wrangler | 3.36 | 35.17 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 101 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_query_wrangler |
wp_query_override_terms |
New WordPress options |
---|
qw_edit_theme |
can_compress_scripts |
templatewrangler_version |
db_upgraded |
widget_theysaidso_widget |
qw_settings |
widget_recent-comments |
qw_live_preview |
widget_recent-posts |
widget_query-wrangler-widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Query Wrangler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.20 ▼0.08 | 1.67 ▲0.12 | 43.23 ▼1.82 |
Dashboard /wp-admin | 2,226 ▲46 | 5.49 ▼0.15 | 88.71 ▼1.50 | 39.15 ▼6.14 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 1.99 ▼0.01 | 35.22 ▼6.18 | 35.04 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,554 ▲17 | 23.55 ▲5.40 | 682.98 ▲50.27 | 52.82 ▼15.40 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.22 ▲0.13 | 103.40 ▲2.10 | 46.38 ▼0.04 |
Add New /wp-admin/admin.php?page=qw-create | 923 | 1.99 | 27.84 | 44.37 |
Settings /wp-admin/admin.php?page=qw-settings | 1,065 | 2.12 | 27.09 | 36.59 |
Import /wp-admin/admin.php?page=qw-import | 847 | 1.96 | 25.27 | 32.44 |
Query Wrangler /wp-admin/admin.php?page=query-wrangler | 985 | 2.17 | 24.91 | 27.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_query_wrangler
- wp_query_override_terms
- The uninstall procedure has failed, leaving 12 options in the database
- qw_live_preview
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- qw_plugin_version
- qw_edit_theme
- qw_settings
- theysaidso_admin_options
- templatewrangler_version
- widget_query-wrangler-widget
- ...
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
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/query-wrangler/templates/query-ordered_list.php
- > /wp-content/plugins/query-wrangler/templates/query-unformatted.php
- > /wp-content/plugins/query-wrangler/admin/templates/handler-filter.php
- > /wp-content/plugins/query-wrangler/templates/query-unordered_list.php
- > /wp-content/plugins/query-wrangler/admin/templates/page-admin-wrapper.php
- > /wp-content/plugins/query-wrangler/admin/editors/picnic/picnic-editor.php
- > /wp-content/plugins/query-wrangler/admin/templates/form-import.php
- > /wp-content/plugins/query-wrangler/templates/query-table.php
- > /wp-content/plugins/query-wrangler/templates/query-wrapper.php
- > /wp-content/plugins/query-wrangler/admin/templates/handler-sort.php
- 256× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: sorts in wp-content/plugins/query-wrangler/admin/editors/views/views-editor.php on line 142
- > PHP Notice
Undefined variable: basics in wp-content/plugins/query-wrangler/admin/editors/picnic/picnic-editor.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function qw_textarea() in wp-content/plugins/query-wrangler/admin/templates/handler-field.php:178
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/query-wrangler/includes/basics/display_title.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/query-wrangler/admin/editors/picnic/picnic-editor.php on line 259
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/query-wrangler/admin/templates/handler-filter.php on line 10
- > PHP Notice
Undefined variable: filter in wp-content/plugins/query-wrangler/admin/templates/handler-filter.php on line 38
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/query-wrangler/admin/editors/picnic/picnic-editor.php on line 192
- > PHP Notice
Undefined variable: basics in wp-content/plugins/query-wrangler/admin/editors/picnic/picnic-editor.php on line 193
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/query-wrangler/includes/overrides/tags.php:4
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Requires at least: Invalid version format
query-wrangler/query-wrangler.php Passed 13 tests
The main PHP script in "Query Wrangler" version 1.5.53 is automatically included on every request by WordPress
122 characters long description:
Query Wrangler provides an intuitive interface for creating complex WP queries as pages or widgets. Based on Drupal Views.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin9,041 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 83 | 1,364 | 2,310 | 7,624 |
JavaScript | 5 | 152 | 259 | 609 |
CSS | 3 | 95 | 0 | 474 |
Markdown | 4 | 70 | 0 | 334 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 291 | |
▷ Named functions | 289 | 99.31% |
▷ Anonymous functions | 2 | 0.69% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/handle2.png | 0.56KB | 0.54KB | ▼ 3.16% |
admin/images/white-grad.png | 0.21KB | 0.18KB | ▼ 12.38% |