Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.75MB] [CPU: ▼30.58ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Post Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.65 ▲2.49 |
Dashboard /wp-admin | 3.19 ▼0.11 | 26.59 ▼22.49 |
Posts /wp-admin/edit.php | 3.19 ▼0.16 | 28.51 ▼17.50 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.69 | 26.63 ▼69.90 |
Media Library /wp-admin/upload.php | 3.19 ▼0.04 | 25.61 ▼12.44 |
Advanced Post Search /wp-admin/edit.php?post_type=acps | 3.19 | 26.95 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
acps_options |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_acps_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Custom Post Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.30 ▼1.15 | 1.65 ▼0.12 | 42.45 ▼2.69 |
Dashboard /wp-admin | 2,233 ▲51 | 5.79 ▼0.02 | 105.09 ▼6.41 | 41.42 ▼2.27 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.03 ▼0.01 | 34.04 ▼1.20 | 38.41 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 23.28 ▼0.05 | 716.94 ▲38.06 | 59.48 ▲3.85 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.24 ▲0.03 | 104.66 ▼8.95 | 46.68 ▼0.47 |
Advanced Post Search /wp-admin/edit.php?post_type=acps | 1,394 | 4.39 | 95.47 | 47.64 |
Settings /wp-admin/acps_settings_page.php | 26 | 0.44 | 0.09 | 14.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- acps_options
- db_upgraded
- widget_acps_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=acps
- > User deprecated in wp-includes/functions.php+5453
Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-post-search/core/controllers/search_forms.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-custom-post-search/core/shortcodes/acps_shortcodes.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/advanced-custom-post-search/core/metaboxes/meta_box_form.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-post-search/core/controllers/search_form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/advanced-custom-post-search/templates/acps-results.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-custom-post-search/core/widgets/acps_widgets.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/advanced-custom-post-search/templates/acps-results_loop.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-post-search/core/controllers/search_forms.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-custom-post-search/core/controllers/acps_settings_page.php:203
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/acps_settings_page.php
- > Network (severe)
wp-admin/acps_settings_page.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== advanced-custom-post-search ===
)
advanced-custom-post-search/acps.php 92% from 13 tests
"Advanced Custom Post Search" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-custom-post-search.php" instead of "acps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,470 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 431 | 331 | 1,707 |
CSS | 3 | 12 | 40 | 679 |
JavaScript | 2 | 23 | 5 | 84 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 28.43 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/spud.png | 36.74KB | 13.75KB | ▼ 62.57% |
images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
images/creare-logo.png | 5.46KB | 2.50KB | ▼ 54.18% |
images/spud2.png | 46.91KB | 15.31KB | ▼ 67.36% |