Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.05ms] Passed 4 tests
Analyzing server-side resources used by Autocomplete For Relevanssi
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.01 ▼3.26 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.37 ▼3.61 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 52.87 ▲5.86 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 96.88 ▲1.65 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 40.20 ▲1.01 |
Autocomplete for Relevanssi /wp-admin/options-general.php?page=afr_options_page | 3.25 | 35.15 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/autocomplete-for-relevanssi/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Autocomplete For Relevanssi
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.59 ▼1.17 | 1.59 ▼0.30 | 41.92 ▼2.04 |
Dashboard /wp-admin | 2,225 ▲22 | 4.91 ▼1.05 | 97.28 ▼18.54 | 36.99 ▼12.23 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.06 ▲0.02 | 41.09 ▲3.89 | 37.06 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 23.01 ▼0.13 | 655.35 ▲55.17 | 55.28 ▲3.67 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.24 ▼0.01 | 103.51 ▲2.71 | 51.12 ▲5.41 |
Autocomplete for Relevanssi /wp-admin/options-general.php?page=afr_options_page | 910 | 1.87 | 26.69 | 25.73 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/autocomplete-for-relevanssi/autocomplete-for-relevanssi.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autocomplete-for-relevanssi/afr-options.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== autocomplete-for-relevanssi ===
)
autocomplete-for-relevanssi/autocomplete-for-relevanssi.php Passed 13 tests
"Autocomplete For Relevanssi" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
Autocompletion functionality for WordPress search input when Relevanssi plugin is installed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,321 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 474 | 65 | 1,748 |
CSS | 7 | 102 | 11 | 576 |
HTML | 3 | 70 | 0 | 426 |
PHP | 2 | 45 | 66 | 234 |
PO File | 2 | 34 | 36 | 139 |
Markdown | 3 | 46 | 0 | 113 |
JSON | 2 | 0 | 0 | 49 |
YAML | 2 | 6 | 0 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin