Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/woo-ajax-search/includes/widgets.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; woosearch_ajax_widget has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼53.62ms] Passed 4 tests
Server-side resources used by Woo AJAX Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 4.31 ▼32.43 |
Dashboard /wp-admin | 2.13 ▼1.21 | 5.51 ▼55.65 |
Posts /wp-admin/edit.php | 2.13 ▼1.22 | 6.90 ▼41.72 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.75 | 5.32 ▼84.67 |
Media Library /wp-admin/upload.php | 2.13 ▼1.09 | 5.66 ▼25.15 |
Woo AJAX Search /wp-admin/options-general.php?page=woosearch | 2.13 | 4.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_woosearch_ajax_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo AJAX Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲144 | 13.63 ▼0.74 | 5.30 ▲3.37 | 37.36 ▼3.95 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼0.03 | 112.57 ▲6.21 | 42.50 ▲0.92 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.00 | 36.82 ▲1.09 | 31.65 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 22.68 ▼0.50 | 667.75 ▼17.06 | 63.67 ▲8.30 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.30 ▲0.08 | 100.16 ▲4.18 | 45.33 ▼0.06 |
Woo AJAX Search /wp-admin/options-general.php?page=woosearch | 828 | 2.03 | 26.76 | 27.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/woo-ajax-search/includes/widgets.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; woosearch_ajax_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_woosearch_ajax_widget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=woosearch
- > Deprecated in wp-content/plugins/woo-ajax-search/includes/widgets.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; woosearch_ajax_widget has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-ajax-search/includes/shortcode.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-ajax-search/includes/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/woo-ajax-search/woo-ajax-search.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-ajax-search/includes/widgets.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== woo-ajax-search ===
)
woo-ajax-search/woo-ajax-search.php Passed 13 tests
This is the main PHP file of "Woo AJAX Search" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
WooCommerce Products AJAX Searching Plugins
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin432 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 52 | 28 | 256 |
CSS | 1 | 1 | 1 | 132 |
JavaScript | 1 | 11 | 6 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/search.png | 0.56KB | 0.58KB | 0.00% |
assets/img/angle-down.png | 0.24KB | 0.24KB | 0.00% |
assets/img/play-circle.png | 0.74KB | 0.76KB | 0.00% |
assets/img/reload.png | 0.49KB | 0.50KB | 0.00% |