Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/search-into-subcategories/search-into-subcategories-plugin.php+57
Declaration of My_Walker_CategoryDropdown::start_el(&$output, $category, $depth = 0, $args = Array) should be compatible with Walker_CategoryDropdown::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
Server metrics [RAM: ▼1.82MB] [CPU: ▼61.36ms] Passed 4 tests
An overview of server-side resources used by Search-into-subcategories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.39 ▼52.21 |
Dashboard /wp-admin | 2.18 ▼1.12 | 7.32 ▼44.73 |
Posts /wp-admin/edit.php | 2.18 ▼1.17 | 7.57 ▼54.67 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.70 | 6.41 ▼93.81 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 7.31 ▼30.76 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Search-into-subcategories
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.59 ▲0.23 | 2.03 ▼0.25 | 42.42 ▼17.50 |
Dashboard /wp-admin | 2,189 ▲12 | 5.55 ▼0.17 | 84.61 ▼3.06 | 44.08 ▲1.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.04 | 37.51 ▲0.64 | 35.60 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.99 ▼0.18 | 666.22 ▼16.56 | 49.26 ▼2.61 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.05 | 103.82 ▼4.42 | 47.00 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/search-into-subcategories/search-into-subcategories-plugin.php+57
Declaration of My_Walker_CategoryDropdown::start_el(&$output, $category, $depth = 0, $args = Array) should be compatible with Walker_CategoryDropdown::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Walker_CategoryDropdown' not found in wp-content/plugins/search-into-subcategories/search-into-subcategories-plugin.php:19
- > PHP Fatal error
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)
No browser errors were detected
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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Search Category Level 1), #2 (Search Category Level 2), #3 (Search Category Level 3 & Input)
search-into-subcategories/search-into-subcategories-plugin.php 92% from 13 tests
This is the main PHP file of "Search-into-subcategories" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("search-into-subcategories.php" instead of "search-into-subcategories-plugin.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 plugin4,944 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 914 | 464 | 4,420 |
PHP | 1 | 77 | 103 | 289 |
CSS | 1 | 31 | 10 | 198 |
PO File | 1 | 10 | 12 | 37 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin