78% apex-idx

Code Review | Apex IDX

WordPress plugin Apex IDX scored78%from 54 tests.

About plugin

  • Plugin page: apex-idx
  • Plugin version: 3.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: Sep 6, 2023
  • Number of updates: 250
  • Update frequency: every 11.5 days
  • Top authors: RealtyTech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.49ms] Passed 4 tests

A check of server-side resources used by Apex IDX
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.45 ▲0.78
Dashboard /wp-admin3.33 ▲0.0247.60 ▼5.94
Posts /wp-admin/edit.php3.38 ▲0.0251.78 ▲0.22
Add New Post /wp-admin/post-new.php5.91 ▲0.02102.03 ▲3.00
Media Library /wp-admin/upload.php3.25 ▲0.0240.20 ▲6.77
i. API Console /wp-admin/admin.php?page=apexApiVerification3.2432.74
iii. Idx Pages /wp-admin/admin.php?page=RTapexAgentDefaultPages3.0125.26
ii. Widgets /wp-admin/admin.php?page=RTapexAgentWidgets3.0126.27

Server storage [IO: ▲2.37MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: 2 new tables, 6 new options
New tables
wp_realty_tech_api
wp_realty_tech_links
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Apex IDX
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲6013.27 ▼1.011.73 ▼0.3642.62 ▼5.70
Dashboard /wp-admin2,255 ▲494.86 ▼0.09107.23 ▼14.9738.71 ▼8.43
Posts /wp-admin/edit.php2,131 ▲282.00 ▼0.0138.67 ▼3.1536.00 ▼1.50
Add New Post /wp-admin/post-new.php1,551 ▲2517.47 ▼0.28611.47 ▼17.6662.80 ▲15.30
Media Library /wp-admin/upload.php1,431 ▲314.17 ▲0.03102.89 ▼0.2246.36 ▲1.30
i. API Console /wp-admin/admin.php?page=apexApiVerification8171.7224.8851.51
iii. Idx Pages /wp-admin/admin.php?page=RTapexAgentDefaultPages8381.7124.5625.65
ii. Widgets /wp-admin/admin.php?page=RTapexAgentWidgets8201.7625.4626.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • apexAgentApiKey
    • widget_recent-posts
    • ApexIdxIsBroker
    • widget_theysaidso_widget
    • ApexIdxDomainUrl
    • can_compress_scripts
    • ApexIdxBrokerGalUname

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/apex-idx/views/apexIdxFeaturedMarket.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/apex-idx/views/apexIdxPages.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/apex-idx/RTapexIdxGlobal.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/apex-idx/views/apexIdxForm.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/apex-idx/views/apexIdxSearchFormWidget.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/apex-idx/views/apexIdxWidget.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

apex-idx/RTapexIdxGlobal.php 92% from 13 tests

Analyzing the main PHP file in "Apex IDX" version 3.1.3
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("apex-idx.php" instead of "RTapexIdxGlobal.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
Success! There were no dangerous files found in this plugin1,767 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP8235741,684
JavaScript57077
CSS6006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity109.00
▷ Minimum class complexity109.00
▷ Maximum class complexity109.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods41
▷ Static methods41100.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.68MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/search-icon.png1.24KB0.50KB▼ 59.38%
images/searchwidget.png118.69KB35.83KB▼ 69.81%
images/GridSlider.png1,589.42KB360.11KB▼ 77.34%
images/snpshot.png8.03KB3.81KB▼ 52.48%
images/dropDownArrow.png1.14KB0.17KB▼ 84.81%