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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.93 ▲3.47 | 64.05 ▲24.73 |
Dashboard /wp-admin | 6.73 ▲3.43 | 67.45 ▲15.65 |
Posts /wp-admin/edit.php | 6.87 ▲3.51 | 67.16 ▲14.44 |
Add New Post /wp-admin/post-new.php | 8.76 ▲2.87 | 82.74 ▼17.78 |
Media Library /wp-admin/upload.php | 6.65 ▲3.42 | 56.80 ▲20.55 |
Settings /wp-admin/admin.php?page=listdom-settings | 7.27 | 684.02 |
Features /wp-admin/edit-tags.php?taxonomy=listdom-feature&post_type=listdom-listing | 7.03 | 60.90 |
Search Builder /wp-admin/edit.php?post_type=listdom-search | 6.82 | 63.30 |
Shortcodes /wp-admin/edit.php?post_type=listdom-shortcode | 6.82 | 57.17 |
Import / Export /wp-admin/admin.php?page=listdom-ix | 6.66 | 55.63 |
Categories /wp-admin/edit-tags.php?taxonomy=listdom-category&post_type=listdom-listing | 7.03 | 61.80 |
Add Listing /wp-admin/post-new.php?post_type=listdom-listing | 7.38 | 77.99 |
Locations /wp-admin/edit-tags.php?taxonomy=listdom-location&post_type=listdom-listing | 7.03 | 66.38 |
Notifications /wp-admin/edit.php?post_type=listdom-notification | 6.89 | 67.28 |
All Listings /wp-admin/edit.php?post_type=listdom-listing | 6.83 | 61.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,015 ▲254 | 14.28 ▼0.00 | 15.31 ▲13.75 | 30.15 ▼13.50 |
Dashboard /wp-admin | 2,298 ▲121 | 5.50 ▼0.03 | 84.89 ▼2.08 | 39.86 ▲0.02 |
Posts /wp-admin/edit.php | 2,203 ▲103 | 1.98 ▼0.01 | 36.22 ▼4.91 | 35.21 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,648 ▲120 | 24.74 ▲1.56 | 651.40 ▼21.14 | 55.01 ▲6.14 |
Media Library /wp-admin/upload.php | 1,506 ▲112 | 4.30 ▲0.08 | 95.75 ▼2.33 | 45.85 ▲2.19 |
Settings /wp-admin/admin.php?page=listdom-settings | 4,004 | 4.01 | 81.60 | 53.35 |
Features /wp-admin/edit-tags.php?taxonomy=listdom-feature&post_type=listdom-listing | 4,926 | 3.83 | 58.88 | 59.23 |
Search Builder /wp-admin/edit.php?post_type=listdom-search | 1,373 | 3.84 | 54.77 | 37.34 |
Shortcodes /wp-admin/edit.php?post_type=listdom-shortcode | 1,378 | 3.57 | 52.99 | 35.58 |
Import / Export /wp-admin/admin.php?page=listdom-ix | 1,095 | 3.30 | 38.79 | 29.91 |
Categories /wp-admin/edit-tags.php?taxonomy=listdom-category&post_type=listdom-listing | 5,072 | 4.10 | 71.85 | 49.28 |
Add Listing /wp-admin/post-new.php?post_type=listdom-listing | 4,956 | 10.97 | 367.15 | 229.07 |
Locations /wp-admin/edit-tags.php?taxonomy=listdom-location&post_type=listdom-listing | 1,565 | 3.50 | 46.24 | 35.83 |
Notifications /wp-admin/edit.php?post_type=listdom-notification | 2,151 | 3.68 | 50.51 | 32.30 |
All Listings /wp-admin/edit.php?post_type=listdom-listing | 1,428 | 3.69 | 52.10 | 31.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 319 | 5,472 | 4,328 | 26,904 |
SVG | 5 | 0 | 0 | 9,727 |
PO File | 1 | 1,180 | 1,827 | 2,654 |
JavaScript | 22 | 232 | 560 | 1,766 |
CSS | 13 | 29 | 39 | 398 |
XML | 1 | 0 | 0 | 15 |
JSON | 12 | 0 | 0 | 12 |
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 code | 0.50 |
Average class complexity | 18.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 168 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 168 | 100.00% |
▷ Final classes | 1 | 0.60% |
Methods | 1,066 | |
▷ Static methods | 223 | 20.92% |
▷ Public methods | 1,043 | 97.84% |
▷ Protected methods | 7 | 0.66% |
▷ Private methods | 16 | 1.50% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.00% |
Constants | 25 | |
▷ Global constants | 9 | 36.00% |
▷ Class constants | 16 | 64.00% |
▷ Public constants | 16 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/packages/leaflet/images/spritesheet-2x.png | 3.50KB | 2.20KB | ▼ 37.00% |
assets/img/cluster2/m5.png | 3.46KB | 1.44KB | ▼ 58.49% |
assets/img/cluster2/m2.png | 2.52KB | 0.90KB | ▼ 64.21% |
assets/img/cluster1/m4.png | 5.57KB | 4.23KB | ▼ 24.08% |
assets/packages/leaflet/images/spritesheet.png | 1.86KB | 1.22KB | ▼ 34.21% |