Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.32MB] [CPU: ▲4.98ms] Passed 4 tests
Analyzing server-side resources used by Ajax Search Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.39 | 47.00 ▲6.85 |
Dashboard /wp-admin | 4.66 ▲1.36 | 59.47 ▲9.67 |
Posts /wp-admin/edit.php | 4.71 ▲1.36 | 59.51 ▲13.46 |
Add New Post /wp-admin/post-new.php | 7.18 ▲1.29 | 89.91 ▼10.08 |
Media Library /wp-admin/upload.php | 4.51 ▲1.29 | 51.87 ▲20.30 |
Help & Support /wp-admin/admin.php?page=asl_help_and_support | 4.90 | 46.15 |
Compatibility Settings /wp-admin/admin.php?page=asl_compatibility | 4.91 | 46.76 |
Analytics Integration /wp-admin/admin.php?page=asl_analytics | 5.02 | 47.75 |
Go PRO /wp-admin/admin.php?page=asl_go_pro | 4.89 | 46.70 |
Ajax Search Lite /wp-admin/admin.php?page=asl_settings | 5.04 | 52.31 |
Performance options /wp-admin/admin.php?page=asl_performance_options | 4.90 | 73.32 |
Maintenance /wp-admin/admin.php?page=asl_maintenance | 4.90 | 47.15 |
Server storage [IO: ▲2.28MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 290 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
asl_debug_data |
asl_options |
widget_recent-posts |
asl_version |
theysaidso_admin_options |
db_upgraded |
widget_ajaxsearchlitewidget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Ajax Search Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 13.36 ▼1.04 | 3.35 ▲1.70 | 35.58 ▼1.29 |
Dashboard /wp-admin | 2,242 ▲50 | 5.82 ▲0.92 | 110.87 ▲0.70 | 76.90 ▲32.10 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.03 ▲0.04 | 39.77 ▲4.88 | 37.83 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,706 ▲173 | 22.11 ▼1.22 | 636.81 ▼14.29 | 54.68 ▼18.00 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.22 ▼0.16 | 95.17 ▼9.01 | 46.35 ▲2.45 |
Help & Support /wp-admin/admin.php?page=asl_help_and_support | 1,276 | 4.33 | 101.09 | 72.58 |
Compatibility Settings /wp-admin/admin.php?page=asl_compatibility | 1,424 | 3.76 | 65.90 | 85.66 |
Analytics Integration /wp-admin/admin.php?page=asl_analytics | 1,727 | 3.92 | 54.03 | 103.37 |
Go PRO /wp-admin/admin.php?page=asl_go_pro | 1,147 | 3.78 | 46.97 | 89.51 |
Ajax Search Lite /wp-admin/admin.php?page=asl_settings | 6,757 | 4.65 | 280.28 | 222.91 |
Performance options /wp-admin/admin.php?page=asl_performance_options | 1,222 | 3.76 | 50.36 | 97.17 |
Maintenance /wp-admin/admin.php?page=asl_maintenance | 1,270 | 3.95 | 50.39 | 91.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- theysaidso_admin_options
- asl_version
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- asl_options
- widget_recent-posts
- asl_debug_data
- widget_ajaxsearchlitewidget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 59× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/ajax-search-lite/includes/classes/search/class-asl-search.php
- > /wp-content/plugins/ajax-search-lite/includes/classes/filters/filters.inc.php
- > /wp-content/plugins/ajax-search-lite/includes/classes/actions/actions.inc.php
- > /wp-content/plugins/ajax-search-lite/includes/classes/core/class-asl-shortcodes.php
- > /wp-content/plugins/ajax-search-lite/backend/sidebar.php
- > /wp-content/plugins/ajax-search-lite/includes/classes/shortcodes/class-asl-search.php
- > /wp-content/plugins/ajax-search-lite/includes/classes/core/class-asl-manager.php
- > /wp-content/plugins/ajax-search-lite/includes/classes/core/class-asl-dbman.php
- > /wp-content/plugins/ajax-search-lite/backend/whypro.php
- > /wp-content/plugins/ajax-search-lite/includes/classes/filters/class-asl-formoverride.php
- 74× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ajax-search-lite/backend/tabs/instance/advanced/kw_exceptions.php:1
- > PHP Fatal error
Uncaught Error: Class 'wpdreamsType' not found in wp-content/plugins/ajax-search-lite/backend/settings/class/categories.class.php:14
- > PHP Fatal error
Uncaught Error: Class 'wpdreamsYesNo' not found in wp-content/plugins/ajax-search-lite/backend/tabs/compatibility/query_options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-search-lite/backend/tabs/instance/layout_options.php:2
- > PHP Fatal error
Uncaught Error: Class 'wpdreamsCustomSelect' not found in wp-content/plugins/ajax-search-lite/backend/tabs/compatibility/cssjs_options.php:3
- > PHP Fatal error
Uncaught Error: Class 'wpdreamsType' not found in wp-content/plugins/ajax-search-lite/backend/settings/class/colorpickerdummy.class.php:15
- > PHP Fatal error
Uncaught Error: Class 'wpdreamsType' not found in wp-content/plugins/ajax-search-lite/backend/settings/class/customposttypes.class.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wd_asl() in wp-content/plugins/ajax-search-lite/backend/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ajax-search-lite/backend/tabs/instance/advanced/accessibility.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ajax-search-lite/backend/tabs/instance/general/behavior.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=asl_maintenance
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (48 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ajax-search-lite/ajax-search-lite.php Passed 13 tests
Analyzing the main PHP file in "Ajax Search Lite" version 4.11.4
79 characters long description:
The lite version of the most powerful ajax powered search engine for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin32,400 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 33 | 1,387 | 1,074 | 13,446 |
PHP | 121 | 1,449 | 2,850 | 10,813 |
CSS | 16 | 1,068 | 126 | 6,893 |
PO File | 2 | 501 | 654 | 1,220 |
SVG | 3 | 19 | 2 | 28 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 413.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 7 | 10.61% |
▷ Concrete classes | 59 | 89.39% |
▷ Final classes | 0 | 0.00% |
Methods | 291 | |
▷ Static methods | 79 | 27.15% |
▷ Public methods | 239 | 82.13% |
▷ Protected methods | 30 | 10.31% |
▷ Private methods | 22 | 7.56% |
Functions | 44 | |
▷ Named functions | 42 | 95.45% |
▷ Anonymous functions | 2 | 4.55% |
Constants | 14 | |
▷ Global constants | 14 | 100.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
67 PNG files occupy 0.36MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
backend/settings/assets/theme/simple-blue.png | 2.58KB | 1.02KB | ▼ 60.22% |
backend/settings/assets/icons/upload-before.png | 0.99KB | 0.20KB | ▼ 79.51% |
backend/settings/assets/icons/icon-desktop-white.png | 1.94KB | 0.29KB | ▼ 84.83% |
backend/settings/assets/icons/delete.png | 1.25KB | 0.48KB | ▼ 61.80% |
img/magnifier.png | 3.73KB | 0.83KB | ▼ 77.78% |