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
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/opensearchserver-search/opensearchserver_admin.php+411
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.07MB] [CPU: ▼52.71ms] Passed 4 tests
Analyzing server-side resources used by OpenSearchServer Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.54 | 8.16 ▼34.03 |
Dashboard /wp-admin | 2.94 ▼0.36 | 10.75 ▼45.47 |
Posts /wp-admin/edit.php | 2.94 ▼0.41 | 10.82 ▼39.11 |
Add New Post /wp-admin/post-new.php | 2.94 ▼2.94 | 8.90 ▼92.23 |
Media Library /wp-admin/upload.php | 2.94 ▼0.29 | 9.87 ▼28.11 |
OpenSearchServer /wp-admin/plugins.php?page=opensearchserver-search/index.php | 3.05 | 10.89 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 231 new files
Database: no new tables, 19 new options
New WordPress options |
---|
can_compress_scripts |
oss_query |
oss_spell_algo |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
oss_display_user |
oss_display_type |
oss_taxonomy_display |
oss_facet_display_count |
... |
Browser metrics Passed 4 tests
A check of browser resources used by OpenSearchServer Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲168 | 13.96 ▼0.43 | 11.23 ▲8.51 | 51.19 ▲5.07 |
Dashboard /wp-admin | 2,230 ▲24 | 4.86 ▼1.16 | 101.38 ▼5.13 | 37.99 ▼6.03 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.03 ▲0.03 | 37.59 ▼0.30 | 39.66 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 22.65 ▼0.56 | 608.26 ▼73.12 | 48.14 ▼17.06 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.24 ▲0.01 | 98.06 ▼14.65 | 47.30 ▼0.04 |
OpenSearchServer /wp-admin/plugins.php?page=opensearchserver-search/index.php | 1,942 | 1.56 | 32.12 | 73.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/opensearchserver-search/opensearchserver_admin.php+411
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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 server-side errors were triggered
- > GET request to /wp-admin/plugins.php?page=opensearchserver-search/index.php
- > Deprecated in wp-content/plugins/opensearchserver-search/opensearchserver_admin.php+411
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/plugins.php?page=opensearchserver-search/index.php
- > User warning in wp-content/plugins/opensearchserver-search/lib/oss_abstract.class.php+177
CURL failed to execute on URL "/services/rest/index//search/template?"
- > GET request to /wp-admin/plugins.php?page=opensearchserver-search/index.php
- > Notice in wp-content/plugins/opensearchserver-search/lib/oss_searchtemplate.class.php+205
Trying to get property 'templates' of non-object
- > GET request to /wp-admin/plugins.php?page=opensearchserver-search/index.php
- > Warning in wp-content/plugins/opensearchserver-search/opensearchserver_admin.php+1203
Invalid argument supplied for foreach()
- 13 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=opensearchserver-search/index.php
- > Warning in wp-content/plugins/opensearchserver-search/opensearchserver_admin.php+1220
in_array() expects parameter 2 to be array, bool given
- > GET request to /wp-admin/plugins.php?page=opensearchserver-search/index.php
- > Warning in wp-content/plugins/opensearchserver-search/opensearchserver_admin.php+1363
Use of undefined constant oss_advanced_facets - assumed 'oss_advanced_facets' (this will throw an Error in a future version of PHP)
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/opensearchserver-search/lib/Buzz/test/server.php
- > /wp-content/plugins/opensearchserver-search/autocomplete.php
- 171× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Buzz\\Listener\\ListenerInterface' not found in wp-content/plugins/opensearchserver-search/lib/Buzz/lib/Buzz/Listener/CallbackListener.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/opensearchserver-search/lib/Buzz/test/Buzz/Test/Message/FormRequestTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/opensearchserver-search/lib/opensearchserver-php-client/tests/TestWrapper.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Buzz\\Message\\MessageInterface' not found in wp-content/plugins/opensearchserver-search/lib/Buzz/lib/Buzz/Message/AbstractMessage.php:5
- > PHP Fatal error
Uncaught Error: Class 'OpenSearchServer\\Handler' not found in wp-content/plugins/opensearchserver-search/lib/opensearchserver-php-client/examples/oss_examples.php:6
- > PHP Fatal error
Uncaught Error: Class 'OpenSearchServer\\Request' not found in wp-content/plugins/opensearchserver-search/lib/opensearchserver-php-client/src/OpenSearchServer/Synonyms/Exists.php:6
- > PHP Fatal error
Uncaught Error: Class 'OpenSearchServer\\RequestJson' not found in wp-content/plugins/opensearchserver-search/lib/opensearchserver-php-client/src/OpenSearchServer/Document/Put.php:7
- > PHP Fatal error
Uncaught Error: Class 'OpenSearchServer\\Crawler\\File\\Repository\\Repository' not found in wp-content/plugins/opensearchserver-search/lib/opensearchserver-php-client/src/OpenSearchServer/Crawler/File/Repository/Ftp/Insert.php:6
- > PHP Fatal error
Uncaught Error: Class 'OpenSearchServer\\RequestJson' not found in wp-content/plugins/opensearchserver-search/lib/opensearchserver-php-client/src/OpenSearchServer/SearchBatch/SearchBatch.php:7
- > PHP Fatal error
Uncaught Error: Class 'OpenSearchServer\\RequestJson' not found in wp-content/plugins/opensearchserver-search/lib/opensearchserver-php-client/src/OpenSearchServer/Document/DeleteByQuery.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: full-text, indexation, opensearchserver, search, filter...
opensearchserver-search/index.php 85% from 13 tests
The primary PHP file in "OpenSearchServer Search" version 1.5.10 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("opensearchserver-search.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin14,986 lines of code in 221 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 208 | 2,375 | 4,264 | 12,503 |
Markdown | 3 | 558 | 0 | 1,928 |
JavaScript | 1 | 26 | 55 | 162 |
CSS | 2 | 14 | 3 | 155 |
PO File | 2 | 54 | 14 | 137 |
JSON | 2 | 0 | 0 | 54 |
XML | 2 | 3 | 2 | 27 |
YAML | 1 | 5 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 52 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 211 | |
▷ Abstract classes | 18 | 8.53% |
▷ Concrete classes | 193 | 91.47% |
▷ Final classes | 0 | 0.00% |
Methods | 1,006 | |
▷ Static methods | 16 | 1.59% |
▷ Public methods | 962 | 95.63% |
▷ Protected methods | 25 | 2.49% |
▷ Private methods | 19 | 1.89% |
Functions | 117 | |
▷ Named functions | 112 | 95.73% |
▷ Anonymous functions | 5 | 4.27% |
Constants | 110 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 110 | 100.00% |
▷ Public constants | 110 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/Buzz/test/Buzz/Test/Message/Fixtures/google.png | 6.84KB | 6.80KB | ▼ 0.69% |