10% wovax-idx

Code Review | Wovax IDX

WordPress plugin Wovax IDX scored10%from 54 tests.

About plugin

  • Plugin page: wovax-idx
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2017
  • Latest release: Sep 29, 2022
  • Number of updates: 283
  • Update frequency: every 6.3 days
  • Top authors: wovax (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

70+ active /15,340 total downloads

Benchmarks

Plugin footprint 23% 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
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wovax-idx/wovax-idx.php+420
    Undefined index: DetailsBlocksMode

Server metrics [RAM: ▼1.31MB] [CPU: ▼50.98ms] Passed 4 tests

Server-side resources used by Wovax IDX
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.69 ▼0.778.87 ▼29.12
Dashboard /wp-admin2.71 ▼0.6312.37 ▼45.16
Posts /wp-admin/edit.php2.71 ▼0.6411.37 ▼35.59
Add New Post /wp-admin/post-new.php2.71 ▼3.179.29 ▼94.04
Media Library /wp-admin/upload.php2.71 ▼0.5212.44 ▼22.03
Settings /wp-admin/admin.php?page=wovax_idx_settings2.7110.61
Shortcodes /wp-admin/admin.php?page=wovax_idx_shortcode_list2.7113.79
Groups /wp-admin/admin.php?page=wovax_idx_groups2.719.49
Shortcodes /wp-admin/admin.php?page=wovax_idx_shortcodes2.7111.09
IDX Feeds /wp-admin/admin.php?page=wovax_idx_feeds2.7111.58

Server storage [IO: ▲1.32MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 99 new files
Database: 6 new tables, 17 new options
New tables
wp_wovax_idx_feed_rules
wp_wovax_idx_feeds
wp_wovax_idx_shortcode_filters
wp_wovax_idx_shortcode
wp_wovax_idx_feed_fields
wp_wovax_idx_shortcode_rules
New WordPress options
wovax-idx-settings-details-block-mode
wovax-idx-settings-styling-floating-label
wovax-idx-settings-styling-css
theysaidso_admin_options
wovax-idx-settings-users-registration-force
wovax-idx-upgrade-tracker
widget_recent-posts
can_compress_scripts
wovax-idx-settings-users-saved-searches
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wovax IDX
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,050 ▲30414.05 ▼0.337.75 ▲6.0532.78 ▼11.48
Dashboard /wp-admin2,314 ▲1295.22 ▲0.32107.89 ▼2.3943.29 ▼1.05
Posts /wp-admin/edit.php2,204 ▲1152.45 ▲0.4242.92 ▲1.9334.69 ▼1.55
Add New Post /wp-admin/post-new.php1,573 ▲4518.29 ▼0.10626.19 ▲28.2035.02 ▼19.67
Media Library /wp-admin/upload.php1,506 ▲1184.69 ▲0.45109.87 ▲12.7348.19 ▲3.03
Settings /wp-admin/admin.php?page=wovax_idx_settings1,2963.5560.7029.95
Shortcodes /wp-admin/admin.php?page=wovax_idx_shortcode_list1,3472.2532.4229.66
Groups /wp-admin/admin.php?page=wovax_idx_groups9002.2530.0824.43
Shortcodes /wp-admin/admin.php?page=wovax_idx_shortcodes1,2112.2531.5627.03
IDX Feeds /wp-admin/admin.php?page=wovax_idx_feeds1,1922.3937.4527.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wovax-idx-shortcode handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables were found after uninstall: 6 tables
    • wp_wovax_idx_shortcode_filters
    • wp_wovax_idx_feed_fields
    • wp_wovax_idx_shortcode
    • wp_wovax_idx_feed_rules
    • wp_wovax_idx_feeds
    • wp_wovax_idx_shortcode_rules
  • This plugin did not uninstall successfully, leaving 17 options in the database
    • wovax-idx-settings-styling-js
    • widget_recent-comments
    • theysaidso_admin_options
    • wovax-idx-settings-users-registration
    • wovax-idx-settings-users-saved-searches
    • can_compress_scripts
    • wovax-idx-settings-users-registration-force-count
    • db_upgraded
    • wovax-idx-settings-styling-floating-label
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wovax_idx_feeds
    • > POST request to /wp-admin/admin-ajax.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wovax-idx-shortcode handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wovax_idx_feeds
    • > POST request to /wp-admin/admin-ajax.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the slickcss handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wovax_idx_feeds
    • > POST request to /wp-admin/admin-ajax.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the slickjs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wovax_idx_feeds
    • > Notice in wp-content/plugins/wovax-idx/functions.php+161
    Undefined property: stdClass::$type
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcodes
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcodes.php+31
    Undefined index: s
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcode_list
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcode-list.php+281
    Undefined index: order
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcodes
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcodes.php+28
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcodes
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcodes.php+29
    Undefined index: action
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcodes
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcodes.php+30
    Undefined index: f
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcodes
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcodes.php+33
    Undefined index: t
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcodes
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcodes.php+89
    Undefined variable: current_published
    • > GET request to /wp-admin/admin.php?page=wovax_idx_shortcodes
    • > Notice in wp-content/plugins/wovax-idx/admin/pages/shortcodes.php+90
    Undefined variable: current_trash
    • > GET request to /wp-admin/admin.php?page=wovax_idx_feeds
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wovax-idx/functions.php+261
    Undefined property: stdClass::$data
    • > GET request to /wp-admin/admin.php?page=wovax_idx_feeds
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wovax-idx/wovax-idx-ajax.php+480
    Undefined variable: columns_count
    • > GET request to /wp-admin/admin.php?page=wovax_idx_feeds
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wovax-idx/wovax-idx-ajax.php+480
    Undefined variable: table_html

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wovax-idx/admin/pages/groups.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

wovax-idx/wovax-idx.php 92% from 13 tests

The main PHP script in "Wovax IDX" version 1.2.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin24,030 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PHP461,06468613,832
JavaScript261,4711,0937,328
CSS15219431,848
JSX28161,009
SVG11013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.44
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes63
▷ Abstract classes1015.87%
▷ Concrete classes5384.13%
▷ Final classes00.00%
Methods393
▷ Static methods205.09%
▷ Public methods29775.57%
▷ Protected methods4812.21%
▷ Private methods4812.21%
Functions177
▷ Named functions15185.31%
▷ Anonymous functions2614.69%
Constants34
▷ Global constants38.82%
▷ Class constants3191.18%
▷ Public constants31100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/graphics/placeholder.png1.18KB0.14KB▼ 88.10%
assets/graphics/spotlight-poi_hdpi.png1.38KB0.96KB▼ 30.59%
assets/graphics/spotlight-poi.png0.79KB0.72KB▼ 9.25%