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.25MB] [CPU: ▼0.23ms] Passed 4 tests
A check of server-side resources used by EZ Ajax Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 48.22 ▲9.98 |
Dashboard /wp-admin | 3.55 ▲0.24 | 52.17 ▼2.35 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 54.20 ▲4.56 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 97.21 ▼10.46 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 40.80 ▲7.32 |
Add New /wp-admin/post-new.php?post_type=ezas_search_forms | 3.50 | 45.30 |
Settings /wp-admin/edit.php?post_type=ezas_search_forms&page=ezas-settings | 3.46 | 39.54 |
All Search Forms /wp-admin/edit.php?post_type=ezas_search_forms | 3.51 | 37.43 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_ez_ajax_search_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EZ Ajax Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.39 ▲0.06 | 1.79 ▲0.02 | 40.50 ▼5.71 |
Dashboard /wp-admin | 2,244 ▲67 | 5.80 ▲0.29 | 95.21 ▲2.72 | 41.66 ▼6.35 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.31 ▲0.31 | 39.78 ▲2.55 | 38.51 ▲4.35 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.53 ▼0.21 | 607.07 ▼18.00 | 35.62 ▼22.08 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.33 ▲0.13 | 93.51 ▼9.27 | 45.73 ▲1.86 |
Add New /wp-admin/post-new.php?post_type=ezas_search_forms | 2,007 | 2.76 | 49.61 | 52.55 |
Settings /wp-admin/edit.php?post_type=ezas_search_forms&page=ezas-settings | 1,930 | 3.09 | 73.71 | 44.50 |
All Search Forms /wp-admin/edit.php?post_type=ezas_search_forms | 1,094 | 2.25 | 33.92 | 27.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_ez_ajax_search_widget
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: ajax search form, product search, ajax search, search form, woocommerce search...
ez-ajax-search/ezas.php 85% from 13 tests
Analyzing the main PHP file in "EZ Ajax Search" version 1.0.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ez-ajax-search.php" instead of "ezas.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 339 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,893 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 312 | 254 | 1,236 |
PO File | 1 | 128 | 274 | 278 |
CSS | 3 | 2 | 11 | 162 |
LESS | 1 | 29 | 12 | 148 |
JavaScript | 3 | 22 | 9 | 69 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 31 | 88.57% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
assets/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.72KB | 1.83KB | ▼ 67.99% |
assets/css/images/ui-bg_flat_10_000000_40x100.png | 0.24KB | 0.08KB | ▼ 64.34% |