Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.62MB] [CPU: ▼3.55ms] Passed 4 tests
An overview of server-side resources used by Broadstreet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 44.85 ▲2.68 |
Dashboard /wp-admin | 4.03 ▲0.72 | 49.15 ▲1.29 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 49.95 ▼1.86 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 70.77 ▼16.31 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 40.57 ▲6.64 |
Account Setup /wp-admin/admin.php?page=Broadstreet | 4.03 | 39.06 |
Zone Options /wp-admin/admin.php?page=Broadstreet-Zone-Options | 3.97 | 37.88 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 125 new files
Database: no new tables, 14 new options
New WordPress options |
---|
Broadstreet_Installed |
db_upgraded |
widget_bs_zones |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_bs_business_listings |
widget_bs_business_categories |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Broadstreet
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.59 ▲0.36 | 4.50 ▲2.88 | 42.33 ▼0.70 |
Dashboard /wp-admin | 2,227 ▲50 | 5.55 ▼0.11 | 89.15 ▼9.26 | 40.65 ▼0.78 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 1.98 ▼0.02 | 38.95 ▲1.34 | 33.82 ▼8.07 |
Add New Post /wp-admin/post-new.php | 6,318 ▲4,791 | 25.99 ▲2.87 | 910.12 ▲270.37 | 66.80 ▲9.80 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.27 ▼0.00 | 94.50 ▼3.32 | 44.39 ▲0.24 |
Account Setup /wp-admin/admin.php?page=Broadstreet | 1,038 | 1.96 | 26.81 | 38.35 |
Zone Options /wp-admin/admin.php?page=Broadstreet-Zone-Options | 1,977 | 3.67 | 83.92 | 39.99 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 14 options in the database
- widget_bs_sbszones
- widget_bs_zones
- Broadstreet_Installed_1.46.3
- widget_bs_multiple_zones
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_bs_business_profile
- Broadstreet_Installed
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/broadstreet/Broadstreet/Views/admin/infoBox.php
- > /wp-content/plugins/broadstreet/Broadstreet/Views/businessMetaBox.php
- > /wp-content/plugins/broadstreet/Broadstreet/Views/admin/businessMetaBox.php
- > /wp-content/plugins/broadstreet/Broadstreet/Vendor/broadstreet-partner/lib/helpers/wordpress.php
- > /wp-content/plugins/broadstreet/Broadstreet/Views/infoBox.php
- > /wp-content/plugins/broadstreet/Broadstreet/Views/listings/archive/excerpt.php
- > /wp-content/plugins/broadstreet/Broadstreet/Vendor/broadstreet-partner/views/global/_footer.php
- > /wp-content/plugins/broadstreet/Broadstreet/Views/admin/sponsoredBox.php
- > /wp-content/plugins/broadstreet/Broadstreet/Views/admin/visibilityBox.php
- > /wp-content/plugins/broadstreet/Broadstreet/Views/admin/global/sidebar.php
- 101× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Broadstreet_View' not found in wp-content/plugins/broadstreet/Broadstreet/Views/admin/editable.php:2
- > PHP Fatal error
Uncaught Error: Class 'Broadstreet_View' not found in wp-content/plugins/broadstreet/Broadstreet/Views/admin/admin.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/broadstreet/Broadstreet/Views/admin/businessMetaBox.php on line 155
- > PHP Notice
Undefined variable: data in wp-content/plugins/broadstreet/Broadstreet/Views/admin/zones.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Broadstreet_Mini_Utility' not found in wp-content/plugins/broadstreet/Broadstreet/Vendor/broadstreet-partner/views/global/_header.php:9
- > PHP Fatal error
Uncaught Error: Class 'Broadstreet_Mini_Utility' not found in wp-content/plugins/broadstreet/Broadstreet/Vendor/broadstreet-partner/views/global/_header.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_trim_words() in wp-content/plugins/broadstreet/Broadstreet/Views/listings/archive/default.php:66
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/broadstreet/Broadstreet/Views/admin/businessMetaBox.php on line 192
- > PHP Notice
Undefined variable: meta in wp-content/plugins/broadstreet/Broadstreet/Views/admin/businessMetaBox.php on line 187
- > PHP Fatal error
Uncaught Error: Class 'Broadstreet_Utility' not found in wp-content/plugins/broadstreet/Broadstreet/Views/admin.php:2
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== broadstreet ===
)
broadstreet/broadstreet.php Passed 13 tests
The main file in "Broadstreet" v. 1.46.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
Integrate Broadstreet business directory and adserving power into your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12,868 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 1,325 | 1,986 | 6,546 |
JavaScript | 13 | 695 | 877 | 4,263 |
CSS | 12 | 267 | 95 | 2,003 |
SQL | 1 | 9 | 0 | 34 |
Markdown | 1 | 13 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 20.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 266 | |
▷ Static methods | 121 | 45.49% |
▷ Public methods | 248 | 93.23% |
▷ Protected methods | 10 | 3.76% |
▷ Private methods | 8 | 3.01% |
Functions | 38 | |
▷ Named functions | 32 | 84.21% |
▷ Anonymous functions | 6 | 15.79% |
Constants | 67 | |
▷ Global constants | 38 | 56.72% |
▷ Class constants | 29 | 43.28% |
▷ Public constants | 29 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.84MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Broadstreet/Public/img/twitter.png | 4.51KB | 1.69KB | ▼ 62.41% |
Broadstreet/Public/img/help/sidebar-widget.png | 19.77KB | 6.36KB | ▼ 67.85% |
Broadstreet/Vendor/broadstreet-partner/assets/img/designer.png | 60.12KB | 43.91KB | ▼ 26.97% |
Broadstreet/Public/img/facebook.png | 4.54KB | 1.74KB | ▼ 61.61% |
Broadstreet/Public/img/yelp.png | 4.62KB | 1.76KB | ▼ 61.95% |