Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.13MB] [CPU: ▲10.67ms] Passed 4 tests
An overview of server-side resources used by Lava Directory Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 50.17 ▲8.48 |
Dashboard /wp-admin | 4.47 ▲1.17 | 70.06 ▲17.17 |
Posts /wp-admin/edit.php | 4.57 ▲1.21 | 65.22 ▲11.09 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.14 | 99.93 ▲5.93 |
Media Library /wp-admin/upload.php | 4.35 ▲1.12 | 56.76 ▲20.48 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=lv_listing | 4.37 | 54.39 |
All Listings /wp-admin/edit.php?post_type=lv_listing | 4.43 | 53.34 |
Settings /wp-admin/edit.php?post_type=lv_listing&page=lava-lv_listing-settings | 4.63 | 53.97 |
Locations /wp-admin/edit-tags.php?taxonomy=listing_location&post_type=lv_listing | 4.37 | 55.43 |
Add New /wp-admin/post-new.php?post_type=lv_listing | 4.58 | 70.62 |
Amenities /wp-admin/edit-tags.php?taxonomy=listing_amenities&post_type=lv_listing | 4.37 | 50.91 |
Keyword /wp-admin/edit-tags.php?taxonomy=listing_keyword&post_type=lv_listing | 4.37 | 53.37 |
Server storage [IO: ▲1.67MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 81 new files
Database: no new tables, 12 new options
New WordPress options |
---|
lava_directory_manager_settings |
can_compress_scripts |
widget_lava_directory_recents |
db_upgraded |
lvdr_req_field_once |
widget_recent-comments |
widget_recent-posts |
widget_lava_directory_featured |
theysaidso_admin_options |
lava_dm_flushed |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Lava Directory Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲324 | 16.45 ▲2.27 | 12.91 ▲11.13 | 43.95 ▲6.69 |
Dashboard /wp-admin | 2,396 ▲218 | 7.17 ▲1.51 | 126.30 ▲11.70 | 41.89 ▼2.80 |
Posts /wp-admin/edit.php | 2,321 ▲224 | 4.09 ▲2.08 | 54.54 ▲14.26 | 33.90 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,731 ▲205 | 23.17 ▲0.02 | 598.59 ▼101.44 | 33.96 ▼24.25 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 5.18 ▲1.02 | 93.24 ▼17.38 | 44.43 ▼5.17 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=lv_listing | 1,631 | 4.34 | 68.47 | 32.38 |
All Listings /wp-admin/edit.php?post_type=lv_listing | 1,363 | 4.05 | 59.21 | 31.16 |
Settings /wp-admin/edit.php?post_type=lv_listing&page=lava-lv_listing-settings | 2,798 | 5.42 | 72.69 | 67.98 |
Locations /wp-admin/edit-tags.php?taxonomy=listing_location&post_type=lv_listing | 1,550 | 4.16 | 62.38 | 29.51 |
Add New /wp-admin/post-new.php?post_type=lv_listing | 3,302 | 10.51 | 260.17 | 153.56 |
Amenities /wp-admin/edit-tags.php?taxonomy=listing_amenities&post_type=lv_listing | 1,599 | 4.24 | 61.63 | 30.90 |
Keyword /wp-admin/edit-tags.php?taxonomy=listing_keyword&post_type=lv_listing | 1,473 | 4.00 | 49.39 | 30.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 12 options in the database
- widget_lava_directory_recents
- widget_theysaidso_widget
- widget_lava_contact_single_page
- lava_directory_manager_settings
- widget_recent-posts
- theysaidso_admin_options
- lava_dm_flushed
- db_upgraded
- lvdr_req_field_once
- widget_recent-comments
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lava-directory-manager/templates/template-listing-list.php
- > /wp-content/plugins/lava-directory-manager/templates/template-map-htmls.php
- 44× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lava-directory-manager/includes/widgets/html/widget-single-contact.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function getTermOption() on null in wp-content/plugins/lava-directory-manager/includes/admin/part-edit-category-meta.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/lava-directory-manager/templates/content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lava-directory-manager/templates/form/lava-add-item-location.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lava-directory-manager/templates/form/lava-add-item-user.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lava-directory-manager/includes/admin/admin-welcome.php:2
- > PHP Notice
Undefined variable: addon in wp-content/plugins/lava-directory-manager/includes/admin/admin-loop-addons.php on line 3
- > PHP Notice
Trying to get property 'avatar' of non-object in wp-content/plugins/lava-directory-manager/includes/widgets/html/widget-single-contact.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lava-directory-manager/includes/functions-ajaxMap.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/lava-directory-manager/includes/admin/admin-mapmeta.php:3
- > 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
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=listing_keyword&post_type=lv_listing
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places%2Cgeometry&ver=0.0.1 244:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (51 tag instead of maximum 10)
lava-directory-manager/lava-directory-manager.php 92% from 13 tests
Analyzing the main PHP file in "Lava Directory Manager" version 1.1.34
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin15,554 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,118 | 499 | 5,611 |
JavaScript | 17 | 964 | 982 | 5,196 |
CSS | 4 | 16 | 93 | 1,713 |
PO File | 1 | 524 | 579 | 1,102 |
LESS | 1 | 63 | 47 | 1,015 |
SVG | 2 | 0 | 1 | 917 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 35.86 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 243 | |
▷ Static methods | 26 | 10.70% |
▷ Public methods | 243 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 22 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/no-image.png | 4.52KB | 0.89KB | ▼ 80.29% |
assets/images/lava_btn_slide_arrow.png | 1.67KB | 0.48KB | ▼ 71.02% |