Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.30ms] Passed 4 tests
An overview of server-side resources used by XunSearch
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.16 ▲2.35 |
Dashboard /wp-admin | 3.43 ▲0.13 | 58.79 ▲9.75 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.81 ▼5.31 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.11 ▼10.58 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.78 ▼3.66 |
XunSearch /wp-admin/plugins.php?page=xunsearch-options | 3.26 | 35.21 |
Server storage [IO: ▲2.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 138 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for XunSearch
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.11 | 1.65 ▼0.22 | 44.75 ▲4.37 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.04 | 93.92 ▲7.56 | 42.00 ▲0.37 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.07 | 38.20 ▲0.20 | 34.78 ▼5.07 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.51 ▲0.48 | 694.18 ▲2.93 | 61.02 ▲4.07 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.30 ▲0.07 | 96.48 ▼13.87 | 43.26 ▼3.51 |
XunSearch /wp-admin/plugins.php?page=xunsearch-options | 812 | 2.15 | 24.82 | 29.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=xunsearch-options
- > Notice in wp-content/plugins/xunsearch/class.xunsearch.php+120
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/xunsearch/xunsearch-sdk/util/Quest.php
- > /wp-content/plugins/xunsearch/xunsearch-sdk/util/RequiredCheck.php
- > /wp-content/plugins/xunsearch/xunsearch-sdk/util/Indexer.php
- > /wp-content/plugins/xunsearch/xunsearch-sdk/util/SearchSkel.php
- > /wp-content/plugins/xunsearch/xunsearch-sdk/util/Logger.php
- > /wp-content/plugins/xunsearch/xunsearch.php
- > /wp-content/plugins/xunsearch/xunsearch-sdk/util/IniWizzard.php
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/xunsearch/xunsearch-sdk/util/Quest.php on line 49
- > PHP Fatal error
Cannot use yii\\base\\Object as Object because 'Object' is a special class name in wp-content/plugins/xunsearch/xunsearch-sdk/wrapper/yii2-ext/Database.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/xunsearch/xunsearch-sdk/util/Logger.php on line 50
- > PHP Notice
Undefined index: argv in wp-content/plugins/xunsearch/xunsearch-sdk/util/IniWizzard.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'yii\\debug\\Panel' not found in wp-content/plugins/xunsearch/xunsearch-sdk/wrapper/yii2-ext/DebugPanel.php:27
- > PHP Notice
Undefined index: argv in wp-content/plugins/xunsearch/xunsearch-sdk/util/SearchSkel.php on line 29
- > PHP Warning
Use of undefined constant XUN_SEARCH_PLUGIN_DIR - assumed 'XUN_SEARCH_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/xunsearch/class.xunsearch.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'yii\\base\\Component' not found in wp-content/plugins/xunsearch/xunsearch-sdk/wrapper/yii2-ext/Connection.php:25
- > PHP Notice
Undefined index: argv in wp-content/plugins/xunsearch/xunsearch-sdk/util/Quest.php on line 49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/xunsearch/xunsearch-sdk/util/Quest.php on line 91
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
No plugin tags provided
xunsearch/xunsearch.php Passed 13 tests
The principal PHP file in "XunSearch" v. 0.1.00 is loaded by WordPress automatically on each request
23 characters long description:
XunSearch for wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin37,133 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 86 | 3,348 | 9 | 18,056 |
CSS | 8 | 1,027 | 106 | 10,569 |
PHP | 20 | 372 | 1,338 | 5,930 |
JavaScript | 1 | 695 | 656 | 2,198 |
Markdown | 3 | 111 | 0 | 309 |
INI | 2 | 23 | 0 | 71 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 20.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 212.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 3 | 7.14% |
▷ Concrete classes | 39 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 355 | |
▷ Static methods | 25 | 7.04% |
▷ Public methods | 297 | 83.66% |
▷ Protected methods | 35 | 9.86% |
▷ Private methods | 23 | 6.48% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 204 | |
▷ Global constants | 181 | 88.73% |
▷ Class constants | 23 | 11.27% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
xunsearch-sdk/util/skel/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
xunsearch-sdk/util/skel/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |