Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/addsearch-instant-search/addsearch.php+458
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.07MB] [CPU: ▼11.56ms] Passed 4 tests
Server-side resources used by AddSearch
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.55 | 19.44 ▼20.30 |
Dashboard /wp-admin | 3.39 ▲0.09 | 43.88 ▼8.11 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.79 ▲4.56 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 79.97 ▼18.88 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.93 ▲1.04 |
AddSearch /wp-admin/options-general.php?page=addsearch-options | 3.30 | 30.71 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
addsearch_currentversion |
theysaidso_admin_options |
addsearch_prexisting |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for AddSearch
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 13.25 ▼1.18 | 1.55 ▼0.23 | 25.33 ▼18.80 |
Dashboard /wp-admin | 2,207 ▲25 | 5.84 ▲0.96 | 108.34 ▲6.71 | 41.21 ▼0.76 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.01 | 38.98 ▼0.12 | 36.40 ▲4.60 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.50 ▼5.58 | 689.22 ▲18.55 | 65.86 ▲2.07 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.04 | 93.45 ▼18.94 | 41.68 ▼0.91 |
AddSearch /wp-admin/options-general.php?page=addsearch-options | 1,646 | 1.69 | 23.87 | 29.38 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 29 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=addsearch-options
- > Notice in wp-content/plugins/addsearch-instant-search/addsearch.php+666
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/addsearch-instant-search/admin/settings-srp.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/addsearch-instant-search/admin/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addsearch-instant-search/includes/theme-functions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/addsearch-instant-search/templates/searchv2.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/addsearch-instant-search/templates/search.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/addsearch-instant-search/templates/search-results.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/addsearch-instant-search/admin/settings-widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in addsearch-instant-search/assets to your readme.txt
addsearch-instant-search/addsearch.php 85% from 13 tests
The primary PHP file in "AddSearch" version 2.2.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("addsearch-instant-search.php" instead of "addsearch.php")
- 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,157 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 1,151 |
PHP | 11 | 162 | 321 | 774 |
PO File | 1 | 26 | 29 | 71 |
Markdown | 1 | 53 | 0 | 65 |
Bourne Shell | 1 | 36 | 36 | 64 |
JavaScript | 1 | 4 | 0 | 24 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 30 | |
▷ Static methods | 8 | 26.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected