Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼139.26ms] Passed 4 tests
Server-side resources used by Ajax WP Query Search Filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.17 | 46.19 ▲13.31 |
Dashboard /wp-admin | 3.23 ▲0.18 | 43.67 ▼3.47 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 43.58 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 92.57 ▼553.35 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 36.14 ▲0.50 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ajax WP Query Search Filter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.20 ▲0.59 | 7.82 ▲0.29 | 46.13 ▼8.76 |
Dashboard /wp-admin | 2,987 ▲56 | 5.87 ▼0.05 | 159.64 ▲16.82 | 104.74 ▲0.47 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.70 ▲0.01 | 64.70 ▲2.32 | 104.62 ▲13.11 |
Add New Post /wp-admin/post-new.php | 1,685 ▲13 | 18.76 ▼0.15 | 364.81 ▼6.88 | 115.08 ▲4.97 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.01 ▼0.02 | 150.50 ▲3.39 | 124.73 ▲5.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ajax-wp-query-search-filter/admin/add-new.php
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-wp-query-search-filter/admin/fields/add_taxo_form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ajax-wp-query-search-filter/admin/fields/taxonomy.php:1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ajax-wp-query-search-filter/classes/list-table-class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ajax-wp-query-search-filter/admin/fields/meta_field.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-wp-query-search-filter/admin/fields/add_cmf_form.php:4
- > PHP Notice
Undefined index: taxo in wp-content/plugins/ajax-wp-query-search-filter/admin/addTaxoAjax.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ajax-wp-query-search-filter/admin/fields/post_type.php:1
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ajax-wp-query-search-filter/classes/list-table-class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/ajax-wp-query-search-filter/admin/addTaxoAjax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ajax-wp-query-search-filter/admin/fields/misc.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Ajax WP Query Search Filter setting page 1), #2 (Ajax WP Query Search Filter setting page 3), #4 (Ajax WP Query Search Filter setting page 4), #5 (Ajax WP Query Search Filter search form in the content and sidebar)
ajax-wp-query-search-filter/ajaxwpqf.php 92% from 13 tests
"Ajax WP Query Search Filter" version 1.0.7'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:
- Main file name: The principal plugin file should be the same as the plugin slug ("ajax-wp-query-search-filter.php" instead of "ajaxwpqf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,791 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 285 | 47 | 1,336 |
PO File | 1 | 96 | 132 | 207 |
JavaScript | 2 | 40 | 6 | 166 |
CSS | 2 | 5 | 11 | 82 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 5.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 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
8 PNG files occupy 0.32MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 51.97KB | 17.91KB | ▼ 65.54% |
classes/scripts/default.png | 51.97KB | 17.91KB | ▼ 65.54% |
screenshot-3.png | 61.87KB | 21.14KB | ▼ 65.82% |
admin/scripts/images/plus-icon.png | 1.65KB | 1.32KB | ▼ 19.76% |
screenshot-1.png | 42.09KB | 15.31KB | ▼ 63.62% |