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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/geotheme-advance-search-widget/geotheme-advance-search-widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; AdvanceSearchWidget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.00ms] Passed 4 tests
Analyzing server-side resources used by GeoTheme Advance Search Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.35 ▼37.30 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.28 ▼43.62 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.11 ▼42.43 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.18 ▼92.64 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.34 ▼29.80 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_advancesearchwidget |
Browser metrics Passed 4 tests
Checking browser requirements for GeoTheme Advance Search Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.51 ▲0.24 | 1.79 ▲0.07 | 42.32 ▼3.31 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.02 | 84.13 ▼8.32 | 38.26 ▼0.08 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▼0.03 | 35.59 ▼2.53 | 33.27 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.01 ▼4.86 | 597.02 ▼35.83 | 105.64 ▼1.89 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.22 ▲0.01 | 99.55 ▲0.92 | 44.32 ▲2.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/geotheme-advance-search-widget/geotheme-advance-search-widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; AdvanceSearchWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_advancesearchwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: cat_exclude in wp-content/plugins/geotheme-advance-search-widget/places_search.php on line 28
- > PHP Notice
Undefined variable: package_cats in wp-content/plugins/geotheme-advance-search-widget/places_search.php on line 47
- > PHP Notice
Undefined index: pkg in wp-content/plugins/geotheme-advance-search-widget/places_search.php on line 43
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/geotheme-advance-search-widget/places_search.php:62
- > PHP Notice
Trying to get property 'terms' of non-object in wp-content/plugins/geotheme-advance-search-widget/places_search.php on line 61
- > PHP Notice
Trying to get property 'term_taxonomy' of non-object in wp-content/plugins/geotheme-advance-search-widget/places_search.php on line 61
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/geotheme-advance-search-widget/geotheme-advance-search-widget.php:16
- > PHP Notice
Undefined variable: substr in wp-content/plugins/geotheme-advance-search-widget/places_search.php on line 61
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: add-ons, wordpress, search, advance search, geothemes
geotheme-advance-search-widget/geotheme-advance-search-widget.php Passed 13 tests
The main PHP file in "GeoTheme Advance Search Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
Easy search widget for geotheme. just activate plugin and place it where you want to show it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected295 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 36 | 295 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin