10% geotheme-advance-search-widget

Code Review | GeoTheme Advance Search Widget

WordPress plugin GeoTheme Advance Search Widget scored10%from 54 tests.

About plugin

  • Plugin page: geotheme-advance-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 4, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: corlax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,187 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.35 ▼37.30
Dashboard /wp-admin2.09 ▼1.215.28 ▼43.62
Posts /wp-admin/edit.php2.09 ▼1.265.11 ▼42.43
Add New Post /wp-admin/post-new.php2.09 ▼3.805.18 ▼92.64
Media Library /wp-admin/upload.php2.09 ▼1.146.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.51 ▲0.241.79 ▲0.0742.32 ▼3.31
Dashboard /wp-admin2,195 ▲155.63 ▼0.0284.13 ▼8.3238.26 ▼0.08
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0335.59 ▼2.5333.27 ▲0.16
Add New Post /wp-admin/post-new.php1,535 ▲918.01 ▼4.86597.02 ▼35.83105.64 ▼1.89
Media Library /wp-admin/upload.php1,397 ▼04.22 ▲0.0199.55 ▲0.9244.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP26036295

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 code0.35
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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