74% stylish-real-estate-leads

Code Review | Stylish Real Estate Leads

WordPress plugin Stylish Real Estate Leads scored74%from 54 tests.

About plugin

  • Plugin page: stylish-real-esta...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 14, 2023
  • Latest release: Oct 12, 2023
  • Number of updates: 7
  • Update frequency: every 4.1 days
  • Top authors: designful (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /117 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.41ms] Passed 4 tests

A check of server-side resources used by Stylish Real Estate Leads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1235.74 ▼8.68
Dashboard /wp-admin3.43 ▲0.0850.09 ▼14.89
Posts /wp-admin/edit.php3.54 ▲0.1848.76 ▼2.21
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.35 ▼7.62
Media Library /wp-admin/upload.php3.35 ▲0.1233.39 ▼2.46
Help /wp-admin/admin.php?page=srel-help3.3634.15
Calculators & Lead Forms /wp-admin/admin.php?page=srel-view-forms3.3738.54

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 80 new files
Database: 2 new tables, 9 new options
New tables
wp_df_srel_calculators
wp_df_srel_leads
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
SREL_MORTGAGE_CALCULATOR_VERSION
widget_recent-comments
srel_db_version
SREL_MORTGAGE_CALCULATOR_INSTALLED
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Stylish Real Estate Leads
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲2514.35 ▼0.021.65 ▼0.4538.76 ▼4.31
Dashboard /wp-admin2,217 ▲405.69 ▲0.1680.38 ▼20.7359.17 ▲13.96
Posts /wp-admin/edit.php2,128 ▲311.98 ▼0.0235.12 ▲0.1331.44 ▼8.92
Add New Post /wp-admin/post-new.php6,215 ▲4,68918.84 ▼4.21938.03 ▲241.0359.03 ▲7.45
Media Library /wp-admin/upload.php1,422 ▲284.19 ▼0.1395.10 ▼4.2361.64 ▲15.48
Help /wp-admin/admin.php?page=srel-help1,2743.7252.09118.23
Calculators & Lead Forms /wp-admin/admin.php?page=srel-view-forms1,2683.7050.9282.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_df_srel_leads
    • wp_df_srel_calculators
  • Zombie WordPress options detected upon uninstall: 9 options
    • can_compress_scripts
    • widget_recent-comments
    • SREL_MORTGAGE_CALCULATOR_VERSION
    • widget_recent-posts
    • db_upgraded
    • srel_db_version
    • SREL_MORTGAGE_CALCULATOR_INSTALLED
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=srel-view-forms
    • > Javascript (severe) in unknown
    /wp-content/plugins/stylish-real-estate-leads/backend/src/js/backend.js?ver=4.5.2 50:39 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: real estate leads, real estate calculator, mortgage calculator, property rental calculator

stylish-real-estate-leads/stylish-real-estate-leads.php 92% from 13 tests

The principal PHP file in "Stylish Real Estate Leads" v. 1.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

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
Everything looks great! No dangerous files found in this plugin15,001 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
SVG4551159,594
PHP201522632,367
CSS8260531,729
JavaScript784981,311

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity13.86
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods62
▷ Static methods914.52%
▷ Public methods4775.81%
▷ Protected methods23.23%
▷ Private methods1320.97%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 2.62MB with 1.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tooltip/infographics-realtor-message.png138.20KB46.54KB▼ 66.33%
assets/images/tooltip/infographics-phone.png203.06KB72.41KB▼ 64.34%
assets/images/tooltip/infographics-cta-title.png158.13KB53.65KB▼ 66.07%
assets/images/attachment.png0.41KB0.50KB0.00%
assets/images/tooltip/infographics-Logo.png154.26KB62.02KB▼ 59.79%