10% wp-listings-pro

Code Review | WP Listings Pro

WordPress plugin WP Listings Pro scored10%from 54 tests.

About plugin

  • Plugin page: wp-listings-pro
  • Plugin version: 3.0.14
  • PHP compatiblity: 7.0.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1.1
  • WordPress version: 6.3.1
  • First release: May 19, 2017
  • Latest release: Apr 3, 2019
  • Number of updates: 20
  • Update frequency: every 34.2 days
  • Top authors: sgarza (65%)bhubbard (40%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,765 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_taxonomy was called incorrectly. Taxonomy names must be between 1 and 32 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)

Server metrics [RAM: ▲0.71MB] [CPU: ▼34.74ms] Passed 4 tests

Analyzing server-side resources used by WP Listings Pro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.69 ▲1.2330.70 ▼10.67
Dashboard /wp-admin4.73 ▲1.3830.57 ▼35.51
Posts /wp-admin/edit.php4.73 ▲1.3731.64 ▼17.09
Add New Post /wp-admin/post-new.php4.73 ▼1.1629.97 ▼75.68
Media Library /wp-admin/upload.php4.73 ▲1.5034.19 ▼3.51
Locations /wp-admin/edit-tags.php?taxonomy=locations&post_type=listing4.7326.23
WP Listing Pro /wp-admin/plugins.php?page=wplpro_welcome_page4.7325.69
Employees /wp-admin/edit.php?post_type=employee4.7333.79
Offices /wp-admin/edit-tags.php?taxonomy=offices&post_type=employee4.7325.60
IDX Broker Import /wp-admin/edit.php?post_type=listing&page=wplistings-idx-listing4.7326.73
Property Types /wp-admin/edit-tags.php?taxonomy=property-types&post_type=listing4.7326.27
Job Types /wp-admin/edit-tags.php?taxonomy=job-types&post_type=employee4.7327.03
IDX Broker Import /wp-admin/edit.php?post_type=employee&page=wplpro-idx-agent4.7326.12
Listings /wp-admin/edit.php?post_type=listing4.7328.80
Add New /wp-admin/post-new.php?post_type=listing4.7327.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 138 new files
Database: no new tables, 14 new options
New WordPress options
WPLPRO_Taxonomies
wplpro_plugin_settings
db_upgraded
widget_wplpro_employee
widget_recent-comments
status_children
WPLPROAgents_taxonomies
widget_wplpro_listings_search
theysaidso_admin_options
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Listings Pro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,058 ▲31213.47 ▼0.7010.47 ▲8.6939.33 ▼4.88
Dashboard /wp-admin2,340 ▲1725.66 ▲0.0694.12 ▼4.6147.72 ▼12.26
Posts /wp-admin/edit.php2,231 ▲1342.01 ▼0.0039.90 ▲4.1536.00 ▲0.03
Add New Post /wp-admin/post-new.php1,654 ▲10722.26 ▼0.93690.36 ▲53.6138.78 ▼20.38
Media Library /wp-admin/upload.php1,522 ▲1194.26 ▲0.0599.13 ▲2.3847.09 ▲4.70
Locations /wp-admin/edit-tags.php?taxonomy=locations&post_type=listing1,4392.1527.6929.70
WP Listing Pro /wp-admin/plugins.php?page=wplpro_welcome_page9632.0731.0350.54
Employees /wp-admin/edit.php?post_type=employee1,2281.9639.3936.02
Offices /wp-admin/edit-tags.php?taxonomy=offices&post_type=employee1,4452.1530.9633.92
IDX Broker Import /wp-admin/edit.php?post_type=listing&page=wplistings-idx-listing1,1523.5258.7732.91
Property Types /wp-admin/edit-tags.php?taxonomy=property-types&post_type=listing1,9772.3131.8434.95
Job Types /wp-admin/edit-tags.php?taxonomy=job-types&post_type=employee1,4422.1526.3232.67
IDX Broker Import /wp-admin/edit.php?post_type=employee&page=wplpro-idx-agent1,1603.5749.57101.28
Listings /wp-admin/edit.php?post_type=listing1,2321.9632.0931.21
Add New /wp-admin/post-new.php?post_type=listing7,32426.34917.1964.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-listings-pro/includes/class-agents.php+145
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • WPLPRO_Taxonomies
    • status_children
    • widget_wplpro_listings_search
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • property-types_children
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=listing
    • > Notice in wp-content/plugins/wp-listings-pro/includes/class-agents.php+145
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=wplpro_welcome_page
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=employee&page=wplpro-idx-agent
    • > Notice in wp-content/plugins/wp-listings-pro/includes/class-agent-import.php+592
    Undefined index: agentID
    • > GET request to /wp-admin/edit.php?post_type=employee&page=wplpro-idx-agent
    • > Notice in wp-content/plugins/wp-listings-pro/includes/class-agent-import.php+587
    Undefined index: agentDisplayName
    • > GET request to /wp-admin/edit.php?post_type=employee&page=wplpro-idx-agent
    • > Notice in wp-content/plugins/wp-listings-pro/includes/class-agent-import.php+588
    Undefined index: agentTitle
    • > GET request to /wp-admin/post-new.php?post_type=listing
    • > User notice in wp-includes/functions.php+5905
    Function register_taxonomy was called incorrectly. The "status" taxonomy "rest_base" property (status) conflicts with an existing property on the REST API Posts Controller. Specify a custom "rest_base" when registering the taxonomy to avoid this error. Please see Debugging in WordPress for more information. (This message was added in version 5.4.0.)

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 take a closer look at the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_meta() in wp-content/plugins/wp-listings-pro/includes/class-listing-register-meta.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-listings-pro/includes/class-custom-post-types.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-listings-pro/modules/class-wplpro-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/wp-listings-pro/includes/wp-background-processing/classes/wp-background-process.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-listings-pro/includes/widgets/class-wp-listings-featured-listings-widget.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-listings-pro/includes/widgets/class-wp-listings-search-widget.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=employee&page=wplpro-idx-agent
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-listings-pro/assets/js/imagesloaded.min.js?ver=6.3.1 0:888 Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-listings-pro/wp-listings-pro.php Passed 13 tests

"WP Listings Pro" version 3.0.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Manages both listings and agents through an IDX broker or invidually, along with linking them together.

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 plugin88,929 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
XML20062,747
JSON110012,000
PHP633,0227,15610,576
Sass8394362,048
JavaScript101551551,539
CSS1801118
YAML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.72
▷ Minimum class complexity1.00
▷ Maximum class complexity89.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
Methods299
▷ Static methods217.02%
▷ Public methods27591.97%
▷ Protected methods248.03%
▷ Private methods00.00%
Functions114
▷ Named functions11096.49%
▷ Anonymous functions43.51%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/controls.png1.33KB1.42KB0.00%
assets/images/equity-ad.png24.32KB14.93KB▼ 38.61%
assets/images/imforza-bolt.png4.22KB4.22KB0.00%
assets/images/imforza-logo-w.png14.72KB14.58KB▼ 0.99%
assets/images/no-photo-full.png8.45KB8.46KB0.00%