Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.31ms] Passed 4 tests
Server-side resources used by SD Live Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.67 ▼6.00 |
Dashboard /wp-admin | 3.34 ▲0.03 | 54.31 ▼1.74 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.51 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.29 ▼6.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.40 ▲1.89 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SD Live Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.28 ▼1.11 | 2.08 ▲0.06 | 42.12 ▼9.53 |
Dashboard /wp-admin | 2,211 ▲26 | 4.86 ▼1.01 | 101.70 ▼25.29 | 41.18 ▼6.62 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.03 ▼0.02 | 35.58 ▼2.48 | 30.90 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 23.27 ▲5.09 | 695.07 ▼87.01 | 59.37 ▼6.04 |
Media Library /wp-admin/upload.php | 1,381 ▼4 | 4.32 ▲0.16 | 99.24 ▼3.09 | 41.97 ▼5.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sd-live-search/ult-search.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant SD_SEARCH_PLUGIN_DIR - assumed 'SD_SEARCH_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sd-live-search/ult-search.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sd-live-search/searchform.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sd-live-search/sd-live-search.php:12
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please a description for screenshot #0 in sd-live-search/assets to your readme.txt
sd-live-search/sd-live-search.php 92% from 13 tests
The principal PHP file in "SD Live Search" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected451 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 2 | 6 | 189 |
PHP | 3 | 26 | 19 | 157 |
JavaScript | 1 | 24 | 16 | 105 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin