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.07MB] [CPU: ▼2.19ms] Passed 4 tests
Analyzing server-side resources used by Instant Search & Suggest
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.87 ▼4.66 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.07 ▼6.18 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 51.66 ▲4.61 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.10 ▲3.48 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 33.33 ▼1.40 |
Instant Search /wp-admin/options-general.php?page=iss-settings | 3.26 | 31.43 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpiss_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Instant Search & Suggest
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲202 | 13.87 ▼0.69 | 9.09 ▲7.16 | 39.18 ▼13.65 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.03 | 112.29 ▼4.14 | 42.32 ▼0.52 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.02 | 39.54 ▲2.95 | 36.86 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,532 ▼2 | 18.72 ▼4.55 | 618.83 ▼78.84 | 55.07 ▲0.03 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.03 | 95.26 ▼15.72 | 42.91 ▼0.65 |
Instant Search /wp-admin/options-general.php?page=iss-settings | 957 | 2.06 | 23.56 | 27.82 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instant-search-suggest/assets/inc/iss-ajax.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instant-search-suggest/assets/inc/iss-admin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instant-search-suggest/assets/inc/iss-theme.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/instant-search-suggest/iss.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
instant-search-suggest/iss.php 85% from 13 tests
Analyzing the main PHP file in "Instant Search & Suggest" version 2.1
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("instant-search-suggest.php" instead of "iss.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,315 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 140 | 2,151 | 4,028 |
JavaScript | 3 | 34 | 12 | 88 |
CSS | 1 | 20 | 13 | 78 |
PO File | 1 | 23 | 27 | 61 |
Markdown | 1 | 34 | 0 | 45 |
JSON | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 72.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 264 | |
▷ Static methods | 73 | 27.65% |
▷ Public methods | 219 | 82.95% |
▷ Protected methods | 43 | 16.29% |
▷ Private methods | 2 | 0.76% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin