84% vw-property-listing

Code Review | VW Property Listing

WordPress plugin VW Property Listing scored 84% from 54 tests.

About plugin

  • Plugin page: vw-property-listing
  • Plugin version: 1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: Nov 30, 2020
  • Number of updates: 5
  • Update frequency: every 188.6 days
  • Top authors: vowelweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,236 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.71ms] Passed 4 tests

Analyzing server-side resources used by VW Property Listing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.11 ▼7.30
Dashboard /wp-admin3.37 ▲0.0745.27 ▼8.55
Posts /wp-admin/edit.php3.42 ▲0.0748.67 ▲1.49
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.90 ▼8.49
Media Library /wp-admin/upload.php3.30 ▲0.0735.37 ▲2.85
Add New /wp-admin/post-new.php?post_type=vplaproperties3.4455.41
Properties /wp-admin/edit.php?post_type=vplaproperties3.3438.55
Properties Packages /wp-admin/edit-tags.php?taxonomy=vplapropertiescat&post_type=vplaproperties3.2933.58

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

VW Property Listing: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲14213.19 ▼1.181.84 ▼0.0440.31 ▼9.33
Dashboard /wp-admin2,255 ▲674.89 ▲0.01108.29 ▼8.3432.97 ▼15.88
Posts /wp-admin/edit.php2,135 ▲462.06 ▲0.0437.16 ▲1.1029.17 ▼6.33
Add New Post /wp-admin/post-new.php1,569 ▲3623.35 ▼0.13667.65 ▲22.0363.39 ▲5.26
Media Library /wp-admin/upload.php1,440 ▲554.22 ▲0.0194.86 ▼7.0645.17 ▼0.29
Add New /wp-admin/post-new.php?post_type=vplaproperties2,8247.73185.0772.19
Properties /wp-admin/edit.php?post_type=vplaproperties1,1521.9530.5728.10
Properties Packages /wp-admin/edit-tags.php?taxonomy=vplapropertiescat&post_type=vplaproperties1,3142.2628.2024.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vw-property-listing/show-listing.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_role() in wp-content/plugins/vw-property-listing/agent-options.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vw-property-listing/listing-options.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vw-property-listing/add-tabs.php:5

User-side errors Passed 1 test

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

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
Attributes that require attention: The official readme.txt might help

vw-property-listing/index.php 92% from 13 tests

Analyzing the main PHP file in "VW Property Listing" version 1.3
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vw-property-listing.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin255 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53357228
CSS10127

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.42MB with 0.27MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot2.png166.94KB60.20KB▼ 63.94%
images/screenshot3.png97.56KB35.85KB▼ 63.25%
images/screenshot1.png68.71KB24.94KB▼ 63.71%
images/screenshot4.png93.42KB33.95KB▼ 63.66%