Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.14ms] Passed 4 tests
Analyzing server-side resources used by Advanced Post Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 45.57 ▲4.56 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.29 ▼2.53 |
Posts /wp-admin/edit.php | 3.13 ▼0.22 | 29.25 ▼19.64 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 97.40 ▼6.26 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.84 ▲3.87 |
FAQ /wp-admin/admin.php?page=aps-faq | 3.29 | 33.37 |
Views /wp-admin/admin.php?page=aps-views | 3.29 | 33.97 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Advanced Post Search: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.28 ▼0.38 | 1.64 ▼0.18 | 31.08 ▼12.83 |
Dashboard /wp-admin | 2,225 ▲45 | 5.62 ▼0.04 | 91.55 ▼2.23 | 39.82 ▼3.03 |
Posts /wp-admin/edit.php | 2,595 ▲492 | 2.51 ▲0.41 | 45.20 ▲5.54 | 45.32 ▲7.74 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 22.78 ▲4.66 | 682.48 ▲48.85 | 56.04 ▼3.35 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.35 ▲0.20 | 98.84 ▼6.89 | 42.07 ▼18.79 |
FAQ /wp-admin/admin.php?page=aps-faq | 856 | 1.99 | 28.49 | 36.89 |
Views /wp-admin/admin.php?page=aps-views | 1,056 | 2.17 | 24.56 | 28.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=aps-views
- > User deprecated in wp-includes/functions.php+5737
Function 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > 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
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/select.php:8
- > 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\\WP\\Field' not found in wp-content/plugins/advanced-post-search/core/wp/field/daterange.php:8
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: custom post search, custom, acf search, search form, advanced...
advanced-post-search/advanced-post-search.php 92% from 13 tests
"Advanced Post Search" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
This plugin's cyclomatic complexity and code structure detailed below
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