Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.64MB] [CPU: ▲6.97ms] Passed 4 tests
An overview of server-side resources used by WP Directory Kit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.07 ▲2.60 | 55.06 ▲13.83 |
Dashboard /wp-admin | 6.31 ▲3.01 | 75.27 ▲20.39 |
Posts /wp-admin/edit.php | 5.96 ▲2.60 | 70.81 ▲29.00 |
Add New Post /wp-admin/post-new.php | 8.65 ▲2.76 | 90.12 ▼15.72 |
Media Library /wp-admin/upload.php | 5.83 ▲2.59 | 50.11 ▲9.36 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 5.94 | 50.29 |
Server storage [IO: ▲26.19MB] [DB: ▲0.02MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- Total filesystem usage should be limited to 25MB (currently using 26.19MB)
Filesystem: 818 new files
Database: 15 new tables, 19 new options
New tables |
---|
wp_wdk_listings_categories |
wp_wdk_messages |
wp_wdk_locations |
wp_wdk_token |
wp_wdk_editlog |
wp_wdk_listings_fields |
wp_wdk_users |
wp_wdk_listings |
wp_wdk_listings_users |
wp_wdk_listings_locations |
... |
New WordPress options |
---|
wdk_users_cached |
dashboard_widget_options |
widget_recent-comments |
theysaidso_admin_options |
elementor_experiment-e_dom_optimization |
can_compress_scripts |
widget_recent-posts |
wdk_default_lat |
wpdirectorykit_reviews_installed_on |
wdk_is_results_page_require |
... |
Browser metrics Passed 4 tests
WP Directory Kit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,509 ▲748 | 14.56 ▲0.21 | 7.27 ▲5.45 | 28.46 ▼16.20 |
Dashboard /wp-admin | 2,780 ▲603 | 5.81 ▲0.23 | 130.94 ▲31.24 | 63.08 ▲20.45 |
Posts /wp-admin/edit.php | 2,264 ▲164 | 2.08 ▲0.14 | 37.91 ▲1.49 | 39.16 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,658 ▲123 | 22.98 ▲4.65 | 638.85 ▲26.39 | 59.76 ▼1.87 |
Media Library /wp-admin/upload.php | 1,560 ▲163 | 4.35 ▲0.09 | 96.85 ▼3.33 | 44.22 ▲0.92 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,189 | 2.09 | 25.03 | 37.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 15 tables
- wp_wdk_token
- wp_wdk_listings_fields
- wp_wdk_resultitem
- wp_wdk_dependfields
- wp_wdk_listings_users
- wp_wdk_searchform
- wp_wdk_listings_categories
- wp_wdk_editlog
- wp_wdk_locations
- wp_wdk_listings_locations
- ...
- This plugin does not fully uninstall, leaving 19 options in the database
- wdk_is_results_page_require
- dashboard_widget_options
- wpdirectorykit_reviews_installed_on
- elementor_experiment-landing-pages
- wdk_default_lng
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- wdk_db_version
- winter_mvc_active_plugins
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpdirectorykit/public/partials/wpdirectorykit-public-display.php
- > /wp-content/plugins/wpdirectorykit/admin/partials/wpdirectorykit-admin-display.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wpdirectorykit/tgm-pa/class-tgm-plugin-activation.php:2113
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpdirectorykit/vendor/Winter_MVC/init.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer_Logger' not found in wp-content/plugins/wpdirectorykit/vendor/WordPress-Importer/class-logger-serversentevents.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/wpdirectorykit/vendor/WordPress-Importer/class-wxr-importer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wpdirectorykit/tgm-pa/class-tgm-plugin-activation.php:2113
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wpdirectorykit/translation_strings/categories_1.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wpdirectorykit/translation_strings/fields_1.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer_Logger' not found in wp-content/plugins/wpdirectorykit/vendor/WordPress-Importer/class-logger-html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wpdirectorykit/translation_strings/locations_1.php:1
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Elementor Elements, Featured Listings Example), #2 (Elementor Map and Search Listings Elements), #3 (Elementor Listing Categories Carousel Elements), #4 (Elementor Custom Listings Elements), #5 (Listing Preview Example for Directory), #6 (Search Form, Results with listings, Featured Listings and Categories), #7 (Elementor Categories Widget / Element), #8 (Elementor Header Example), #9 (Directory Listings Management), #10 (Add/Edit Directory Listings), #11 (Directory Fields Management visually), #12 (Directory Search Form Designer), #13 (Elementor Listing Preview build visual builder)
wpdirectorykit/wpdirectorykit.php Passed 13 tests
This is the main PHP file of "WP Directory Kit" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Build your Directory portal, demos for Real Estate Agency and Car Dealership included
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin152,767 lines of code in 593 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 306 | 11,183 | 9,195 | 65,322 |
JavaScript | 116 | 10,343 | 7,971 | 37,946 |
CSS | 80 | 2,225 | 506 | 17,694 |
Sass | 49 | 1,929 | 5 | 10,861 |
PO File | 19 | 3,381 | 8,001 | 8,772 |
JSON | 2 | 1 | 0 | 5,234 |
XML | 3 | 0 | 2 | 5,145 |
Markdown | 6 | 236 | 0 | 855 |
LESS | 1 | 98 | 16 | 829 |
SVG | 10 | 1 | 0 | 100 |
HTML | 1 | 2 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 27.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 116 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 116 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,097 | |
▷ Static methods | 56 | 5.10% |
▷ Public methods | 743 | 67.73% |
▷ Protected methods | 147 | 13.40% |
▷ Private methods | 207 | 18.87% |
Functions | 293 | |
▷ Named functions | 225 | 76.79% |
▷ Anonymous functions | 68 | 23.21% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
64 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/filetype/rar.png | 2.30KB | 2.30KB | 0.00% |
public/img/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
public/js/openstreetmap/images/marker-shadow.png | 0.47KB | 0.50KB | 0.00% |
public/img/filetype/yml.png | 1.20KB | 1.20KB | 0.00% |
public/img/filetype/tiff.png | 1.76KB | 1.76KB | 0.00% |