Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.08ms] Passed 4 tests
Server-side resources used by Bing Custom Search for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.41 ▼13.20 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.33 ▼0.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.65 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.43 ▲11.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.01 ▲2.63 |
Bing Search /wp-admin/options-general.php?page=wp_bing_search | 3.18 | 27.93 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Bing Custom Search for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲52 | 13.36 ▼0.87 | 4.28 ▲2.30 | 39.42 ▼0.28 |
Dashboard /wp-admin | 2,215 ▲24 | 4.84 ▼0.03 | 111.77 ▲2.51 | 47.10 ▲5.24 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▲0.02 | 39.50 ▲3.66 | 35.16 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.17 ▲0.04 | 593.44 ▼47.52 | 55.86 ▲2.43 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.22 ▼0.01 | 98.34 ▲2.09 | 43.72 ▲0.59 |
Bing Search /wp-admin/options-general.php?page=wp_bing_search | 1,666 | 9.18 | 274.86 | 73.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp_bing_search
- > Notice in wp-content/plugins/wp-bing-search/includes/wp_bing_search_settings.php+269
Trying to access array offset on value of type null
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'wp_bing_search' not found in wp-content/plugins/wp-bing-search/parts/shared/tab-header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function piklist() in wp-content/plugins/wp-bing-search/parts/settings/main-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-bing-search/includes/wp_bing_search_tabs.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-bing-search/includes/wp_bing_search_theme_compatibility.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-bing-search/includes/wp_bing_search_settings.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: advanced search, custom search, search, better search, bing
wp-bing-search/wp-bing-search.php Passed 13 tests
The entry point to "Bing Custom Search for WordPress" version 2.6.3 is a PHP file that has certain tags in its header comment area
32 characters long description:
Bing Custom Search for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,165 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 382 | 454 | 661 |
XML | 5 | 0 | 0 | 305 |
PO File | 3 | 57 | 63 | 186 |
CSS | 2 | 1 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 50 | |
▷ Static methods | 50 | 100.00% |
▷ Public methods | 50 | 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 | 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