Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/searchiq/library/plugin.php+1166
Undefined index: custom_search_page
Server metrics [RAM: ▲1.79MB] [CPU: ▲7.52ms] Passed 4 tests
Server-side resources used by SearchIQ - The Search Solution
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.30 ▲1.83 | 56.93 ▲16.45 |
Dashboard /wp-admin | 5.13 ▲1.78 | 59.51 ▼8.34 |
Posts /wp-admin/edit.php | 5.18 ▲1.82 | 63.93 ▲16.84 |
Add New Post /wp-admin/post-new.php | 7.68 ▲1.79 | 100.47 ▲5.13 |
Media Library /wp-admin/upload.php | 4.99 ▲1.76 | 52.05 ▲17.08 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 69 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_siq_errors |
wp_siq_sync |
New WordPress options |
---|
widget_recent-posts |
_siq_plugin_version |
theysaidso_admin_options |
_siq_custom_search_page |
siq_db_version |
_siq_activated |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_siq_search_widget |
... |
Browser metrics Passed 4 tests
SearchIQ - The Search Solution: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲77 | 14.25 ▲0.09 | 1.76 ▲0.07 | 41.34 ▼1.45 |
Dashboard /wp-admin | 2,206 ▲32 | 5.59 ▲0.02 | 91.95 ▲0.90 | 73.63 ▲33.96 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.97 ▲0.03 | 38.43 ▲0.73 | 35.01 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,701 ▲172 | 21.79 ▼1.41 | 662.45 ▲60.20 | 52.37 ▼6.75 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.22 ▼0.03 | 92.45 ▼1.61 | 76.89 ▲36.08 |
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
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_siq_errors
- wp_siq_sync
- Zombie WordPress options were found after uninstall: 11 options
- widget_recent-comments
- siq_db_version
- _siq_activated
- _siq_plugin_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- _siq_custom_search_page
- widget_siq_search_widget
- ...
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/searchiq/library/widget-search.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/searchiq/templates/backend/error-log.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/searchiq/library/widget-search.php:32
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
searchiq/searchiq.php Passed 13 tests
The principal PHP file in "SearchIQ - The Search Solution" v. 4.5 is loaded by WordPress automatically on each request
96 characters long description:
SearchIQ replaces default WordPress search and offers fast, relevant and a better search engine.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected12,833 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 767 | 119 | 9,258 |
JavaScript | 3 | 292 | 49 | 2,525 |
CSS | 4 | 90 | 4 | 1,039 |
SVG | 1 | 0 | 0 | 11 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,027)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 133)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 267.86 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 1,027.00 |
Average method complexity | 6.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 133.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 357 | |
▷ Static methods | 9 | 2.52% |
▷ Public methods | 219 | 61.34% |
▷ Protected methods | 74 | 20.73% |
▷ Private methods | 64 | 17.93% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 39 | |
▷ Global constants | 11 | 28.21% |
▷ Class constants | 28 | 71.79% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.40MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/4.5/images/search-bg.png | 1.26KB | 0.52KB | ▼ 58.34% |
assets/4.5/images/top-arrow.png | 1.07KB | 0.17KB | ▼ 83.65% |
assets/4.5/images/loading.png | 0.47KB | 0.39KB | ▼ 17.63% |
assets/4.5/images/tag-16.png | 1.10KB | 0.31KB | ▼ 72.09% |
assets/4.5/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |