Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼2.28ms] Passed 4 tests
Server-side resources used by BigCommerce Advance Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.68 ▲1.39 |
Dashboard /wp-admin | 3.56 ▲0.26 | 42.56 ▼6.20 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 45.13 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 89.63 ▼4.23 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 36.25 ▲1.33 |
Design Settings /wp-admin/admin.php?page=bas-design-settings | 3.42 | 31.88 |
Promotion /wp-admin/admin.php?page=bas-promotion | 3.42 | 29.25 |
BC Search /wp-admin/admin.php?page=bigcommerce-advance-search | 3.42 | 30.15 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
widget_bas_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BigCommerce Advance Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.21 ▼0.40 | 2.10 ▲0.42 | 40.23 ▼5.31 |
Dashboard /wp-admin | 2,237 ▲57 | 5.65 ▲0.07 | 84.82 ▼7.08 | 76.45 ▲34.24 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.02 ▲0.08 | 40.26 ▲3.93 | 38.83 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.04 ▼0.02 | 676.49 ▼20.89 | 48.95 ▼1.23 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.17 ▲0.05 | 94.98 ▼23.57 | 77.16 ▲29.59 |
Design Settings /wp-admin/admin.php?page=bas-design-settings | 909 | 2.18 | 26.42 | 34.44 |
Promotion /wp-admin/admin.php?page=bas-promotion | 869 | 2.18 | 23.10 | 37.03 |
BC Search /wp-admin/admin.php?page=bigcommerce-advance-search | 921 | 2.04 | 27.60 | 42.42 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_bas_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/bc-advance-search/inc/debug.php
- > /wp-content/plugins/bc-advance-search/inc/design-settings.php
- > /wp-content/plugins/bc-advance-search/inc/widget.php
- > /wp-content/plugins/bc-advance-search/inc/shortcode.php
- > /wp-content/plugins/bc-advance-search/inc/ajax.php
- > /wp-content/plugins/bc-advance-search/inc/promote/promote.php
- > /wp-content/plugins/bc-advance-search/inc/settings.php
- > /wp-content/plugins/bc-advance-search/inc/design-settings-public.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bc-advance-search/bc-advance-search.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bc-advance-search/inc/ajax-autocomplete.php:36
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=bas-design-settings
- > Javascript (severe) in unknown
/wp-content/plugins/bc-advance-search/assets/js/admin-design-dynamic-script.js?ver=6.3.1 7:50 Uncaught TypeError: Cannot read properties of null (reading 'value')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: bigcommerce, wordpress, advance, search
bc-advance-search/bc-advance-search.php Passed 13 tests
"BigCommerce Advance Search" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Most powerful, professional and advance search engine for ::: BigCommerce For WordPress ::: store.
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,224 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 198 | 126 | 829 |
CSS | 4 | 39 | 29 | 309 |
Markdown | 1 | 17 | 0 | 67 |
JavaScript | 3 | 2 | 18 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/click-here.png | 1.25KB | 1.25KB | 0.00% |
assets/img/bas-search-icon.png | 0.35KB | 0.53KB | 0.00% |