Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.32MB] [CPU: ▲12.65ms] 75% from 4 tests
Analyzing server-side resources used by Directorist - WordPress Business Directory Plugin with Classified Ads Listings
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,137.49ms on /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-extension)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.75 ▲1.28 | 56.66 ▲10.25 |
Dashboard /wp-admin | 4.64 ▲1.33 | 102.87 ▲50.64 |
Posts /wp-admin/edit.php | 4.68 ▲1.32 | 60.98 ▲9.72 |
Add New Post /wp-admin/post-new.php | 7.82 ▲1.94 | 136.88 ▲17.41 |
Media Library /wp-admin/upload.php | 4.57 ▲1.34 | 50.92 ▲13.23 |
Add New /wp-admin/post-new.php?post_type=at_biz_dir | 4.78 | 79.27 |
All Listings /wp-admin/edit.php?post_type=at_biz_dir | 4.61 | 54.79 |
Settings /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-settings | 6.17 | 67.60 |
Locations /wp-admin/edit-tags.php?taxonomy=at_biz_dir-location&post_type=at_biz_dir | 4.59 | 50.91 |
Reviews /wp-admin/edit-comments.php?post_type=at_biz_dir | 4.57 | 55.41 |
Directory Builder /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-layout-builder | 5.58 | 60.38 |
Categories /wp-admin/edit-tags.php?taxonomy=at_biz_dir-category&post_type=at_biz_dir | 4.59 | 57.62 |
Themes & Extensions /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-extension | 4.69 | 1,137.49 |
Tags /wp-admin/edit-tags.php?taxonomy=at_biz_dir-tags&post_type=at_biz_dir | 4.59 | 51.56 |
Help & Support /wp-admin/edit.php?post_type=at_biz_dir&page=directorist-status | 4.51 | 41.60 |
Server storage [IO: ▲25.49MB] [DB: ▲0.06MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 25.49MB)
Filesystem: 5,380 new files
Database: no new tables, 26 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_bdsw_widget |
widget_bdsb_widget |
widget_bdco_widget |
widget_bdsi_widget |
atbdp_option |
widget_bdcw_widget |
widget_bdmw_widget |
widget_recent-comments |
directorist_bulk_term_update_v7_0_3_2 |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Directorist - WordPress Business Directory Plugin with Classified Ads Listings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲148 | 14.59 ▲0.24 | 1.94 ▼0.00 | 44.30 ▼3.68 |
Dashboard /wp-admin | 2,283 ▲109 | 5.54 ▼0.04 | 97.07 ▲2.03 | 77.76 ▲35.94 |
Posts /wp-admin/edit.php | 2,204 ▲104 | 2.12 ▲0.18 | 36.39 ▼7.89 | 31.81 ▼10.05 |
Add New Post /wp-admin/post-new.php | 6,456 ▲4,930 | 28.90 ▲5.68 | 981.63 ▲253.92 | 38.54 ▼20.17 |
Media Library /wp-admin/upload.php | 1,500 ▲100 | 4.16 ▼0.06 | 102.15 ▼22.59 | 73.89 ▲28.94 |
Add New /wp-admin/post-new.php?post_type=at_biz_dir | 3,514 | 11.81 | 294.37 | 179.72 |
All Listings /wp-admin/edit.php?post_type=at_biz_dir | 1,219 | 2.10 | 33.77 | 29.41 |
Settings /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-settings | 1,576 | 8.33 | 186.27 | 85.54 |
Locations /wp-admin/edit-tags.php?taxonomy=at_biz_dir-location&post_type=at_biz_dir | 1,583 | 4.18 | 57.79 | 85.82 |
Reviews /wp-admin/edit-comments.php?post_type=at_biz_dir | 1,634 | 2.29 | 35.16 | 32.25 |
Directory Builder /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-layout-builder | 8,809 | 9.33 | 176.72 | 225.85 |
Categories /wp-admin/edit-tags.php?taxonomy=at_biz_dir-category&post_type=at_biz_dir | 9,269 | 5.84 | 75.06 | 203.04 |
Themes & Extensions /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-extension | 2,783 | 1.99 | 36.01 | 68.61 |
Tags /wp-admin/edit-tags.php?taxonomy=at_biz_dir-tags&post_type=at_biz_dir | 1,523 | 3.74 | 48.30 | 86.29 |
Help & Support /wp-admin/edit.php?post_type=at_biz_dir&page=directorist-status | 2,970 | 1.88 | 32.05 | 43.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 26 options
- can_compress_scripts
- db_upgraded
- directorist_db_version
- widget_bdcw_widget
- widget_bdlf_widget
- widget_bdco_widget
- widget_bdsi_widget
- atbdp_option
- theysaidso_admin_options
- widget_bdlw_widget
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=at_biz_dir&page=directorist-status
- > Warning in wp-content/plugins/directorist/includes/helper-functions.php+3072
fsockopen(): unable to connect to ubuntu:25 (Connection refused)
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
- 20× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/directorist/includes/classes/class-add-listing.php
- > /wp-content/plugins/directorist/includes/classes/class-custom-taxonomy.php
- > /wp-content/plugins/directorist/includes/classes/class-database.php
- > /wp-content/plugins/directorist/views/admin-templates/theme-extensions/auth/license-auth-section.php
- > /wp-content/plugins/directorist/includes/classes/class-cron.php
- > /wp-content/plugins/directorist/includes/classes/class-email.php
- > /wp-content/plugins/directorist/includes/classes/class-custom-post.php
- > /wp-content/plugins/directorist/includes/checkout/functions.php
- > /wp-content/plugins/directorist/directorist-base.php
- > /wp-content/plugins/directorist/views/index.php
- 74× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/directorist/includes/classes/class-geo-query.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function add_listing_terms() on null in wp-content/plugins/directorist/templates/listing-form/fields/category.php:14
- > PHP Notice
Trying to get property 'columns' of non-object in wp-content/plugins/directorist/templates/taxonomies/categories-list.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_directorist_option() in wp-content/plugins/directorist/views/admin-templates/post-types-manager/edit-listing-type.php:3
- > PHP Notice
Trying to get property 'columns' of non-object in wp-content/plugins/directorist/templates/taxonomies/locations-list.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Directorist\\Helper' not found in wp-content/plugins/directorist/templates/account/login.php:14
- > PHP Notice
Undefined variable: taxonomy in wp-content/plugins/directorist/templates/taxonomies/categories-grid.php on line 9
- > PHP Warning
Division by zero in wp-content/plugins/directorist/templates/taxonomies/locations-grid.php on line 10
- > PHP Fatal error
Trait 'Directorist\\Multi_Directory\\Multi_Directory_Helper' not found in wp-content/plugins/directorist/includes/modules/multi-directory-setup/class-multi-directory-manager.php on line 5
- > PHP Notice
Undefined variable: args in wp-content/plugins/directorist/views/admin-templates/theme-extensions/theme-extension.php on line 6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=at_biz_dir
- > Console-api (warning) in unknown
/wp-content/plugins/directorist/assets/js/directorist-plupload.min.js?ver=7.8.1 0:1920 Object
- > GET request to /wp-admin/edit.php?post_type=at_biz_dir&page=atbdp-extension
- > Network (severe)
https://directorist.com/wp-content/uploads/edd/2021/09/ddoctors_theme.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #3, #30, #31, #4, #5, #6, #7, #8, #9 in directorist/assets to your readme.txt
directorist/directorist-base.php 92% from 13 tests
Analyzing the main PHP file in "Directorist - WordPress Business Directory Plugin with Classified Ads Listings" version 7.8.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("directorist.php" instead of "directorist-base.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin332,850 lines of code in 4,998 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 152 | 23,220 | 27,063 | 166,363 |
CSS | 39 | 10,029 | 806 | 98,203 |
PHP | 416 | 11,902 | 11,197 | 59,009 |
SVG | 4,358 | 1 | 1 | 4,883 |
PO File | 1 | 1,422 | 2,414 | 3,395 |
JSON | 26 | 0 | 0 | 928 |
Sass | 4 | 10 | 0 | 67 |
HTML | 2 | 0 | 4 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 34.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 328.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 163 | |
▷ Abstract classes | 8 | 4.91% |
▷ Concrete classes | 155 | 95.09% |
▷ Final classes | 1 | 0.65% |
Methods | 1,807 | |
▷ Static methods | 396 | 21.91% |
▷ Public methods | 1,586 | 87.77% |
▷ Protected methods | 128 | 7.08% |
▷ Private methods | 93 | 5.15% |
Functions | 344 | |
▷ Named functions | 314 | 91.28% |
▷ Anonymous functions | 30 | 8.72% |
Constants | 50 | |
▷ Global constants | 39 | 78.00% |
▷ Class constants | 11 | 22.00% |
▷ Public constants | 11 | 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
75 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor-js/openstreet-map/openlayers/theme/default/img/navigation_history.png | 6.47KB | 2.31KB | ▼ 64.27% |
assets/vendor-js/openstreet-map/openlayers/img/west-mini.png | 0.35KB | 0.32KB | ▼ 8.33% |
assets/vendor-js/openstreet-map/openlayers/img/slider.png | 0.24KB | 0.24KB | 0.00% |
assets/vendor-js/openstreet-map/openlayers4jgsi/crosshairs.png | 0.25KB | 0.16KB | ▼ 35.46% |
assets/vendor-js/openstreet-map/openlayers/img/measuring-stick-on.png | 3.64KB | 0.30KB | ▼ 91.76% |