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.06MB] [CPU: ▼8.89ms] Passed 4 tests
An overview of server-side resources used by Ajax WooSearch
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.91 ▲2.56 |
Dashboard /wp-admin | 3.38 ▲0.03 | 44.17 ▼15.34 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.35 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.56 ▼17.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.72 ▲0.49 |
Server storage [IO: ▲2.22MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
woos_wp_search |
woos_version |
can_compress_scripts |
woos_setting_data |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax WooSearch
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲235 | 13.55 ▼1.00 | 8.24 ▲6.67 | 38.61 ▼3.69 |
Dashboard /wp-admin | 2,301 ▲109 | 4.87 ▼0.19 | 106.03 ▼13.63 | 38.31 ▼13.59 |
Posts /wp-admin/edit.php | 2,172 ▲86 | 2.03 ▲0.01 | 37.08 ▲0.56 | 32.45 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 18.36 ▲0.85 | 599.97 ▼73.10 | 54.44 ▲3.00 |
Media Library /wp-admin/upload.php | 1,477 ▲86 | 4.23 ▲0.01 | 95.21 ▲1.43 | 41.47 ▲0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- woos_wp_search
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ajax-woosearch/woo-search.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-woosearch/core/Helper/WOOSCommonHelper.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-woosearch/core/Helper/WOOSCommonHelper.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ajax-woosearch/views/setting_view.php:33
- > PHP Fatal error
Uncaught Error: Class 'WOOS\\Common\\WOOSBaseController' not found in wp-content/plugins/ajax-woosearch/core/Common/WOOSAdminController.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid plugin version format
- Donate link: Invalid url: ""
ajax-woosearch/woo-search.php 85% from 13 tests
This is the main PHP file of "Ajax WooSearch" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ajax-woosearch.php" instead of "woo-search.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin10,299 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 560 | 30 | 5,744 |
SVG | 2 | 0 | 0 | 2,676 |
PHP | 27 | 228 | 502 | 1,504 |
JavaScript | 5 | 23 | 45 | 205 |
JSON | 3 | 0 | 0 | 156 |
Sass | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 11.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 77 | |
▷ Static methods | 19 | 24.68% |
▷ Public methods | 74 | 96.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.90% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 8 | |
▷ Global constants | 8 | 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
8 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/donate_payment_4.png | 3.06KB | 1.72KB | ▼ 43.85% |
images/donate_payment_5.png | 2.16KB | 1.31KB | ▼ 39.55% |
images/donate_payment_3.png | 2.97KB | 1.67KB | ▼ 43.63% |
images/donate_payment_1.png | 3.04KB | 1.64KB | ▼ 45.93% |
screenshot/screenshot-2.png | 45.08KB | 16.87KB | ▼ 62.58% |