Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.09ms] Passed 4 tests
Server-side resources used by Ajax Product Search for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.33 ▼8.42 |
Dashboard /wp-admin | 3.34 ▼0.01 | 52.78 ▼15.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.22 ▼3.20 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.29 ▼4.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.87 ▼1.99 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Product Search for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.41 ▼0.94 | 9.03 ▲6.94 | 43.83 ▲1.44 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.01 | 87.44 ▼11.44 | 48.10 ▲5.30 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 33.00 ▼4.81 | 34.71 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.30 ▲0.17 | 629.33 ▼103.84 | 50.57 ▼8.31 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.01 | 99.22 ▼9.76 | 45.89 ▼2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-product-search/includes/wpbakery/vc_shortcodes.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ajax-product-search/functions.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: product search, ajax, woocommerce product search, ajax search, search...
ajax-product-search/ajax-product-search.php Passed 13 tests
The main PHP script in "Ajax Product Search for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
78 characters long description:
Ajax Product Search is a simple instant product search plugin for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin247 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 65 | 21 | 191 |
CSS | 1 | 7 | 0 | 47 |
JavaScript | 1 | 5 | 1 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 1 | 6.25% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin