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
Install script ran successfully
Server metrics [RAM: ▲1.92MB] [CPU: ▲7.48ms] Passed 4 tests
Analyzing server-side resources used by DT Directory Lite Addon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.48 ▲2.01 | 48.90 ▲15.28 |
Dashboard /wp-admin | 5.22 ▲1.92 | 55.13 ▲12.05 |
Posts /wp-admin/edit.php | 5.27 ▲1.91 | 58.05 ▲11.82 |
Add New Post /wp-admin/post-new.php | 7.82 ▲1.94 | 93.84 ▼5.82 |
Media Library /wp-admin/upload.php | 5.14 ▲1.91 | 47.97 ▲11.88 |
Settings /wp-admin/edit.php?post_type=dtdr_listings&page=dtdr-settings-options | 5.21 | 43.79 |
Property Category /wp-admin/edit-tags.php?taxonomy=dtdr_listings_category&post_type=dtdr_listings | 5.13 | 45.49 |
Property Contract Type /wp-admin/edit-tags.php?taxonomy=dtdr_listings_ctype&post_type=dtdr_listings | 5.13 | 43.26 |
Property Amenity /wp-admin/edit-tags.php?taxonomy=dtdr_listings_amenity&post_type=dtdr_listings | 5.13 | 44.92 |
Directory /wp-admin/edit.php?post_type=dtdr_listings | 5.18 | 44.64 |
Server storage [IO: ▲6.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 359 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for DT Directory Lite Addon
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,049 ▲288 | 14.47 ▲0.12 | 20.68 ▲18.97 | 39.61 ▲0.27 |
Dashboard /wp-admin | 2,251 ▲70 | 5.52 ▼0.15 | 92.46 ▼4.80 | 45.44 ▲5.77 |
Posts /wp-admin/edit.php | 2,165 ▲62 | 2.00 ▲0.01 | 40.57 ▼1.81 | 38.82 ▲4.19 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 22.67 ▼0.23 | 674.67 ▲39.19 | 49.31 ▼11.96 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.25 ▲0.03 | 103.57 ▲1.26 | 45.73 ▲1.99 |
Settings /wp-admin/edit.php?post_type=dtdr_listings&page=dtdr-settings-options | 1,224 | 2.03 | 29.82 | 30.73 |
Property Category /wp-admin/edit-tags.php?taxonomy=dtdr_listings_category&post_type=dtdr_listings | 1,933 | 2.69 | 54.86 | 39.73 |
Property Contract Type /wp-admin/edit-tags.php?taxonomy=dtdr_listings_ctype&post_type=dtdr_listings | 1,930 | 2.70 | 52.05 | 41.42 |
Property Amenity /wp-admin/edit-tags.php?taxonomy=dtdr_listings_amenity&post_type=dtdr_listings | 1,905 | 2.72 | 52.47 | 41.90 |
Directory /wp-admin/edit.php?post_type=dtdr_listings | 1,217 | 2.08 | 32.90 | 32.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 176× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dt-directory-lite-addon/page-builders/visual-composer/modules/single-page/contact-details.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/dt-directory-lite-addon/page-builders/elementor/widgets/single-page/comment-list.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dt-directory-lite-addon/theme-support/class-designthemes.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dt-directory-lite-addon/page-builders/visual-composer/modules/single-page/price.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/dt-directory-lite-addon/page-builders/elementor/widgets/single-page/mls-number.php:7
- > PHP Fatal error
require_once(): Failed opening required 'DTDR_LITE_PLUGIN_PATHcustom-post-types/listings-post-type.php' (include_path='.:/usr/share/php') in wp-content/plugins/dt-directory-lite-addon/custom-post-types/register-post-types.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dt-directory-lite-addon/page-builders/visual-composer/modules/default/listings-taxonomy.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/dt-directory-lite-addon/modules/media-images/metabox-tab-listing.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dt-directory-lite-addon/modules/media-images/page-builders/visual-composer/sp-media-images.php:2
- > PHP Warning
Use of undefined constant DTDR_LITE_PLUGIN_PATH - assumed 'DTDR_LITE_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dt-directory-lite-addon/settings/settings.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (39 tag instead of maximum 10)
dt-directory-lite-addon/dt-directory-lite-addon.php 92% from 13 tests
The primary PHP file in "DT Directory Lite Addon" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin48,109 lines of code in 234 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 176 | 5,906 | 1,221 | 19,726 |
CSS | 25 | 2,175 | 328 | 15,802 |
SVG | 4 | 0 | 12 | 9,848 |
JavaScript | 27 | 936 | 227 | 2,680 |
XML | 1 | 3 | 0 | 50 |
Markdown | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 72 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 561 | |
▷ Static methods | 27 | 4.81% |
▷ Public methods | 457 | 81.46% |
▷ Protected methods | 96 | 17.11% |
▷ Private methods | 8 | 1.43% |
Functions | 166 | |
▷ Named functions | 165 | 99.40% |
▷ Anonymous functions | 1 | 0.60% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
85 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/prettyPhoto/default/sprite_next.png | 1.33KB | 0.39KB | ▼ 70.69% |
page-builders/visual-composer/images/feature_video.png | 1.42KB | 0.22KB | ▼ 84.25% |
assets/images/attachment.png | 3.69KB | 2.57KB | ▼ 30.30% |
assets/images/prettyPhoto/dark_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
assets/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |