Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Wpos_Code::wpos_activate() should not be called statically
Server metrics [RAM: ▲0.21MB] [CPU: ▼14.85ms] Passed 4 tests
An overview of server-side resources used by WP Opensearch Advance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 43.55 ▼1.09 |
Dashboard /wp-admin | 3.54 ▲0.20 | 36.62 ▼31.84 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 43.41 ▼4.87 |
Add New Post /wp-admin/post-new.php | 5.83 ▼0.05 | 85.33 ▼18.60 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 34.00 ▼4.07 |
OpenSearch /wp-admin/options-general.php?page=opensearch | 3.53 | 34.35 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Illegal file modification detected: 1 file (0.69KB) outside of "wp-content/plugins/wp-opensearch-advance/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpos_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Opensearch Advance
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲23 | 14.17 ▼0.45 | 1.55 ▼0.56 | 42.12 ▼1.16 |
Dashboard /wp-admin | 2,202 ▲28 | 5.57 ▼0.11 | 86.84 ▼6.90 | 42.79 ▼0.09 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.02 | 40.43 ▲2.60 | 36.54 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.99 ▼0.70 | 631.20 ▲12.03 | 55.34 ▼8.63 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.02 | 100.44 ▼7.39 | 40.15 ▼6.41 |
OpenSearch /wp-admin/options-general.php?page=opensearch | 1,176 | 2.28 | 41.91 | 39.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Wpos_Code::wpos_deactivate() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=opensearch
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/options-general.php?page=opensearch
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=opensearch
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-opensearch-advance/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-opensearch-advance/scb/load.php:32
- > PHP Fatal error
Uncaught Error: Class 'scbBoxesPage' not found in wp-content/plugins/wp-opensearch-advance/wpos_AdminPage.php:8
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/wp-opensearch-advance/scb/BoxesPage.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Adminpage)
wp-opensearch-advance/plugin.php 92% from 13 tests
The main PHP script in "WP Opensearch Advance" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-opensearch-advance.php" instead of "plugin.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
No dangerous file extensions were detected2,005 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 629 | 874 | 1,979 |
JSON | 1 | 0 | 0 | 22 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 5 | 20.83% |
▷ Concrete classes | 19 | 79.17% |
▷ Final classes | 0 | 0.00% |
Methods | 217 | |
▷ Static methods | 56 | 25.81% |
▷ Public methods | 178 | 82.03% |
▷ Protected methods | 28 | 12.90% |
▷ Private methods | 11 | 5.07% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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