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.03MB] [CPU: ▼7.37ms] Passed 4 tests
Server-side resources used by Relevanssi Live Ajax Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.09 ▼3.50 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.68 ▼16.01 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.23 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.35 ▼5.07 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.30 ▲3.34 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Relevanssi Live Ajax Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,022 ▲260 | 13.41 ▼0.93 | 13.80 ▲12.06 | 38.19 ▼9.44 |
Dashboard /wp-admin | 2,195 ▲21 | 5.60 ▼0.02 | 92.32 ▼7.30 | 40.24 ▼6.02 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.06 | 36.73 ▼0.66 | 32.98 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 25.12 ▲2.04 | 650.83 ▼28.21 | 63.40 ▲10.01 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.07 | 99.55 ▼0.02 | 44.10 ▼1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/relevanssi-live-ajax-search/templates/search-results-messages.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/relevanssi-live-ajax-search/templates/search-results-query.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/relevanssi-live-ajax-search/templates/search-results.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: live, ajax, search
relevanssi-live-ajax-search/relevanssi-live-ajax-search.php Passed 13 tests
This is the main PHP file of "Relevanssi Live Ajax Search" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Enhance your search forms with live search.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,554 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 140 | 134 | 932 |
PHP | 11 | 111 | 499 | 415 |
Sass | 1 | 19 | 1 | 130 |
CSS | 1 | 9 | 3 | 77 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin