Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼12.64ms] Passed 4 tests
Analyzing server-side resources used by Search Widget and WP REST Server for Toolset Types
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 22.81 ▼18.24 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.64 ▼1.90 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.87 ▼4.73 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.52 ▼25.70 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.33 ▲3.30 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_search_types_custom_fields_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Search Widget and WP REST Server for Toolset Types
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 14.29 ▼0.06 | 13.45 ▲11.70 | 40.08 ▼0.13 |
Dashboard /wp-admin | 2,217 ▲29 | 6.01 ▲0.94 | 96.03 ▼9.70 | 37.88 ▼4.30 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.24 ▲0.18 | 34.12 ▼7.21 | 31.44 ▼4.18 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.32 ▲5.64 | 672.76 ▲39.59 | 49.50 ▼2.33 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.35 ▲0.10 | 102.72 ▲4.17 | 50.37 ▲6.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_search_types_custom_fields_widget
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 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 fix the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/search-types-custom-fields-widget/stcfw-search-results-template.php
- > /wp-content/plugins/search-types-custom-fields-widget/stcfw-search-results-bootstrap-template.php
- > /wp-content/plugins/search-types-custom-fields-widget/user-templates-no-bootstrap-sample.php
- > /wp-content/plugins/search-types-custom-fields-widget/user-templates-sample.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/search-types-custom-fields-widget/search-types-custom-fields-widget.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/search-types-custom-fields-widget/search-types-custom-fields-widget.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: search, custom fields
search-types-custom-fields-widget/search-types-custom-fields-widget-loader.php 92% from 13 tests
"Search Widget and WP REST Server for Toolset Types" version 2.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("search-types-custom-fields-widget.php" instead of "search-types-custom-fields-widget-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin14,938 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 68 | 31 | 5,763 |
JavaScript | 8 | 1,488 | 1,143 | 5,695 |
PHP | 7 | 142 | 353 | 3,027 |
SVG | 1 | 0 | 0 | 288 |
HTML | 1 | 0 | 0 | 165 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 83.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 29 | |
▷ Static methods | 14 | 48.28% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 3 | 10.34% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 63 | 100.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin