Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▲4.03ms] Passed 4 tests
An overview of server-side resources used by SearchWP Live Ajax Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 43.99 ▲4.92 |
Dashboard /wp-admin | 3.75 ▲0.44 | 51.94 ▼0.46 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 49.85 ▲5.80 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 97.94 ▲5.86 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 40.26 ▲6.28 |
Live Search /wp-admin/admin.php?page=searchwp-live-search | 3.58 | 39.15 |
Server storage [IO: ▲1.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_searchwp_live_search |
widget_recent-comments |
searchwp_live_search_version |
searchwp_lite_admin_notifications |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
searchwp_live_search_last_update |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SearchWP Live Ajax Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,089 ▲354 | 14.17 ▼0.23 | 12.30 ▲10.63 | 45.01 ▲5.85 |
Dashboard /wp-admin | 2,273 ▲85 | 4.89 ▼0.95 | 104.14 ▼13.95 | 42.30 ▼1.48 |
Posts /wp-admin/edit.php | 2,154 ▲62 | 2.07 ▼0.05 | 37.51 ▼2.43 | 32.50 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,560 ▲41 | 18.35 ▼4.84 | 629.31 ▼90.50 | 54.24 ▼0.41 |
Media Library /wp-admin/upload.php | 1,450 ▲68 | 4.28 ▲0.06 | 97.78 ▼0.95 | 41.45 ▼0.19 |
Live Search /wp-admin/admin.php?page=searchwp-live-search | 1,240 | 2.10 | 26.67 | 65.78 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- searchwp_lite_admin_notifications
- can_compress_scripts
- widget_searchwp_live_search
- theysaidso_admin_options
- searchwp_live_search_last_update
- widget_recent-comments
- db_upgraded
- searchwp_live_search_version
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: search, live, ajax
searchwp-live-ajax-search/searchwp-live-ajax-search.php Passed 13 tests
The main PHP file in "SearchWP Live Ajax Search" ver. 1.7.6 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Enhance your search forms with live search, powered by SearchWP (if installed)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,307 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 21 | 687 | 1,352 | 2,095 |
JavaScript | 11 | 375 | 324 | 1,623 |
JSON | 2 | 0 | 0 | 809 |
CSS | 5 | 133 | 14 | 766 |
PO File | 6 | 97 | 123 | 322 |
Markdown | 1 | 16 | 0 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.57 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 38 | 29.23% |
▷ Public methods | 74 | 56.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 56 | 43.08% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 5 | 62.50% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 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 |
screenshot-4.png | 28.98KB | 11.49KB | ▼ 60.35% |
banner-772x250.png | 6.73KB | 3.79KB | ▼ 43.67% |
screenshot-2.png | 21.04KB | 9.70KB | ▼ 53.90% |
screenshot-1.png | 6.65KB | 3.74KB | ▼ 43.78% |
screenshot-3.png | 16.13KB | 8.79KB | ▼ 45.48% |