Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.99MB] [CPU: ▼321.62ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Post Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.25 | 56.23 ▲4.25 |
Dashboard /wp-admin | 3.34 ▼0.07 | 18.20 ▼15.99 |
Posts /wp-admin/edit.php | 3.34 ▼0.30 | 21.77 ▼16.10 |
Add New Post /wp-admin/post-new.php | 3.34 ▼3.63 | 18.55 ▼1,247.53 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 17.64 ▼6.86 |
Advanced Post Search /wp-admin/edit.php?post_type=acps | 3.35 | 18.80 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_acps_widget |
acps_options |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Custom Post Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,833 ▲79 | 15.94 ▲0.24 | 6.01 ▼1.08 | 2.33 ▼0.33 |
Dashboard /wp-admin | 2,926 ▲71 | 6.11 ▼0.12 | 118.67 ▼13.40 | 157.64 ▼4.38 |
Posts /wp-admin/edit.php | 2,722 ▲28 | 3.24 ▲0.01 | 63.84 ▼3.07 | 146.40 ▲6.09 |
Add New Post /wp-admin/post-new.php | 1,796 ▲135 | 22.26 ▲6.03 | 434.84 ▲17.43 | 154.01 ▼5.58 |
Media Library /wp-admin/upload.php | 1,729 ▲31 | 5.51 ▼0.03 | 142.32 ▲1.54 | 186.08 ▲0.80 |
Advanced Post Search /wp-admin/edit.php?post_type=acps | 1,801 | 5.64 | 122.69 | 160.67 |
Settings /wp-admin/acps_settings_page.php | 26 | 0.94 | 0.04 | 21.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5316
add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- This plugin does not fully uninstall, leaving 2 options in the database
- acps_options
- widget_acps_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=acps
- > User deprecated in wp-includes/functions.php+5316
add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
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 fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > 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
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_forms.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: 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 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 add_action() in wp-content/plugins/advanced-custom-post-search/core/controllers/search_forms.php:9
- > 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
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that 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
The main PHP file in "Advanced Custom Post Search" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file 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
Success! There were no dangerous files found in this plugin2,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
No complexity issues detected
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/creare-logo.png | 5.46KB | 2.50KB | ▼ 54.18% |
images/spud.png | 36.74KB | 13.75KB | ▼ 62.57% |
images/arrow.png | 1.08KB | 0.19KB | ▼ 82.56% |
images/spud2.png | 46.91KB | 15.31KB | ▼ 67.36% |
images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |