Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.73ms] Passed 4 tests
This is a short check of server-side resources used by Advance WP Query Search Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.11 ▼0.29 |
Dashboard /wp-admin | 3.47 ▲0.16 | 49.45 ▼1.26 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.73 ▼1.75 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 84.15 ▼15.61 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.38 ▲3.01 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
awqsf_spt |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Advance WP Query Search Filter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲102 | 13.66 ▼0.52 | 9.28 ▲6.88 | 44.66 ▼1.68 |
Dashboard /wp-admin | 2,211 ▲37 | 5.64 ▲0.04 | 93.28 ▼0.05 | 39.21 ▼1.44 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.15 ▲0.20 | 40.44 ▲0.85 | 35.04 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.00 ▼0.31 | 675.66 ▲58.58 | 57.06 ▲7.49 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.18 ▲0.03 | 101.93 ▲0.53 | 40.19 ▼5.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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advance-wp-query-search-filter/html/add-new-awqsf.php
- > /wp-content/plugins/advance-wp-query-search-filter/html/cmfcheckbox.php
- > /wp-content/plugins/advance-wp-query-search-filter/html/taxdropdown.php
- > /wp-content/plugins/advance-wp-query-search-filter/html/cmfradio.php
- > /wp-content/plugins/advance-wp-query-search-filter/html/cmfdropdown.php
- 87× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: i in wp-content/plugins/advance-wp-query-search-filter/html/cmfcheckbox.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advance-wp-query-search-filter/html/taxdropdown.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advance-wp-query-search-filter/html/cmfdropdown.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advance-wp-query-search-filter/html/cmfdropdown.php on line 6
- > PHP Notice
Undefined variable: count in wp-content/plugins/advance-wp-query-search-filter/html/taxcheckbox.php on line 3
- > PHP Notice
Undefined variable: i in wp-content/plugins/advance-wp-query-search-filter/html/cmfcheckbox.php on line 6
- > PHP Notice
Undefined variable: c in wp-content/plugins/advance-wp-query-search-filter/html/taxdropdown.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advance-wp-query-search-filter/modules/add_cmf_form.php:4
- > PHP Notice
Undefined variable: i in wp-content/plugins/advance-wp-query-search-filter/html/cmfdropdown.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/advance-wp-query-search-filter/includes/class-awqsf-form-table.php on line 3
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: advanced search, taxonoy, custom post type, taxonomy meta field filter, search filter...
advance-wp-query-search-filter/advance-wp-sf2.php 92% from 13 tests
"Advance WP Query Search Filter" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advance-wp-query-search-filter.php" instead of "advance-wp-sf2.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,584 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 281 | 48 | 1,257 |
PO File | 1 | 90 | 123 | 193 |
JavaScript | 2 | 23 | 5 | 112 |
CSS | 2 | 5 | 15 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 57.94KB | 25.22KB | ▼ 56.47% |
screenshot-2.png | 51.31KB | 23.02KB | ▼ 55.13% |
screenshot-1.png | 97.83KB | 40.06KB | ▼ 59.05% |