Benchmarks
Plugin footprint 83% 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: ▲2.00MB] [CPU: ▲14.23ms] Passed 4 tests
An overview of server-side resources used by Chamber Dashboard Business Directory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.43 ▲1.97 | 57.42 ▲16.32 |
Dashboard /wp-admin | 5.34 ▲2.04 | 64.66 ▲9.51 |
Posts /wp-admin/edit.php | 5.39 ▲2.03 | 65.20 ▲8.95 |
Add New Post /wp-admin/post-new.php | 8.08 ▲2.19 | 117.40 ▲22.25 |
Media Library /wp-admin/upload.php | 5.17 ▲1.95 | 58.12 ▲22.15 |
Welcome to Chamber Dashboard Business Directory /wp-admin/index.php?page=cdash-about | 5.15 | 53.49 |
Support /wp-admin/admin.php?page=cd-settings&tab=support | 5.17 | 63.82 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=business | 5.26 | 50.53 |
Membership Levels /wp-admin/edit-tags.php?taxonomy=membership_level&post_type=business | 5.26 | 54.73 |
All Businesses /wp-admin/edit.php?post_type=business | 5.31 | 52.79 |
Add New /wp-admin/post-new.php?post_type=business | 8.11 | 104.28 |
Getting Started /wp-admin/admin.php?page=cd-welcome | 5.17 | 58.44 |
CD Settings /wp-admin/admin.php?page=cd-settings | 5.17 | 61.21 |
Business Categories /wp-admin/edit-tags.php?taxonomy=business_category&post_type=business | 5.26 | 51.90 |
Private Categories /wp-admin/edit-tags.php?taxonomy=private_category&post_type=business | 5.26 | 49.52 |
Server storage [IO: ▲7.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 322 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_cdash-search |
widget_cdash-business-categories |
cdash_directory_options |
widget_cdash-featured |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Chamber Dashboard Business Directory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲338 | 15.13 ▲1.88 | 1.58 ▼0.08 | 29.04 ▼22.95 |
Dashboard /wp-admin | 2,461 ▲273 | 6.78 ▲1.82 | 138.79 ▲34.56 | 99.40 ▲57.77 |
Posts /wp-admin/edit.php | 2,386 ▲297 | 3.89 ▲1.88 | 57.46 ▲15.36 | 85.20 ▲50.78 |
Add New Post /wp-admin/post-new.php | 6,734 ▲5,201 | 25.27 ▲1.88 | 935.03 ▲299.29 | 37.89 ▼17.74 |
Media Library /wp-admin/upload.php | 1,517 ▲129 | 4.53 ▲0.30 | 88.72 ▼9.33 | 96.35 ▲51.31 |
Welcome to Chamber Dashboard Business Directory /wp-admin/index.php?page=cdash-about | 1,950 | 13.82 | 365.41 | 112.83 |
Support /wp-admin/admin.php?page=cd-settings&tab=support | 1,130 | 3.76 | 44.70 | 78.05 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=business | 1,608 | 3.67 | 46.32 | 92.38 |
Membership Levels /wp-admin/edit-tags.php?taxonomy=membership_level&post_type=business | 1,569 | 3.67 | 44.52 | 83.38 |
All Businesses /wp-admin/edit.php?post_type=business | 1,441 | 3.86 | 49.54 | 77.84 |
Add New /wp-admin/post-new.php?post_type=business | 3,077 | 17.75 | 950.77 | 65.69 |
Getting Started /wp-admin/admin.php?page=cd-welcome | 1,912 | 13.06 | 315.40 | 93.87 |
CD Settings /wp-admin/admin.php?page=cd-settings | 1,928 | 3.70 | 48.73 | 85.89 |
Business Categories /wp-admin/edit-tags.php?taxonomy=business_category&post_type=business | 1,591 | 3.74 | 49.21 | 70.65 |
Private Categories /wp-admin/edit-tags.php?taxonomy=private_category&post_type=business | 1,572 | 3.64 | 45.93 | 82.69 |
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 detected upon uninstall: 9 options
- widget_cdash-search
- widget_recent-posts
- widget_theysaidso_widget
- widget_cdash-business-categories
- theysaidso_admin_options
- widget_cdash-featured
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 55× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'P2P_Field' not found in wp-content/plugins/chamber-dashboard-business-directory/wpp2p/admin/field-delete.php:3
- > PHP Fatal error
Uncaught Error: Class 'P2P_Item_Post' not found in wp-content/plugins/chamber-dashboard-business-directory/wpp2p/item-attachment.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/chamber-dashboard-business-directory/wpalchemy/busbilling.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chamber-dashboard-business-directory/wpp2p/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chamber-dashboard-business-directory/includes/cd_data_erase.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/chamber-dashboard-business-directory/includes/currency_list.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chamber-dashboard-business-directory/shortcodes/bus_cat_shortcode.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chamber-dashboard-business-directory/wpalchemy/buscustom.php:3
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/chamber-dashboard-business-directory/wpp2p/admin/tools-page.php:3
- > PHP Fatal error
Uncaught Error: Interface 'P2P_Direction_Strategy' not found in wp-content/plugins/chamber-dashboard-business-directory/wpp2p/indeterminate-connection-type.php:3
- > PHP Fatal error
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)
Please fix the following browser errors
- > GET request to /wp-admin/index.php?page=cdash-about
- > Network (severe)
wp-content/plugins/chamber-dashboard-business-directory/css/images/ui-icons_444444_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=business
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&sensor=false&ver=6.3.1 208:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/edit-tags.php?taxonomy=business_category&post_type=business
- > Deprecation (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 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Entering business information), #2 (Business Directory admin page), #3 (Featured Business widget), #4 (Business search widget), #5 (Map of Business listings), #6 (A-Z Directory listings), #7 (Business Directory block settings)
chamber-dashboard-business-directory/cdash-business-directory.php 85% from 13 tests
The entry point to "Chamber Dashboard Business Directory" version 3.3.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("chamber-dashboard-business-directory.php" instead of "cdash-business-directory.php")
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected54,784 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 1 | 0 | 28,869 |
PHP | 115 | 3,465 | 3,876 | 14,405 |
JavaScript | 24 | 821 | 1,143 | 5,956 |
CSS | 13 | 405 | 260 | 4,229 |
PO File | 1 | 245 | 248 | 614 |
Sass | 1 | 48 | 2 | 411 |
HTML | 12 | 9 | 0 | 124 |
XML | 4 | 0 | 0 | 104 |
Markdown | 2 | 34 | 0 | 72 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 12 | 15.58% |
▷ Concrete classes | 65 | 84.42% |
▷ Final classes | 0 | 0.00% |
Methods | 655 | |
▷ Static methods | 109 | 16.64% |
▷ Public methods | 530 | 80.92% |
▷ Protected methods | 88 | 13.44% |
▷ Private methods | 37 | 5.65% |
Functions | 286 | |
▷ Named functions | 286 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 24 | 68.57% |
▷ Class constants | 11 | 31.43% |
▷ Public constants | 11 | 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
114 PNG files occupy 4.40MB with 1.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/social-media/linkedin-64px.png | 3.02KB | 1.88KB | ▼ 37.69% |
images/chamber_beautiful_theme.png | 370.33KB | 120.11KB | ▼ 67.57% |
images/social-media/youtube-16px.png | 1.36KB | 0.56KB | ▼ 59.14% |
Tax-meta-class/images/add.png | 1.84KB | 1.49KB | ▼ 19.11% |
images/social-media/vimeo-32px.png | 2.27KB | 1.35KB | ▼ 40.29% |