Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.96ms] Passed 4 tests
Server-side resources used by Ajax Product Search for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.50 ▼0.28 |
Dashboard /wp-admin | 3.39 ▲0.08 | 41.01 ▼15.89 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.71 ▼2.87 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 72.45 ▼16.81 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.03 ▲0.54 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ajax Product Search for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.25 ▼1.12 | 1.72 ▼0.05 | 39.05 ▼5.15 |
Dashboard /wp-admin | 2,212 ▲24 | 5.91 ▲0.01 | 98.54 ▼18.48 | 38.59 ▼8.84 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.02 ▼0.03 | 39.18 ▲3.88 | 37.75 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 18.34 ▲0.19 | 598.87 ▼11.32 | 51.99 ▲4.61 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.13 ▼0.16 | 97.89 ▼2.16 | 41.23 ▼3.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ajax-product-search-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ajax-product-search-for-woocommerce/ajax_search_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ajax-product-search-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ajax-product-search-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 30 tag instead of maximum 10
ajax-product-search-for-woocommerce/plugin.php 69% from 13 tests
The main PHP file in "Ajax Product Search for Woocommerce" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ajax-product-search-for-woocommerce.php" instead of "plugin.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "2.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,564 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 763 | 1,703 | 2,485 |
JavaScript | 1 | 53 | 4 | 79 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 42.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 5 | 4.76% |
▷ Public methods | 82 | 78.10% |
▷ Protected methods | 23 | 21.90% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
21 PNG files occupy 0.34MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/widget.png | 16.56KB | 5.14KB | ▼ 68.97% |
assets/images/search-options.png | 7.16KB | 4.17KB | ▼ 41.72% |
assets/images/search-by-sku.png | 7.13KB | 4.86KB | ▼ 31.84% |
assets/images/view-all.png | 113.44KB | 39.23KB | ▼ 65.42% |
assets/images/short-code.png | 1.03KB | 0.94KB | ▼ 8.70% |