78% wp-property-listings

Code Review | WP Propery Listings

WordPress plugin WP Propery Listings scored78%from 54 tests.

About plugin

  • Plugin page: wp-property-listings
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Feb 1, 2017
  • Latest release: Feb 4, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: rohitink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /13,642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.11ms] Passed 4 tests

Analyzing server-side resources used by WP Propery Listings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.72 ▲4.89
Dashboard /wp-admin3.37 ▲0.0643.66 ▼7.87
Posts /wp-admin/edit.php3.42 ▲0.0647.41 ▲4.61
Add New Post /wp-admin/post-new.php5.96 ▲0.0680.39 ▼20.82
Media Library /wp-admin/upload.php3.29 ▲0.0633.12 ▼0.35
WP Property Listings /wp-admin/options-general.php?page=wp_property_listings3.2428.22

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Propery Listings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.25 ▼0.101.53 ▼0.0740.25 ▲0.91
Dashboard /wp-admin2,213 ▲335.63 ▲0.0492.26 ▲2.7939.40 ▲1.77
Posts /wp-admin/edit.php2,119 ▲221.99 ▼0.0242.94 ▲7.0436.78 ▼2.15
Add New Post /wp-admin/post-new.php6,412 ▲4,87218.65 ▼4.46845.50 ▲238.1468.44 ▲18.72
Media Library /wp-admin/upload.php1,412 ▲94.19 ▲0.0295.18 ▼0.9541.70 ▼3.49
WP Property Listings /wp-admin/options-general.php?page=wp_property_listings8022.0426.0826.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp_property_listings
    • > Notice in wp-content/plugins/wp-property-listings/wp-property-listings.php+218
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-property-listings/wp-property-listings.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #2 (Select Location, where the slider should appear.)
  • Plugin Name: Please specify the plugin name on the first line ( === wp-property-listings === )
Please take inspiration from this readme.txt

wp-property-listings/wp-property-listings.php 92% from 13 tests

Analyzing the main PHP file in "WP Propery Listings" version 1.0.1
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 249 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
Everything looks great! No dangerous files found in this plugin181 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14421181

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin