62% listdom

Code Review | Listdom - Advanced Directory and Listing Plugin

WordPress plugin Listdom - Advanced Directory and Listing Plugin scored62%from 54 tests.

About plugin

  • Plugin page: listdom
  • Plugin version: 2.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 31, 2019
  • Latest release: Mar 25, 2023
  • Number of updates: 55
  • Update frequency: every 23.7 days
  • Top authors: totalery (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

1,000+ active /26,268 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲3.30MB] [CPU: ▲8.22ms] 75% from 4 tests

Server-side resources used by Listdom - Advanced Directory and Listing Plugin
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 684.02ms on /wp-admin/admin.php?page=listdom-settings)
PageMemory (MB)CPU Time (ms)
Home /6.93 ▲3.4764.05 ▲24.73
Dashboard /wp-admin6.73 ▲3.4367.45 ▲15.65
Posts /wp-admin/edit.php6.87 ▲3.5167.16 ▲14.44
Add New Post /wp-admin/post-new.php8.76 ▲2.8782.74 ▼17.78
Media Library /wp-admin/upload.php6.65 ▲3.4256.80 ▲20.55
Settings /wp-admin/admin.php?page=listdom-settings7.27684.02
Features /wp-admin/edit-tags.php?taxonomy=listdom-feature&post_type=listdom-listing7.0360.90
Search Builder /wp-admin/edit.php?post_type=listdom-search6.8263.30
Shortcodes /wp-admin/edit.php?post_type=listdom-shortcode6.8257.17
Import / Export /wp-admin/admin.php?page=listdom-ix6.6655.63
Categories /wp-admin/edit-tags.php?taxonomy=listdom-category&post_type=listdom-listing7.0361.80
Add Listing /wp-admin/post-new.php?post_type=listdom-listing7.3877.99
Locations /wp-admin/edit-tags.php?taxonomy=listdom-location&post_type=listdom-listing7.0366.38
Notifications /wp-admin/edit.php?post_type=listdom-notification6.8967.28
All Listings /wp-admin/edit.php?post_type=listdom-listing6.8361.77

Server storage [IO: ▲5.82MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 551 new files
Database: 1 new table, 20 new options
New tables
wp_lsd_data
New WordPress options
widget_lsd_widgets_taxonomycloud
widget_lsd_widgets_simplemap
lsd_details_page_pattern
widget_lsd_widgets_terms
lsd_settings
db_upgraded
widget_recent-comments
lsd_socials
theysaidso_admin_options
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Listdom - Advanced Directory and Listing Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,015 ▲25414.28 ▼0.0015.31 ▲13.7530.15 ▼13.50
Dashboard /wp-admin2,298 ▲1215.50 ▼0.0384.89 ▼2.0839.86 ▲0.02
Posts /wp-admin/edit.php2,203 ▲1031.98 ▼0.0136.22 ▼4.9135.21 ▼2.61
Add New Post /wp-admin/post-new.php1,648 ▲12024.74 ▲1.56651.40 ▼21.1455.01 ▲6.14
Media Library /wp-admin/upload.php1,506 ▲1124.30 ▲0.0895.75 ▼2.3345.85 ▲2.19
Settings /wp-admin/admin.php?page=listdom-settings4,0044.0181.6053.35
Features /wp-admin/edit-tags.php?taxonomy=listdom-feature&post_type=listdom-listing4,9263.8358.8859.23
Search Builder /wp-admin/edit.php?post_type=listdom-search1,3733.8454.7737.34
Shortcodes /wp-admin/edit.php?post_type=listdom-shortcode1,3783.5752.9935.58
Import / Export /wp-admin/admin.php?page=listdom-ix1,0953.3038.7929.91
Categories /wp-admin/edit-tags.php?taxonomy=listdom-category&post_type=listdom-listing5,0724.1071.8549.28
Add Listing /wp-admin/post-new.php?post_type=listdom-listing4,95610.97367.15229.07
Locations /wp-admin/edit-tags.php?taxonomy=listdom-location&post_type=listdom-listing1,5653.5046.2435.83
Notifications /wp-admin/edit.php?post_type=listdom-notification2,1513.6850.5132.30
All Listings /wp-admin/edit.php?post_type=listdom-listing1,4283.6952.1031.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_lsd_data
  • This plugin does not fully uninstall, leaving 20 options in the database
    • can_compress_scripts
    • widget_lsd_widgets_simplemap
    • lsd_settings
    • widget_lsd_widgets_terms
    • widget_theysaidso_widget
    • lsd_socials
    • widget_lsd_widgets_shortcode
    • lsd_db_version
    • lsd_installation_time
    • widget_recent-posts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=listdom-search
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/listdom/listdom.php:41

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=listdom-listing
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
    • > GET request to /wp-admin/post-new.php?post_type=listdom-listing
    • > Javascript (severe) in unknown
    http://maps.googleapis.com/maps-api-v3/api/js/54/10/controls.js 81:501 Uncaught TypeError: Cannot read properties of null (reading 'set')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: business directory, listings, directory plugin, classifieds, store locator

listdom/listdom.php Passed 13 tests

"Listdom - Advanced Directory and Listing Plugin" version 2.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
137 characters long description:
An advanced but simple tool to list everything on your website and show them in modern responsive skins like list, grid, map and masonry.

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 detected41,476 lines of code in 373 files:
LanguageFilesBlank linesComment linesLines of code
PHP3195,4724,32826,904
SVG5009,727
PO File11,1801,8272,654
JavaScript222325601,766
CSS132939398
XML10015
JSON120012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity18.49
▷ Minimum class complexity1.00
▷ Maximum class complexity299.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes168
▷ Abstract classes00.00%
▷ Concrete classes168100.00%
▷ Final classes10.60%
Methods1,066
▷ Static methods22320.92%
▷ Public methods1,04397.84%
▷ Protected methods70.66%
▷ Private methods161.50%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants25
▷ Global constants936.00%
▷ Class constants1664.00%
▷ Public constants16100.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
27 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/packages/leaflet/images/spritesheet-2x.png3.50KB2.20KB▼ 37.00%
assets/img/cluster2/m5.png3.46KB1.44KB▼ 58.49%
assets/img/cluster2/m2.png2.52KB0.90KB▼ 64.21%
assets/img/cluster1/m4.png5.57KB4.23KB▼ 24.08%
assets/packages/leaflet/images/spritesheet.png1.86KB1.22KB▼ 34.21%