Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲8.44MB] [CPU: ▲53.81ms] 50% from 4 tests
A check of server-side resources used by Web Directory Free
Please have a look at the following items
- RAM: You should keep total memory usage under 10MB (currently 11.71MB on /wp-admin/admin.php?page=w2dc_levels)
- Extra RAM: Extra memory usage should kept under 5MB (currently 8.44MB on /wp-admin/admin.php?page=w2dc_levels)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.70 ▲8.24 | 89.79 ▲48.04 |
Dashboard /wp-admin | 11.78 ▲8.48 | 110.89 ▲57.86 |
Posts /wp-admin/edit.php | 11.91 ▲8.55 | 123.02 ▲71.05 |
Add New Post /wp-admin/post-new.php | 14.54 ▲8.65 | 149.03 ▲43.78 |
Media Library /wp-admin/upload.php | 11.74 ▲8.50 | 101.83 ▲65.55 |
Listings upgrade /wp-admin/admin.php?page=w2dc_manage_upgrades | 11.71 | 91.98 |
Change level of listing /wp-admin/options.php?page=w2dc_upgrade | 11.72 | 93.13 |
Locations levels /wp-admin/admin.php?page=w2dc_locations_levels | 11.71 | 85.98 |
Directory listings /wp-admin/edit.php?post_type=w2dc_listing | 11.79 | 96.74 |
Renew listing /wp-admin/options.php?page=w2dc_renew | 11.72 | 92.98 |
Directory settings /wp-admin/themes.php?page=w2dc_settings | 13.06 | 124.08 |
Create new listing /wp-admin/post-new.php?post_type=w2dc_listing | 11.67 | 93.52 |
Directory Reset /wp-admin/admin.php?page=w2dc_reset | 11.70 | 103.89 |
CSV Import/Export /wp-admin/admin.php?page=w2dc_csv_import | 11.73 | 92.90 |
Listings levels /wp-admin/admin.php?page=w2dc_levels | 11.71 | 91.75 |
Server storage [IO: ▲13.13MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 1,425 new files
Database: 8 new tables, 233 new options
New tables |
---|
wp_w2dc_directories |
wp_w2dc_content_fields |
wp_w2dc_levels_relationships |
wp_w2dc_content_fields_groups |
wp_wcsearch_cache |
wp_w2dc_levels |
wp_w2dc_locations_relationships |
wp_w2dc_locations_levels |
New WordPress options |
---|
w2dc_address_autocomplete_code |
w2dc_prevent_users_see_other_media |
w2dc_share_buttons_style |
w2dc_locations_search_nesting_level |
w2dc_admin_notifications_email |
widget_w2dc_locations_widget |
w2dc_links_color |
w2dc_addresses_order |
w2dc_listing_contact_form |
w2dc_zip_or_postal_text |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Web Directory Free
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 13.42 ▼0.96 | 1.67 ▼0.25 | 36.16 ▼7.68 |
Dashboard /wp-admin | 2,317 ▲129 | 5.13 ▲0.23 | 116.52 ▲5.67 | 89.40 ▲44.40 |
Posts /wp-admin/edit.php | 2,227 ▲135 | 2.34 ▲0.35 | 37.45 ▼1.15 | 36.21 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,785 ▲250 | 20.70 ▼2.62 | 820.30 ▲149.51 | 38.66 ▼18.84 |
Media Library /wp-admin/upload.php | 1,505 ▲114 | 4.43 ▲0.17 | 103.90 ▼2.06 | 81.63 ▲35.90 |
Listings upgrade /wp-admin/admin.php?page=w2dc_manage_upgrades | 1,026 | 4.19 | 67.63 | 34.18 |
Change level of listing /wp-admin/options.php?page=w2dc_upgrade | 778 | 1.53 | 7.26 | 17.94 |
Locations levels /wp-admin/admin.php?page=w2dc_locations_levels | 1,115 | 4.06 | 64.94 | 32.09 |
Directory listings /wp-admin/edit.php?post_type=w2dc_listing | 1,406 | 4.29 | 63.94 | 51.89 |
Renew listing /wp-admin/options.php?page=w2dc_renew | 778 | 1.14 | 6.52 | 17.59 |
Directory settings /wp-admin/themes.php?page=w2dc_settings | 13,365 | 6.85 | 236.97 | 175.29 |
Create new listing /wp-admin/post-new.php?post_type=w2dc_listing | 4,368 | 10.97 | 253.40 | 173.99 |
Directory Reset /wp-admin/admin.php?page=w2dc_reset | 934 | 1.93 | 31.10 | 30.87 |
CSV Import/Export /wp-admin/admin.php?page=w2dc_csv_import | 1,280 | 4.13 | 54.71 | 38.46 |
Listings levels /wp-admin/admin.php?page=w2dc_levels | 1,114 | 4.28 | 60.42 | 47.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 8 tables in the database
- wp_wcsearch_cache
- wp_w2dc_directories
- wp_w2dc_content_fields_groups
- wp_w2dc_levels_relationships
- wp_w2dc_levels
- wp_w2dc_content_fields
- wp_w2dc_locations_levels
- wp_w2dc_locations_relationships
- Zombie WordPress options detected upon uninstall: 233 options
- w2dc_single_logo_width
- w2dc_map_infowindow_offset
- db_upgraded
- w2dc_address_geocode
- w2dc_primary_color
- w2dc_cropped_content_as_excerpt
- w2dc_listing_thumb_width
- w2dc_listings_bottom_margin
- w2dc_subcategories_items
- widget_w2dc_content_fields_group_shortcode_widget
- ...
Smoke tests 50% 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)
Good news, no errors were detected
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
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/web-directory-free/templates/content_fields/fields_group_input.tpl.php
- > /wp-content/plugins/web-directory-free/templates/frontend/page_header.tpl.php
- > /wp-content/plugins/web-directory-free/templates/admin_footer.tpl.php
- > /wp-content/plugins/web-directory-free/addons/w2dc_ratings/templates/comments.tpl.php
- > /wp-content/plugins/web-directory-free/search/plugin/templates/admin_footer.tpl.php
- > /wp-content/plugins/web-directory-free/templates/our_plugins.tpl.php
- > /wp-content/plugins/web-directory-free/templates/frontend/listings_carousel.tpl.php
- > /wp-content/plugins/web-directory-free/templates/frontend/listings_block.tpl.php
- 882× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: map_args in wp-content/plugins/web-directory-free/templates/maps/map.tpl.php on line 4
- > PHP Warning
Use of undefined constant VP_W2DC_PUBLIC_URL - assumed 'VP_W2DC_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/web-directory-free/vafpress-framework/config/dependencies.php on line 188
- > PHP Fatal error
Uncaught Error: Call to a member function title() on null in wp-content/plugins/web-directory-free/templates/frontend/single_parts/header.tpl.php:1
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/web-directory-free/classes/levels/levels_manager.php on line 188
- > PHP Warning
Use of undefined constant VP_W2DC_NAMESPACE - assumed 'VP_W2DC_NAMESPACE' (this will throw an Error in a future version of PHP) in wp-content/plugins/web-directory-free/vafpress-framework/autoload.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/web-directory-free/classes/content_fields/content_fields_manager.php on line 305
- > PHP Warning
include_once(W2DC_PATHclasses/content_fields/fields/content_field_email.php): failed to open stream: No such file or directory in wp-content/plugins/web-directory-free/classes/content_fields/content_fields.php on line 15
- > PHP Warning
include_once(W2DC_PATHclasses/content_fields/fields/content_field_radio.php): failed to open stream: No such file or directory in wp-content/plugins/web-directory-free/classes/content_fields/content_fields.php on line 13
- > PHP Notice
Trying to get property 'default_url' of non-object in wp-content/plugins/web-directory-free/templates/upload_image.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'w2dc_elementor_widget' not found in wp-content/plugins/web-directory-free/classes/widgets/elementor/widgets/listing_report.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: store locator, google maps, listings, mapbox openstreetmap, classifieds...
web-directory-free/w2dc_free.php 85% from 13 tests
This is the main PHP file of "Web Directory Free" version 1.6.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("web-directory-free.php" instead of "w2dc_free.php")
- Description: The description should be shorter than 140 characters (currently 186 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected128,826 lines of code in 752 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 485 | 9,413 | 6,591 | 54,113 |
CSS | 42 | 2,289 | 1,157 | 40,550 |
JavaScript | 137 | 3,717 | 4,293 | 20,805 |
Sass | 74 | 263 | 0 | 7,797 |
PO File | 2 | 1,797 | 2,589 | 4,074 |
SVG | 3 | 0 | 0 | 1,208 |
HTML | 3 | 6 | 0 | 123 |
Markdown | 2 | 31 | 0 | 89 |
XML | 3 | 4 | 0 | 66 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 26.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 368.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 217 | |
▷ Abstract classes | 7 | 3.23% |
▷ Concrete classes | 210 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,804 | |
▷ Static methods | 90 | 4.99% |
▷ Public methods | 1,711 | 94.84% |
▷ Protected methods | 77 | 4.27% |
▷ Private methods | 16 | 0.89% |
Functions | 475 | |
▷ Named functions | 462 | 97.26% |
▷ Anonymous functions | 13 | 2.74% |
Constants | 83 | |
▷ Global constants | 80 | 96.39% |
▷ Class constants | 3 | 3.61% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
539 PNG files occupy 1.88MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/map_icons/icons/_new/Train.png | 3.53KB | 2.08KB | ▼ 41.19% |
resources/images/map_icons/icons/_new/Airport.png | 3.61KB | 2.09KB | ▼ 42.08% |
resources/css/jquery-ui/themes/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png | 0.31KB | 0.18KB | ▼ 43.48% |
resources/css/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png | 0.33KB | 0.10KB | ▼ 70.47% |
resources/images/map_icons/icons/_new/Fruits.png | 3.79KB | 2.32KB | ▼ 38.68% |