Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.25MB] [CPU: ▼161.02ms] Passed 4 tests
An overview of server-side resources used by hiWeb Soft Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 39.00 ▼1.84 |
Dashboard /wp-admin | 3.15 ▲0.10 | 52.54 ▼10.74 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 58.20 ▲7.16 |
Add New Post /wp-admin/post-new.php | 4.13 ▼1.30 | 55.82 ▼633.40 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 42.80 ▲1.91 |
hiWeb Soft Search /wp-admin/tools.php?page=hw-search-simple | 3.06 | 36.18 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for hiWeb Soft Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.66 ▲0.02 | 11.31 ▲0.47 | 48.96 ▼12.12 |
Dashboard /wp-admin | 2,975 ▲41 | 5.85 ▼0.25 | 153.25 ▼17.16 | 118.85 ▼4.27 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▲0.01 | 73.50 ▼17.73 | 96.92 ▼12.22 |
Add New Post /wp-admin/post-new.php | 1,656 ▲41 | 20.91 ▼0.56 | 314.43 ▼25.87 | 127.31 ▲6.99 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▼0.01 | 177.11 ▲6.75 | 125.78 ▲1.88 |
hiWeb Soft Search /wp-admin/tools.php?page=hw-search-simple | 1,129 | 2.36 | 60.63 | 80.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
array_flip() expects parameter 1 to be array, null given in wp-content/plugins/hiweb-soft-search/template/tools_page.php on line 5
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-soft-search/inc/define.php on line 12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-soft-search/inc/define.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-soft-search/include/define.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-soft-search/include/define.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-soft-search/inc/adminmenu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function hiweb_soft_search\\meta_box\\add_action() in wp-content/plugins/hiweb-soft-search/include/meta_box.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-soft-search/include/define.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiweb-soft-search/include/define.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function hiweb_soft_search\\tools\\add_action() in wp-content/plugins/hiweb-soft-search/include/tools.php:12
- > PHP Warning
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 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Donate link: Please fix this invalid URI: ""
- Screenshots: Screenshot #1 (Tool for Re-generate Index Data.) image missing
hiweb-soft-search/hiweb-search-simple.php 92% from 13 tests
Analyzing the main PHP file in "hiWeb Soft Search" version 2.0.0.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hiweb-soft-search.php" instead of "hiweb-search-simple.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 detected998 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 137 | 244 | 894 |
JavaScript | 1 | 14 | 4 | 96 |
CSS | 1 | 1 | 1 | 5 |
Sass | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 7.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 36 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 45.88KB | 22.23KB | ▼ 51.54% |