78% mme-real-estate

Code Review | MME Real Estate

WordPress plugin MME Real Estate scored78%from 54 tests.

About plugin

  • Plugin page: mme-real-estate
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.4.8+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2022
  • Latest release: Sep 16, 2023
  • Number of updates: 17
  • Update frequency: every 26.2 days
  • Top authors: mmefectiva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.28MB] [CPU: ▲4.81ms] Passed 4 tests

This is a short check of server-side resources used by MME Real Estate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2746.81 ▲10.99
Dashboard /wp-admin3.57 ▲0.2755.50 ▲9.52
Posts /wp-admin/edit.php3.66 ▲0.3155.98 ▲8.44
Add New Post /wp-admin/post-new.php6.30 ▲0.4188.17 ▼4.58
Media Library /wp-admin/upload.php3.49 ▲0.2639.95 ▲5.87
How to start /wp-admin/edit.php?post_type=mmeproperties&page=mme-real-estate/admin/views/how-to-start.php3.5036.82
Set up /wp-admin/edit.php?post_type=mmeproperties&page=mme-real-estate/admin/views/set-up.php3.5645.37
Property list /wp-admin/edit.php?post_type=mmeproperties3.5240.91
Shortcodes /wp-admin/edit.php?post_type=mmeproperties&page=mme-real-estate/admin/views/shortcodes.php3.4636.78
Localities /wp-admin/edit-tags.php?taxonomy=mmelocalities&post_type=mmeproperties3.4837.92
New property /wp-admin/post-new.php?post_type=mmeproperties6.30115.00

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
symbol_location
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
mostrar_poweredby

Browser metrics Passed 4 tests

Checking browser requirements for MME Real Estate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21113.68 ▼0.728.00 ▲6.3743.07 ▲2.73
Dashboard /wp-admin2,249 ▲574.86 ▼0.0499.11 ▼9.9737.44 ▼4.05
Posts /wp-admin/edit.php2,136 ▲472.05 ▲0.0535.30 ▲1.6431.74 ▼6.28
Add New Post /wp-admin/post-new.php1,553 ▲3123.02 ▼0.19686.99 ▼2.4351.29 ▼12.37
Media Library /wp-admin/upload.php1,431 ▲434.22 ▲0.0598.26 ▼13.9342.39 ▼6.01
How to start /wp-admin/edit.php?post_type=mmeproperties&page=mme-real-estate/admin/views/how-to-start.php9662.0723.5836.96
Set up /wp-admin/edit.php?post_type=mmeproperties&page=mme-real-estate/admin/views/set-up.php1,2682.0624.7136.95
Property list /wp-admin/edit.php?post_type=mmeproperties1,1081.9531.5429.94
Shortcodes /wp-admin/edit.php?post_type=mmeproperties&page=mme-real-estate/admin/views/shortcodes.php8712.0426.5934.73
Localities /wp-admin/edit-tags.php?taxonomy=mmelocalities&post_type=mmeproperties1,3082.1426.8128.96
New property /wp-admin/post-new.php?post_type=mmeproperties1,87316.86863.4243.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • symbol_location
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mme-real-estate/admin/images/index.php
    • > /wp-content/plugins/mme-real-estate/index.php
    • > /wp-content/plugins/mme-real-estate/admin/index.php
    • > /wp-content/plugins/mme-real-estate/public/index.php
    • > /wp-content/plugins/mme-real-estate/admin/css/index.php
    • > /wp-content/plugins/mme-real-estate/admin/views/index.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/mme-real-estate/admin/views/how-to-start.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mme-real-estate/mme-real-estate.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mmerealestate_get_permalink_structure() in wp-content/plugins/mme-real-estate/public/views/inc-propiedades-list.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/mme-real-estate/admin/views/set-up.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/mme-real-estate/admin/views/shortcodes.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mme-real-estate/public/commons.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

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

The principal PHP file in "MME Real Estate" v. 1.2.2 is loaded by WordPress automatically on each request
27 characters long description:
Simple real estate listing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,493 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP122702872,802
CSS41126539
JavaScript230152

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/image-not-available.png23.50KB6.58KB▼ 72.02%
admin/images/logo-mme.png2.55KB1.33KB▼ 47.83%
admin/images/mme-real-estate-plugin-ico.png6.27KB2.71KB▼ 56.77%