Benchmarks
Plugin footprint 65% 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: ▲0.49MB] [CPU: ▼1.15ms] Passed 4 tests
Server-side resources used by WP Business Directory FREE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 46.12 ▼1.41 |
Dashboard /wp-admin | 3.85 ▲0.55 | 55.93 ▲8.11 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 55.76 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 90.96 ▼7.95 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 39.64 ▲1.59 |
Add New Business /wp-admin/admin.php?page=wpbdf_add_business | 3.80 | 36.86 |
Business Categories /wp-admin/edit-tags.php?taxonomy=business-cat-free | 3.84 | 42.09 |
WPBD Free /wp-admin/admin.php?page=wpbdf | 3.78 | 35.43 |
Businesses /wp-admin/admin.php?page=wpbdf_view_entries | 3.78 | 37.59 |
Deactivate Business /wp-admin/admin.php?page=wpbdf_deact_business | 3.66 | 36.00 |
Settings /wp-admin/admin.php?page=wpbdf_settings | 3.71 | 34.52 |
Activate Business /wp-admin/admin.php?page=wpbdf_act_business | 3.66 | 35.23 |
Email Options /wp-admin/admin.php?page=wpbdf_email_options | 3.71 | 37.73 |
Tutorials /wp-admin/admin.php?page=wpbdf_tutorials | 3.69 | 39.38 |
Business Types /wp-admin/edit-tags.php?taxonomy=business-type-free | 3.84 | 51.60 |
Server storage [IO: ▲1.91MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 64 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_wpbdf_listings |
wp_wpbdf_settings |
wp_wpbdf_postcode_recycle |
wp_wpbdf_emailer |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Business Directory FREE
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,177 ▲431 | 16.05 ▲1.47 | 29.75 ▲27.86 | 43.07 ▲2.32 |
Dashboard /wp-admin | 2,395 ▲204 | 6.44 ▲1.39 | 127.04 ▲3.91 | 39.31 ▼16.10 |
Posts /wp-admin/edit.php | 2,301 ▲209 | 3.29 ▲1.28 | 50.16 ▲7.10 | 45.86 ▲10.06 |
Add New Post /wp-admin/post-new.php | 1,711 ▲197 | 22.19 ▲4.56 | 666.93 ▼11.07 | 38.85 ▼16.74 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.27 ▲0.07 | 80.98 ▼27.35 | 42.49 ▼3.32 |
Add New Business /wp-admin/admin.php?page=wpbdf_add_business | 3,291 | 6.59 | 152.06 | 147.71 |
Business Categories /wp-admin/edit-tags.php?taxonomy=business-cat-free | 1,477 | 3.10 | 49.60 | 33.81 |
WPBD Free /wp-admin/admin.php?page=wpbdf | 1,233 | 3.12 | 39.48 | 81.72 |
Businesses /wp-admin/admin.php?page=wpbdf_view_entries | 1,233 | 3.06 | 37.21 | 72.40 |
Deactivate Business /wp-admin/admin.php?page=wpbdf_deact_business | 984 | 3.01 | 37.21 | 19.91 |
Settings /wp-admin/admin.php?page=wpbdf_settings | 1,361 | 3.02 | 40.40 | 74.59 |
Activate Business /wp-admin/admin.php?page=wpbdf_act_business | 984 | 3.03 | 37.12 | 20.21 |
Email Options /wp-admin/admin.php?page=wpbdf_email_options | 1,472 | 3.14 | 39.35 | 89.00 |
Tutorials /wp-admin/admin.php?page=wpbdf_tutorials | 1,043 | 3.10 | 37.51 | 68.10 |
Business Types /wp-admin/edit-tags.php?taxonomy=business-type-free | 1,483 | 3.13 | 43.86 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 4 tables
- wp_wpbdf_emailer
- wp_wpbdf_settings
- wp_wpbdf_listings
- wp_wpbdf_postcode_recycle
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wpbdf_add_business
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-create-business-admin.php+57
Undefined variable: dateFormat_text_view
- > GET request to /wp-admin/admin.php?page=wpbdf_add_business
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-create-business-admin.php+102
Undefined index: address
- > GET request to /wp-admin/admin.php?page=wpbdf_add_business
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-create-business-admin.php+479
Undefined variable: lat
- > GET request to /wp-admin/admin.php?page=wpbdf_add_business
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-create-business-admin.php+481
Undefined variable: long
- > GET request to /wp-admin/admin.php?page=wpbdf_add_business
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-create-business-admin.php+609
Undefined index: desc
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_view_entries
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-view-all-businesses.php+131
Undefined index: pg
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_view_entries
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-view-all-businesses.php+133
Undefined variable: filteascdesc
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_view_entries
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_view_entries
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-view-all-businesses.php+270
Undefined variable: total
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_act_business
- > Notice in wp-content/plugins/wp-business-directory-free/wp-business-directory-free.php+209
Undefined index: filter-name
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_act_business
- > Notice in wp-content/plugins/wp-business-directory-free/wp-business-directory-free.php+210
Undefined index: filter-email
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_act_business
- > Notice in wp-content/plugins/wp-business-directory-free/wp-business-directory-free.php+211
Undefined index: filter-sort
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_act_business
- > Notice in wp-content/plugins/wp-business-directory-free/wp-business-directory-free.php+212
Undefined index: filter-ascdesc
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpbdf_act_business
- > Notice in wp-content/plugins/wp-business-directory-free/wp-business-directory-free.php+213
Undefined index: filter-status
- > GET request to /wp-admin/admin.php?page=wpbdf_settings
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-settings.php+98
Undefined index: _tcs
- > GET request to /wp-admin/admin.php?page=wpbdf_email_options
- > Notice in wp-content/plugins/wp-business-directory-free/admin/wpbdf-view-all-emails.php+131
Undefined variable: wpbdf_version
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-business-directory-free/wp-business-directory-free.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-business-directory-free/admin/wpbdf-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-business-directory-free/functions/admin.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-business-directory-free/functions/setup.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-business-directory-free/admin/wpbdf-view-all-emails.php:35
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-business-directory-free/functions/setup.php on line 11
- > PHP Notice
Undefined variable: main_page in wp-content/plugins/wp-business-directory-free/template/user-businesses/wpbdf-notice-page.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-business-directory-free/template/wpbdf-business-details-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-business-directory-free/admin/wpbdf-view-all-businesses.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_requests() in wp-content/plugins/wp-business-directory-free/admin/wpbdf-create-business-admin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-business-directory-free/functions/search.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: Contributors not specified
- Screenshots: These screenshots need descriptions #1, #2 in wp-business-directory-free/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== WP Business Directory FREE===
) - Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-business-directory-free/wp-business-directory-free.php 92% from 13 tests
The entry point to "WP Business Directory FREE" version 1.0.8.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 356 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected10,896 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,622 | 203 | 5,385 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 8 | 185 | 54 | 1,874 |
JavaScript | 10 | 313 | 74 | 966 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 77 | |
▷ Named functions | 77 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/social/yt.png | 1.64KB | 1.60KB | ▼ 2.56% |
img/arrows.png | 1.40KB | 1.36KB | ▼ 2.65% |
template/img/icons.png | 1.41KB | 0.81KB | ▼ 42.04% |
img/social/li.png | 1.93KB | 1.87KB | ▼ 3.53% |
template/img/pin_spacing.png | 2.58KB | 1.83KB | ▼ 29.19% |