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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.04MB] [CPU: ▼296.69ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Post Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 57.39 ▼0.18 |
Dashboard /wp-admin | 3.51 ▲0.10 | 35.94 ▲0.29 |
Posts /wp-admin/edit.php | 3.27 ▼0.37 | 22.40 ▼15.68 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 97.31 ▼1,166.15 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 25.92 ▼4.75 |
Views /wp-admin/admin.php?page=aps-views | 3.36 | 23.12 |
FAQ /wp-admin/admin.php?page=aps-faq | 3.36 | 24.14 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Post Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.83 ▲0.06 | 6.27 ▲0.05 | 2.44 ▼0.32 |
Dashboard /wp-admin | 2,933 ▲72 | 6.16 ▼0.05 | 117.66 ▼21.11 | 176.65 ▲7.81 |
Posts /wp-admin/edit.php | 3,279 ▲588 | 3.37 ▲0.13 | 75.29 ▲10.87 | 158.47 ▲12.84 |
Add New Post /wp-admin/post-new.php | 1,928 ▲168 | 16.93 ▼5.68 | 472.31 ▲35.02 | 157.95 ▼1.28 |
Media Library /wp-admin/upload.php | 1,733 ▲35 | 5.49 ▼0.04 | 144.45 ▲0.91 | 207.09 ▲17.57 |
Views /wp-admin/admin.php?page=aps-views | 1,386 | 2.58 | 56.76 | 117.12 |
FAQ /wp-admin/admin.php?page=aps-faq | 1,084 | 2.36 | 62.34 | 140.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=aps-views
- > User deprecated in wp-includes/functions.php+5600
WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.
- > GET request to /wp-admin/admin.php?page=aps-views
- > Notice in wp-content/plugins/advanced-post-search/advanced-post-search.php+150
Undefined index: aps-action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aps-views
- > Notice in wp-content/plugins/advanced-post-search/advanced-post-search.php+191
Undefined variable: checked
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aps-views
- > Notice in wp-content/plugins/advanced-post-search/advanced-post-search.php+201
Undefined index: post
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aps-views
- > Notice in wp-content/plugins/advanced-post-search/advanced-post-search.php+201
Trying to access array offset on value of type null
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aps-views
- > Notice in wp-content/plugins/advanced-post-search/advanced-post-search.php+201
Undefined index: page
SRP 50% 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
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'AdvancedPostSearch\\WP\\Field' not found in wp-content/plugins/advanced-post-search/core/wp/field/daterange.php:8
- > PHP Fatal error
Uncaught Error: Class 'AdvancedPostSearch\\WP\\Field' not found in wp-content/plugins/advanced-post-search/core/wp/field/select.php:8
- > PHP Fatal error
Uncaught Error: Class 'AdvancedPostSearch\\Field' not found in wp-content/plugins/advanced-post-search/core/wp/field.php:10
- > PHP Fatal error
Uncaught Error: Class 'AdvancedPostSearch\\WP\\Field' not found in wp-content/plugins/advanced-post-search/core/wp/field/text.php:8
- > PHP Fatal error
Uncaught Error: Class 'AdvancedPostSearch\\FieldGroup' not found in wp-content/plugins/advanced-post-search/core/wp/fieldgroup.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-post-search/advanced-post-search.php:71
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 96% 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: acf, advanced post search, custom post search, acf search, custom field...
advanced-post-search/advanced-post-search.php 92% from 13 tests
This is the main PHP file of "Advanced Post Search" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected900 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 114 | 524 | 611 |
CSS | 1 | 8 | 0 | 122 |
PO File | 1 | 36 | 37 | 121 |
JavaScript | 1 | 0 | 1 | 46 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 3 | 37.50% |
▷ Concrete classes | 5 | 62.50% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 4 | 7.41% |
▷ Public methods | 45 | 83.33% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 8 | 14.81% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin