Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼5.99ms] Passed 4 tests
Server-side resources used by Advance WordPress Search Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 35.27 ▼6.53 |
Dashboard /wp-admin | 3.58 ▲0.28 | 46.21 ▼4.03 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 41.69 ▼5.27 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 82.91 ▼8.14 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 32.20 ▼0.05 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 3.49 | 31.59 |
Advance Search /wp-admin/admin.php?page=th-advance-product-search | 3.41 | 31.66 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_thaps-widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Advance WordPress Search Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲166 | 13.54 ▼0.81 | 9.15 ▲7.44 | 38.51 ▼3.67 |
Dashboard /wp-admin | 2,214 ▲36 | 5.57 ▼0.14 | 89.14 ▼24.01 | 82.54 ▲36.37 |
Posts /wp-admin/edit.php | 2,125 ▲46 | 1.95 ▼0.04 | 37.32 ▼2.93 | 32.53 ▼6.35 |
Add New Post /wp-admin/post-new.php | 1,559 ▲30 | 23.22 ▲0.05 | 668.92 ▼9.45 | 184.25 ▲133.61 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.12 ▼0.07 | 99.10 ▲3.88 | 68.60 ▲27.08 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 1,249 | 2.24 | 30.87 | 51.43 |
Advance Search /wp-admin/admin.php?page=th-advance-product-search | 3,431 | 3.10 | 150.60 | 53.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_thaps-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'THEMEHUNK_PDIRth-option/header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/th-option/tab-html.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/th-option/header.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/th-advance-product-search/inc/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/plugins-list.php:4
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/th-option/sidebar.php:4
- > PHP Warning
include_once(THEMEHUNK_PDIRth-option/header.php): failed to open stream: No such file or directory in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/th-advance-product-search/inc/themehunk-menu/admin-menu.php:4
- > PHP Warning
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 93% from 29 tests
readme.txt 94% 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:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in th-advance-product-search/assets to your readme.txt
th-advance-product-search/th-advance-product-search.php 92% from 13 tests
The main file in "Advance WordPress Search Plugin" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 529 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,660 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 1,027 | 191 | 2,338 |
JavaScript | 4 | 358 | 327 | 1,596 |
CSS | 4 | 104 | 21 | 1,453 |
PO File | 1 | 115 | 120 | 273 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 33.43 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 97 | |
▷ Static methods | 4 | 4.12% |
▷ Public methods | 88 | 90.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.28% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.45MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/search-autocomplete.png | 13.97KB | 5.13KB | ▼ 63.29% |
images/search-2.png | 10.09KB | 1.53KB | ▼ 84.80% |
images/search-voice.png | 6.29KB | 3.09KB | ▼ 50.82% |
inc/themehunk-menu/th-option/assets/images/th-shop-mania.png | 34.78KB | 11.98KB | ▼ 65.56% |
inc/themehunk-menu/th-option/assets/images/icon.png | 14.32KB | 7.45KB | ▼ 47.95% |