10% bepro-listings-real-estate

Code Review | BePro Listings Real Estate

WordPress plugin BePro Listings Real Estate scored 10% from 54 tests.

About plugin

  • Plugin page: bepro-listings-re...
  • Plugin version: 1.0.22
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.5.1
  • WordPress version: 5.9.2
  • First release: May 6, 2014
  • Latest release: Sep 29, 2020
  • Number of updates: 33
  • Update frequency: every 70.9 days
  • Top authors: BeyondPrograms (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active / 7,166 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method Bepro_listings_realestate::bepro_listings_realestate_activate() should not be called statically

Server metrics [RAM: ▲0.05MB] [CPU: ▼297.59ms] Passed 4 tests

This is a short check of server-side resources used by BePro Listings Real Estate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0854.91 ▲5.67
Dashboard /wp-admin3.49 ▲0.0833.95 ▼0.90
Posts /wp-admin/edit.php3.72 ▲0.0838.53 ▲1.74
Add New Post /wp-admin/post-new.php6.95 ▼0.0292.70 ▼1,186.00
Media Library /wp-admin/upload.php3.37 ▲0.0722.81 ▼5.18

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: 2 new tables, 1 new option
New tables
wp_bepro_listings_realestate
wp_bepro_listings_realestate_types
New WordPress options
bepro_listings_realestate

Browser metrics Passed 4 tests

BePro Listings Real Estate: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.98 ▲0.315.88 ▼0.582.86 ▼0.36
Dashboard /wp-admin2,895 ▲376.12 ▼0.12119.33 ▼22.34153.53 ▼6.81
Posts /wp-admin/edit.php2,694 ▲33.36 ▲0.0061.99 ▼2.98132.60 ▼8.91
Add New Post /wp-admin/post-new.php1,661 ▼5016.87 ▼4.59434.43 ▼67.15158.02 ▼4.49
Media Library /wp-admin/upload.php1,698 ▼05.47 ▼0.05145.17 ▼5.55188.70 ▲0.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_bepro_listings_realestate
    • wp_bepro_listings_realestate_types
  • This plugin does not fully uninstall, leaving 1 option in the database
    • bepro_listings_realestate

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bepro-listings-real-estate/admin_tabs/tab-realestate.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bepro-listings-real-estate/admin_tabs/realestate.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: real estate, apartment, bepro listings, property, rent

bepro-listings-real-estate/bepro_listings_realestate.php 92% from 13 tests

Analyzing the main PHP file in "BePro Listings Real Estate" version 1.0.22
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bepro-listings-real-estate.php" instead of "bepro_listings_realestate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin246 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35536225
CSS10021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bepro_listings_realestate_sold.png5.78KB3.28KB▼ 43.29%