84% property-permissions-for-realhomes

Code Review | Property Permissions for RealHomes

WordPress plugin Property Permissions for RealHomes scored84%from 54 tests.

About plugin

  • Plugin page: property-permissi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2020
  • Latest release: Nov 9, 2020
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: hassanraza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /409 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.15ms] Passed 4 tests

This is a short check of server-side resources used by Property Permissions for RealHomes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1041.97 ▼4.91
Dashboard /wp-admin3.40 ▲0.1049.56 ▼7.77
Posts /wp-admin/edit.php3.51 ▲0.1655.29 ▲7.52
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.94 ▼24.83
Media Library /wp-admin/upload.php3.32 ▲0.0938.44 ▲0.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Property Permissions for RealHomes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.41 ▼1.227.83 ▲5.3542.12 ▼2.08
Dashboard /wp-admin2,199 ▲195.58 ▼0.1086.75 ▼1.1438.63 ▼2.39
Posts /wp-admin/edit.php2,101 ▲42.02 ▼0.0336.95 ▼2.0033.13 ▼1.09
Add New Post /wp-admin/post-new.php1,530 ▼2423.39 ▲5.26681.21 ▲51.9257.82 ▲1.75
Media Library /wp-admin/upload.php1,398 ▲44.19 ▲0.01104.70 ▲2.1644.72 ▼1.06

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/property-permissions-for-realhomes/public/partials/property-permissions-for-realhomes-public-display.php
    • > /wp-content/plugins/property-permissions-for-realhomes/admin/partials/property-permissions-for-realhomes-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: permissions, users, real-estate, realhomes, inspirythemes

property-permissions-for-realhomes/property-permissions-for-realhomes.php 92% from 13 tests

The main file in "Property Permissions for RealHomes" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 184 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
Good job! No executable or dangerous file extensions detected335 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13165557329
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.38
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin