Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼307.50ms] Passed 4 tests
An overview of server-side resources used by YITH WooCommerce Ajax Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 67.78 ▼2.02 |
Dashboard /wp-admin | 3.43 ▲0.02 | 35.24 ▼9.01 |
Posts /wp-admin/edit.php | 3.67 ▲0.02 | 45.58 ▼6.39 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 113.07 ▼1,212.59 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 33.80 ▼1.68 |
Server storage [IO: ▲3.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 284 new files
Database: no new tables, 1 new option
New WordPress options |
---|
yit_recently_activated |
Browser metrics Passed 4 tests
YITH WooCommerce Ajax Search: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲113 | 15.91 ▲0.39 | 10.14 ▲0.04 | 3.78 ▼0.02 |
Dashboard /wp-admin | 2,968 ▲49 | 6.43 ▲0.00 | 184.60 ▼47.05 | 197.79 ▼28.43 |
Posts /wp-admin/edit.php | 2,730 ▲6 | 3.44 ▲0.02 | 86.29 ▼4.06 | 173.04 ▼24.41 |
Add New Post /wp-admin/post-new.php | 1,749 ▲61 | 18.54 ▲2.66 | 679.65 ▲64.19 | 211.82 ▲1.47 |
Media Library /wp-admin/upload.php | 1,740 ▲10 | 5.68 ▼0.02 | 208.53 ▲0.26 | 245.23 ▼18.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- yit_recently_activated
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/yith-woocommerce-ajax-search/templates/admin/premium.php:238
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (50 tag instead of maximum 10)
yith-woocommerce-ajax-search/init.php 77% from 13 tests
The main PHP script in "YITH WooCommerce Ajax Search" version 1.18.0 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.7" instead of "6.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yith-woocommerce-ajax-search.php" instead of "init.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 410 characters long)
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
There were no executable files found in this plugin34,754 lines of code in 215 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 2,314 | 4,919 | 12,733 |
JavaScript | 47 | 1,496 | 872 | 10,061 |
CSS | 17 | 1,284 | 238 | 6,589 |
SVG | 4 | 0 | 1 | 2,704 |
PO File | 6 | 1,085 | 1,496 | 2,626 |
XML | 2 | 11 | 9 | 41 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 34.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 339 | |
▷ Static methods | 49 | 14.45% |
▷ Public methods | 286 | 84.37% |
▷ Protected methods | 35 | 10.32% |
▷ Private methods | 18 | 5.31% |
Functions | 124 | |
▷ Named functions | 120 | 96.77% |
▷ Anonymous functions | 4 | 3.23% |
Constants | 15 | |
▷ Global constants | 14 | 93.33% |
▷ Class constants | 1 | 6.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.09KB | 0.14KB | 0.00% |
assets/images/number-three.png | 1.91KB | 0.67KB | ▼ 64.72% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/images/02.png | 117.83KB | 43.84KB | ▼ 62.80% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_222222_256x240.png | 3.69KB | 4.18KB | 0.00% |