78% vistawp

Code Review | WordPress IDX Plugin – VistaWP

WordPress plugin WordPress IDX Plugin – VistaWP scored78%from 54 tests.

About plugin

  • Plugin page: vistawp
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.4.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jun 11, 2023
  • Latest release: Nov 22, 2023
  • Number of updates: 31
  • Update frequency: every 5.6 days
  • Top authors: vistawp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.99ms] Passed 4 tests

A check of server-side resources used by WordPress IDX Plugin – VistaWP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.56 ▼0.93
Dashboard /wp-admin3.42 ▲0.1249.63 ▼0.90
Posts /wp-admin/edit.php3.48 ▲0.1249.97 ▼2.07
Add New Post /wp-admin/post-new.php5.96 ▲0.0882.81 ▼12.05
Media Library /wp-admin/upload.php3.28 ▲0.0639.22 ▲7.25
License /wp-admin/admin.php?page=vista_license3.2529.83
Vista /wp-admin/admin.php?page=vista_main3.3033.32

Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
vistawp_welcome_header_displayed
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress IDX Plugin – VistaWP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8414.08 ▼0.191.72 ▲0.0137.33 ▼9.31
Dashboard /wp-admin2,221 ▲445.56 ▼0.0794.35 ▼3.0469.19 ▲23.33
Posts /wp-admin/edit.php2,126 ▲261.98 ▼0.0336.56 ▼7.4732.46 ▼5.88
Add New Post /wp-admin/post-new.php1,702 ▲17121.92 ▼0.82801.82 ▲113.4354.36 ▼2.17
Media Library /wp-admin/upload.php1,420 ▲204.04 ▼0.1095.06 ▼7.1777.71 ▲32.09
License /wp-admin/admin.php?page=vista_license8741.9924.9137.07
Vista /wp-admin/admin.php?page=vista_main1,5218.90285.2586.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/vistawp/templates/pages/main_page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/number-field.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/text-field.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/select.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vistawp/templates/fields/checkbox.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=vista_main
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=vista_main 156 Unrecognized feature: 'web-share'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #7 in vistawp/assets to your readme.txt
You can take inspiration from this readme.txt

vistawp/vista.php 92% from 13 tests

"WordPress IDX Plugin – VistaWP" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("vistawp.php" instead of "vista.php")

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 plugin3,490 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP376411,8032,381
CSS614142967
JavaScript337103119
SVG10123

PHP code Passed 2 tests

An short overview of 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.39
Average class complexity10.09
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes31
▷ Abstract classes516.13%
▷ Concrete classes2683.87%
▷ Final classes00.00%
Methods147
▷ Static methods85.44%
▷ Public methods7752.38%
▷ Protected methods5738.78%
▷ Private methods138.84%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants53
▷ Global constants47.55%
▷ Class constants4992.45%
▷ Public constants1224.49%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/marker-shadow.png0.60KB1.16KB0.00%
img/layers-2x.png1.23KB1.67KB0.00%
img/dashboard_logo.png1.23KB0.95KB▼ 22.52%
img/marker-icon-2x.png2.41KB2.52KB0.00%
img/layers.png0.68KB1.05KB0.00%