79% real-estate-agencies

Code Review | Real Estate Agencies

WordPress plugin Real Estate Agencies scored79%from 54 tests.

About plugin

  • Plugin page: real-estate-agencies
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 12, 2018
  • Latest release: Aug 12, 2018
  • Number of updates: 3
  • Update frequency: every 20.0 days
  • Top authors: pearlthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.55MB] [CPU: ▼0.42ms] Passed 4 tests

Analyzing server-side resources used by Real Estate Agencies
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5643.85 ▼1.06
Dashboard /wp-admin3.85 ▲0.5555.46 ▲2.89
Posts /wp-admin/edit.php3.90 ▲0.5559.14 ▲6.63
Add New Post /wp-admin/post-new.php6.54 ▲0.6591.10 ▼8.37
Media Library /wp-admin/upload.php3.78 ▲0.5542.71 ▲4.86
Add New /wp-admin/post-new.php?post_type=agent6.5591.92
All Agents /wp-admin/edit.php?post_type=agent3.8240.67
Welcome to Meta Box /wp-admin/index.php?page=meta-box-about3.7539.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 277 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Real Estate Agencies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲12013.42 ▼0.818.82 ▲6.7238.32 ▼11.00
Dashboard /wp-admin2,223 ▲435.56 ▼0.0886.62 ▼0.9137.28 ▼4.90
Posts /wp-admin/edit.php2,131 ▲311.99 ▲0.0439.96 ▲3.8036.53 ▲2.96
Add New Post /wp-admin/post-new.php1,553 ▲2723.38 ▲0.16684.35 ▼4.9451.93 ▼7.11
Media Library /wp-admin/upload.php1,434 ▲314.13 ▼0.0894.48 ▼3.3743.04 ▼3.22
Add New /wp-admin/post-new.php?post_type=agent6,31118.95881.4739.98
All Agents /wp-admin/edit.php?post_type=agent1,1361.9631.5232.95
Welcome to Meta Box /wp-admin/index.php?page=meta-box-about9132.1424.2855.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/real-estate-agencies/admin/partials/real-estate-agencies-admin-display.php
    • > /wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/templates/upload.php
    • > /wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/templates/media.php
    • > /wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/templates/video.php
    • > /wp-content/plugins/real-estate-agencies/public/partials/real-estate-agencies-public-display.php
    • > /wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/templates/audio.php
  • 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/sidebar.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/text-list.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/textarea.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/divider.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/oembed.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/slider.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/color.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_List_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/radio.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/choice.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/real-estate-agencies/plugins/meta-box/inc/fields/select.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: properties, listing, property, real estate, agent

real-estate-agencies/real-estate-agencies.php Passed 13 tests

The main PHP file in "Real Estate Agencies" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
A plugin that offers real estate Agent custom post type to list agents on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected10,089 lines of code in 239 files:
LanguageFilesBlank linesComment linesLines of code
PHP1011,0314,2644,548
JavaScript864645992,053
CSS371281171,825
PO File146066731,653
Markdown19010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.43
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes85
▷ Abstract classes67.06%
▷ Concrete classes7992.94%
▷ Final classes00.00%
Methods393
▷ Static methods26868.19%
▷ Public methods36693.13%
▷ Protected methods225.60%
▷ Private methods51.27%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugins/meta-box/img/jqueryui/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
plugins/meta-box/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
plugins/meta-box/inc/about/images/meta-box.png0.65KB0.72KB0.00%
plugins/meta-box/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
plugins/meta-box/img/jqueryui/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%