89% easy-listings-map

Code Review | Easy Listings Map

WordPress plugin Easy Listings Map scored89%from 54 tests.

About plugin

  • Plugin page: easy-listings-map
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Jan 20, 2017
  • Number of updates: 21
  • Update frequency: every 28.0 days
  • Top authors: c0dezer0 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /6,080 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.46ms] Passed 4 tests

A check of server-side resources used by Easy Listings Map
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.63 ▲0.19
Dashboard /wp-admin3.35 ▼0.0048.27 ▼16.18
Posts /wp-admin/edit.php3.46 ▲0.1052.26 ▼0.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.67 ▲2.24
Media Library /wp-admin/upload.php3.27 ▲0.0440.67 ▲3.54

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
asana_active_free_plugin

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Listings Map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.25 ▼0.111.67 ▲0.0141.60 ▲2.36
Dashboard /wp-admin2,201 ▲245.55 ▼0.0589.52 ▼3.6240.08 ▼0.86
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0139.07 ▼1.0536.19 ▼3.32
Add New Post /wp-admin/post-new.php1,536 ▼123.24 ▲5.13674.98 ▲35.1752.48 ▼12.58
Media Library /wp-admin/upload.php1,406 ▲64.23 ▲0.04101.97 ▼6.5645.81 ▲0.84

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in easy-listings-map/assets to your readme.txt
You can look at the official readme.txt

easy-listings-map/easy_listings_map.php 85% from 13 tests

The entry point to "Easy Listings Map" version 1.2.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-listings-map.php" instead of "easy_listings_map.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected11,896 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
CSS1035306,838
PHP375911,9492,713
JavaScript206271,2702,345

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity11.88
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes13.12%
▷ Concrete classes3196.88%
▷ Final classes00.00%
Methods202
▷ Static methods178.42%
▷ Public methods18792.57%
▷ Protected methods73.47%
▷ Private methods83.96%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
33 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/help.png0.30KB0.32KB0.00%
public/images/map/m5.png6.68KB5.10KB▼ 23.66%
admin/images/markers/current/land.png1.17KB0.92KB▼ 21.27%
public/images/map/m2.png3.18KB2.36KB▼ 25.77%
admin/images/markers/offmarket/commercial.png0.87KB0.66KB▼ 23.42%