84% properties

Code Review | Properties

WordPress plugin Properties scored 84% from 54 tests.

About plugin

  • Plugin page: properties
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2016
  • Latest release: Sep 24, 2016
  • Number of updates: 17
  • Update frequency: every 5.8 days
  • Top authors: sergeliatko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▲1.79ms] Passed 4 tests

Analyzing server-side resources used by Properties
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2136.47 ▼0.71
Dashboard /wp-admin3.51 ▲0.2151.34 ▲1.71
Posts /wp-admin/edit.php3.64 ▲0.2846.52 ▲0.76
Add New Post /wp-admin/post-new.php6.10 ▲0.21103.15 ▲9.83
Media Library /wp-admin/upload.php3.43 ▲0.2140.36 ▲5.40
Settings /wp-admin/edit.php?post_type=property&page=properties_plugin3.4541.70
Complexes /wp-admin/edit-tags.php?taxonomy=property_complex&post_type=property3.4335.32
Collections /wp-admin/edit-tags.php?taxonomy=property_collection&post_type=property3.4335.76
Areas /wp-admin/edit-tags.php?taxonomy=property_area&post_type=property3.4335.83
Add New /wp-admin/post-new.php?post_type=property3.5754.88
Types /wp-admin/edit-tags.php?taxonomy=property_type&post_type=property3.4343.21
All Properties /wp-admin/edit.php?post_type=property3.4938.51

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Properties
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11513.15 ▼1.501.67 ▼0.0239.20 ▼5.04
Dashboard /wp-admin2,253 ▲675.83 ▲0.8697.76 ▼8.6543.05 ▲0.60
Posts /wp-admin/edit.php2,133 ▲472.00 ▲0.0337.92 ▲4.4534.24 ▼0.29
Add New Post /wp-admin/post-new.php1,575 ▲4118.20 ▼4.90642.42 ▼18.0762.47 ▲15.65
Media Library /wp-admin/upload.php1,438 ▲474.22 ▲0.0398.79 ▼1.2642.94 ▼1.79
Settings /wp-admin/edit.php?post_type=property&page=properties_plugin9492.3135.8435.30
Complexes /wp-admin/edit-tags.php?taxonomy=property_complex&post_type=property1,2782.1327.7527.24
Collections /wp-admin/edit-tags.php?taxonomy=property_collection&post_type=property1,2812.1425.3426.56
Areas /wp-admin/edit-tags.php?taxonomy=property_area&post_type=property1,3062.1425.9125.94
Add New /wp-admin/post-new.php?post_type=property2,5967.97171.6864.01
Types /wp-admin/edit-tags.php?taxonomy=property_type&post_type=property1,3062.1325.9127.26
All Properties /wp-admin/edit.php?post_type=property1,1571.9430.0035.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/properties/properties.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: real estate properties, real estate, property, cms, properties...

properties/properties.php Passed 13 tests

The main PHP script in "Properties" version 0.1.4 is automatically included on every request by WordPress
114 characters long description:
Adds new content type to your website - Properties. Allows you to publish and organize real estate property pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,025 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP482106618
PO File1139152316
CSS20056
JavaScript10035

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.67
▷ Minimum class complexity5.00
▷ Maximum class complexity19.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods43
▷ Static methods4195.35%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin