Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/priceline-partner-network-official-searchbox/includes/core.php+67
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.46ms] Passed 4 tests
A check of server-side resources used by Priceline Partner Network Wordpress Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.95 ▼37.73 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.65 ▼42.86 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.08 ▼43.74 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.18 ▼93.49 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.57 ▼25.96 |
PPN Searchbox /wp-admin/options-general.php?page=rs_searchbox | 2.05 | 5.08 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
rs_searchbox_options |
widget_recent-posts |
widget_rs_searchbox |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Priceline Partner Network Wordpress Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▼0.17 | 1.66 ▼0.07 | 40.15 ▼5.50 |
Dashboard /wp-admin | 2,207 ▲19 | 5.81 ▼0.08 | 93.97 ▼21.94 | 37.53 ▼8.06 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.05 | 40.01 ▲2.36 | 35.89 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.19 ▼0.17 | 595.05 ▼47.77 | 61.24 ▼1.19 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▲0.01 | 93.01 ▼3.43 | 40.52 ▼1.96 |
PPN Searchbox /wp-admin/options-general.php?page=rs_searchbox | 807 | 2.06 | 28.05 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the rs_settings_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_rs_searchbox
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=rs_searchbox
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the rs_settings_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=rs_searchbox
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the rs_widgets_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rs_searchbox
- > Deprecated in wp-content/plugins/priceline-partner-network-official-searchbox/includes/widget.php+140
Function create_function() is deprecated
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
Please fix the following items
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/priceline-partner-network-official-searchbox/includes/core.php
- > /wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php
- > /wp-content/plugins/priceline-partner-network-official-searchbox/uninstall.php
- > /wp-content/plugins/priceline-partner-network-official-searchbox/includes/widget.php
- > /wp-content/plugins/priceline-partner-network-official-searchbox/includes/trk.php
- > /wp-content/plugins/priceline-partner-network-official-searchbox/themes/wide/template.php
- > /wp-content/plugins/priceline-partner-network-official-searchbox/ppn-searchbox.php
- > /wp-content/plugins/priceline-partner-network-official-searchbox/includes/settings_page.php
- 268× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php on line 425
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/wide/template.php on line 391
- > PHP Notice
Undefined variable: instance in wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php on line 397
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php on line 373
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php on line 362
- > PHP Notice
Undefined variable: instance in wp-content/plugins/priceline-partner-network-official-searchbox/themes/wide/template.php on line 437
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/wide/template.php on line 390
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php on line 450
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php on line 403
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/priceline-partner-network-official-searchbox/themes/default/template.php on line 440
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
priceline-partner-network-official-searchbox/ppn-searchbox.php 92% from 13 tests
The primary PHP file in "Priceline Partner Network Wordpress Plugin" version 1.1.0 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 ("priceline-partner-network-official-searchbox.php" instead of "ppn-searchbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,902 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 173 | 365 | 1,603 |
CSS | 6 | 100 | 8 | 1,299 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.84 |
Average class complexity | 35.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 18 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 35.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.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
9 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/default/images/search.png | 0.44KB | 0.49KB | 0.00% |
themes/wide/images/products_highlight.png | 1.86KB | 1.33KB | ▼ 28.20% |
themes/default/images/products.png | 1.17KB | 1.17KB | 0.08% |
themes/wide/images/icons.png | 4.07KB | 2.09KB | ▼ 48.63% |
themes/default/images/products_highlight.png | 1.16KB | 1.17KB | 0.00% |