Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.08MB] [CPU: ▲24.59ms] 50% from 4 tests
A check of server-side resources used by DirectoryPress - Business Directory And Classified Ad Listing
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 858.36ms on /wp-admin/admin.php?page=directorypress_extensions)
- RAM: Try to keep total memory usage under 10MB (currently 34.17MB on /wp-admin/admin.php?page=directorypress_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.92 ▲4.46 | 65.62 ▲27.16 |
Dashboard /wp-admin | 6.40 ▲3.09 | 83.23 ▲36.35 |
Posts /wp-admin/edit.php | 6.44 ▲3.09 | 75.94 ▲31.70 |
Add New Post /wp-admin/post-new.php | 8.93 ▲3.05 | 106.93 ▲3.66 |
Media Library /wp-admin/upload.php | 6.32 ▲3.09 | 70.81 ▲35.85 |
Extensions /wp-admin/admin.php?page=directorypress_extensions | 7.37 | 858.36 |
Listing locations /wp-admin/edit-tags.php?taxonomy=directorypress-location&post_type=dp_listing | 6.35 | 64.54 |
Listing categories /wp-admin/edit-tags.php?taxonomy=directorypress-category&post_type=dp_listing | 6.34 | 58.70 |
Author Note /wp-admin/options.php?page=directorypress_author_note_to_admin | 6.32 | 60.58 |
Change package of listing /wp-admin/options.php?page=directorypress_upgrade | 6.29 | 56.25 |
Listing tags /wp-admin/edit-tags.php?taxonomy=directorypress-tag&post_type=dp_listing | 6.34 | 63.02 |
Settings /wp-admin/admin.php?page=directorypress_settings | 34.17 | 196.66 |
Create new listing /wp-admin/post-new.php?post_type=dp_listing | 6.15 | 59.99 |
Choose package of new listing /wp-admin/options.php?page=directorypress_choose_package | 6.29 | 60.24 |
Redux /wp-admin/options-general.php?page=redux-framework | 6.38 | 65.01 |
Server storage [IO: ▲17.56MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,340 new files
Database: 7 new tables, 28 new options
New tables |
---|
wp_directorypress_locations_relation |
wp_directorypress_fields |
wp_directorypress_packages |
wp_directorypress_directorytypes |
wp_directorypress_locations_depths |
wp_directorypress_fields_groups |
wp_directorypress_packages_relation |
New WordPress options |
---|
theysaidso_admin_options |
directorypress-dynamic.css_sha1 |
widget_directorypress_social_widget |
directorypress_db_update_3_6_0 |
widget_directorypress_categories_widget |
global_assets_timestamp |
widget_directorypress_listings_widget |
can_compress_scripts |
widget_directorypress_resurva_widget |
widget_directorypress_bids_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by DirectoryPress - Business Directory And Classified Ad Listing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,462 ▲716 | 16.88 ▲2.51 | 32.54 ▲30.96 | 57.46 ▲13.92 |
Dashboard /wp-admin | 2,501 ▲324 | 6.65 ▲1.04 | 113.87 ▲27.20 | 97.84 ▲54.33 |
Posts /wp-admin/edit.php | 2,442 ▲342 | 3.32 ▲1.33 | 52.31 ▲17.08 | 65.16 ▲30.35 |
Add New Post /wp-admin/post-new.php | 1,671 ▲145 | 24.37 ▲1.42 | 556.92 ▼42.53 | 28.42 ▼28.29 |
Media Library /wp-admin/upload.php | 1,524 ▲124 | 4.60 ▲0.43 | 82.77 ▼15.00 | 96.89 ▲48.34 |
Extensions /wp-admin/admin.php?page=directorypress_extensions | 1,334 | 3.65 | 45.67 | 121.27 |
Listing locations /wp-admin/edit-tags.php?taxonomy=directorypress-location&post_type=dp_listing | 1,679 | 3.89 | 49.62 | 99.90 |
Listing categories /wp-admin/edit-tags.php?taxonomy=directorypress-category&post_type=dp_listing | 1,860 | 4.36 | 58.70 | 74.18 |
Author Note /wp-admin/options.php?page=directorypress_author_note_to_admin | 1,104 | 3.64 | 43.00 | 63.25 |
Change package of listing /wp-admin/options.php?page=directorypress_upgrade | 775 | 1.91 | 15.80 | 16.00 |
Listing tags /wp-admin/edit-tags.php?taxonomy=directorypress-tag&post_type=dp_listing | 1,563 | 3.72 | 47.29 | 81.78 |
Settings /wp-admin/admin.php?page=directorypress_settings | 13,074 | 6.46 | 125.18 | 158.65 |
Create new listing /wp-admin/post-new.php?post_type=dp_listing | 3,117 | 8.39 | 180.75 | 150.58 |
Choose package of new listing /wp-admin/options.php?page=directorypress_choose_package | 795 | 1.91 | 15.63 | 18.17 |
Redux /wp-admin/options-general.php?page=redux-framework | 1,296 | 4.99 | 85.66 | 122.05 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 7 tables
- wp_directorypress_fields_groups
- wp_directorypress_packages_relation
- wp_directorypress_locations_depths
- wp_directorypress_fields
- wp_directorypress_packages
- wp_directorypress_locations_relation
- wp_directorypress_directorytypes
- This plugin did not uninstall successfully, leaving 28 options in the database
- widget_directorypress_listings_widget
- widget_directorypress_social_widget
- directorypress_installed_directory
- widget_theysaidso_widget
- widget_recent-posts
- directorypress_db_update_3_4_1
- global_assets_timestamp
- widget_directorypress_author
- widget_recent-comments
- widget_directorypress_categories_widget
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options.php?page=directorypress_choose_package
- > Error in wp-content/plugins/directorypress/admin/class-directorypress-admin.php+49
Uncaught Error: Call to a member function displayChooseLevelTable() on null in wp-content/plugins/directorypress/admin/class-directorypress-admin.php:49
Stack trace:
#0 wp-includes/class-wp-hook.php(310): DirectoryPress_Admin->chooseLevelsPage()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 wp-admin/options.php(19): require_once('/var/www/wordpr...')
#5 {main}
thrown
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
The following issues need your attention
- 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/directorypress/public/partials/single-listing/slider.php
- > /wp-content/plugins/directorypress/public/partials/single-listing/tabs.php
- > /wp-content/plugins/directorypress/public/partials/single-listing/video-gallery.php
- > /wp-content/plugins/directorypress/public/partials/single-listing/location.php
- > /wp-content/plugins/directorypress/admin/partials/themes.php
- > /wp-content/plugins/directorypress/public/partials/single-listing/gallery.php
- > /wp-content/plugins/directorypress/includes/css_editor.php
- > /wp-content/plugins/directorypress/public/partials/single-listing/booking-button.php
- > /wp-content/plugins/directorypress/admin/partials/addons.php
- > /wp-content/plugins/directorypress/public/partials/single-listing/listing-id.php
- 511× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'DIRECTORYPRESS_PATHincludes/core/search/class_search_filter.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/directorypress/includes/core/search/class_filters.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'directorypress_post' not found in wp-content/plugins/directorypress/includes/core/listing/class-listing.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/directorypress/admin/redux-core/inc/fields/textarea/field_textarea.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/directorypress/admin/redux-core/inc/fields/raw/field_raw.php:8
- > PHP Notice
Trying to get property 'locations' of non-object in wp-content/plugins/directorypress/public/partials/single-listing/location.php on line 15
- > PHP Notice
Undefined property: stdClass::$hash in wp-content/plugins/directorypress/public/partials/directory-pages/category-page.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function directorypress_has_map() in wp-content/plugins/directorypress/public/partials/directory-pages/location-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/directorypress/public/emails/contact_form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/directorypress/includes/core/widgets/directorypress_general_widgets.php:2
- > PHP Warning
Use of undefined constant DIRECTORYPRESS_PATH - assumed 'DIRECTORYPRESS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/directorypress/includes/core/fields/class_fields.php on line 12
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options.php?page=directorypress_choose_package
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/directorypress/admin/assets/js/directorypress-admin.js?ver=6.3.1:457:60)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options.php?page=directorypress_choose_package
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).sortable is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: business directory, directory listing, directories, classified, car dealer
directorypress/directorypress.php 85% from 13 tests
The main PHP file in "DirectoryPress - Business Directory And Classified Ad Listing" ver. 3.6.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin148,389 lines of code in 960 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 485 | 11,593 | 15,336 | 66,518 |
JavaScript | 235 | 6,958 | 4,201 | 32,527 |
CSS | 130 | 7,473 | 660 | 25,736 |
Sass | 92 | 1,851 | 88 | 12,603 |
SVG | 16 | 78 | 13 | 10,990 |
XML | 1 | 0 | 0 | 12 |
Markdown | 1 | 1 | 0 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 33.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 341.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 232 | |
▷ Abstract classes | 5 | 2.16% |
▷ Concrete classes | 227 | 97.84% |
▷ Final classes | 0 | 0.00% |
Methods | 1,950 | |
▷ Static methods | 325 | 16.67% |
▷ Public methods | 1,666 | 85.44% |
▷ Protected methods | 191 | 9.79% |
▷ Private methods | 93 | 4.77% |
Functions | 400 | |
▷ Named functions | 395 | 98.75% |
▷ Anonymous functions | 5 | 1.25% |
Constants | 120 | |
▷ Global constants | 21 | 17.50% |
▷ Class constants | 99 | 82.50% |
▷ Public constants | 99 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
125 PNG files occupy 0.51MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/redux-core/assets/img/2-col-portfolio.png | 0.15KB | 0.15KB | 0.00% |
assets/css/jqueryui/themes/smoothness/images/ui-icons_2e83ff_256x240.png | 4.56KB | 4.18KB | ▼ 8.31% |
assets/images/map_edit.png | 0.56KB | 0.51KB | ▼ 9.53% |
admin/redux-core/assets/img/3cl.png | 0.34KB | 0.33KB | 0.29% |
admin/redux-core/assets/img/raw/2cr.png | 2.92KB | 0.24KB | ▼ 91.69% |