83% easy-mls-listings-import

Code Review | Easy MLS Listings Import

WordPress plugin Easy MLS Listings Import scored83%from 54 tests.

About plugin

  • Plugin page: easy-mls-listings...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: Mar 17, 2023
  • Number of updates: 8
  • Update frequency: every 129.6 days
  • Top authors: homeasap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,313 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.46ms] Passed 4 tests

Server-side resources used by Easy MLS Listings Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.99 ▼2.31
Dashboard /wp-admin3.32 ▲0.0144.76 ▼2.82
Posts /wp-admin/edit.php3.37 ▲0.0143.70 ▼5.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.07 ▲5.46
Media Library /wp-admin/upload.php3.24 ▲0.0136.01 ▲4.60
Easy MLS Listings Import /wp-admin/options-general.php?page=homeasap-featured-listings3.2530.31

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Easy MLS Listings Import
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.41 ▼0.948.77 ▲7.1142.10 ▼0.78
Dashboard /wp-admin2,203 ▲235.62 ▼0.1285.28 ▲1.7939.75 ▲1.58
Posts /wp-admin/edit.php2,109 ▲92.15 ▲0.1733.70 ▼3.9932.07 ▲0.78
Add New Post /wp-admin/post-new.php1,537 ▲1123.01 ▼0.33660.73 ▲56.7940.90 ▼13.20
Media Library /wp-admin/upload.php1,422 ▲254.25 ▲0.0988.33 ▼15.7241.22 ▼2.60
Easy MLS Listings Import /wp-admin/options-general.php?page=homeasap-featured-listings1,0431.9430.1141.68

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-mls-listings-import/admin/partials/homeasap-featured-listings-admin-display.php
    • > /wp-content/plugins/easy-mls-listings-import/public/partials/homeasap-featured-listings-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-mls-listings-import/homeasap-featured-listings.php 77% from 13 tests

The primary PHP file in "Easy MLS Listings Import" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 150 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-mls-listings-import.php" instead of "homeasap-featured-listings.php")

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 plugin728 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS24435381
PHP12152547295
JavaScript232752

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.71
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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