89% easy-property-listings-xml-csv-import

Code Review | Import into Easy Property Listings

WordPress plugin Import into Easy Property Listings scored89%from 54 tests.

About plugin

  • Plugin page: easy-property-lis...
  • Plugin version: 2.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4
  • WordPress version: 6.3.1
  • First release: Dec 16, 2015
  • Latest release: Nov 8, 2023
  • Number of updates: 114
  • Update frequency: every 25.4 days
  • Top authors: mervb1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /24,235 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.77ms] Passed 4 tests

This is a short check of server-side resources used by Import into Easy Property Listings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.75 ▼6.66
Dashboard /wp-admin3.31 ▼0.0345.99 ▼16.28
Posts /wp-admin/edit.php3.36 ▲0.0148.21 ▼6.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.50 ▼17.88
Media Library /wp-admin/upload.php3.24 ▲0.0134.53 ▲2.26

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import into Easy Property Listings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.14 ▼0.181.71 ▲0.1243.08 ▼0.21
Dashboard /wp-admin2,204 ▲245.62 ▼0.0090.94 ▼8.7337.76 ▼8.25
Posts /wp-admin/edit.php2,106 ▲31.95 ▼0.0738.78 ▲1.2036.67 ▲0.75
Add New Post /wp-admin/post-new.php1,532 ▲623.27 ▲0.08665.35 ▼28.8653.31 ▲2.97
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.0698.77 ▼7.9045.54 ▲1.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
These attributes need your attention: Please take inspiration from this readme.txt

easy-property-listings-xml-csv-import/epl-wp-all-import.php 85% from 13 tests

Analyzing the main PHP file in "Import into Easy Property Listings" version 2.1
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-property-listings-xml-csv-import.php" instead of "epl-wp-all-import.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,298 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP77055983,298

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity112.50
▷ Minimum class complexity16.00
▷ Maximum class complexity209.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods57
▷ Static methods11.75%
▷ Public methods5494.74%
▷ Protected methods00.00%
▷ Private methods35.26%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin