Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/widget-to-search-from-ofruru/widget-to-search-from-ofruru.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; widget_to_search_from_ofruru has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼56.60ms] Passed 4 tests
An overview of server-side resources used by Widget to search from ofru.ru
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.13 ▼41.53 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.62 ▼48.53 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.77 ▼48.03 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.56 ▼88.32 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.71 ▼33.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_widget-to-search-from-ofruru |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Widget to search from ofru.ru: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.28 ▼0.30 | 1.90 ▲0.17 | 42.83 ▲2.76 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.03 | 93.18 ▲0.02 | 40.59 ▲1.30 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.00 | 43.44 ▲1.25 | 37.30 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.45 ▲0.39 | 627.08 ▼53.04 | 56.11 ▲0.24 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.06 | 95.38 ▼21.90 | 42.14 ▼5.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/widget-to-search-from-ofruru/widget-to-search-from-ofruru.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; widget_to_search_from_ofruru has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_widget-to-search-from-ofruru
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-to-search-from-ofruru/widget-to-search-from-ofruru.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== widget-to-search-from-ofruru ===
) - Screenshots: Screenshot #1 (Widget options) image not found
widget-to-search-from-ofruru/widget-to-search-from-ofruru.php Passed 13 tests
"Widget to search from ofru.ru" version 1.2.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
Enables a Custom Search Engine for your site via a widget. To add goto Appearance > Widgets. Thank you for choosing my widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected184 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 30 | 34 | 111 |
PHP | 1 | 9 | 13 | 73 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 12.92KB | 5.75KB | ▼ 55.53% |