Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/business-contact-widget/business-contact-widget.php+202
Methods with the same name as their class will not be constructors in a future version of PHP; Business_Contact_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼54.94ms] Passed 4 tests
Analyzing server-side resources used by Business Contact Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 9.14 ▼34.09 |
Dashboard /wp-admin | 2.29 ▼1.01 | 5.96 ▼43.84 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 6.60 ▼43.89 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 5.90 ▼97.94 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 5.99 ▼28.62 |
Business Contact Widget /wp-admin/options-general.php?page=business-contact-widget | 2.29 | 5.43 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_business-contact-widget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
bcw_settings |
Browser metrics Passed 4 tests
Business Contact Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.72 ▼0.87 | 10.04 ▲8.10 | 39.13 ▼9.32 |
Dashboard /wp-admin | 2,225 ▲37 | 5.79 ▲0.89 | 112.97 ▼2.19 | 46.54 ▲3.01 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.01 ▼0.03 | 37.96 ▲3.97 | 33.29 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,541 ▲21 | 17.69 ▼5.41 | 673.25 ▲64.92 | 60.87 ▲3.83 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.27 ▲0.09 | 100.44 ▼1.32 | 41.72 ▼0.94 |
Business Contact Widget /wp-admin/options-general.php?page=business-contact-widget | 1,491 | 6.22 | 153.75 | 69.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/business-contact-widget/business-contact-widget.php+202
Methods with the same name as their class will not be constructors in a future version of PHP; Business_Contact_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- widget_business-contact-widget
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- bcw_settings
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=business-contact-widget
- > Deprecated in wp-content/plugins/business-contact-widget/business-contact-widget.php+202
Methods with the same name as their class will not be constructors in a future version of PHP; Business_Contact_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=business-contact-widget
- > Deprecated in wp-content/plugins/business-contact-widget/business-contact-widget.php+499
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/business-contact-widget/business-contact-widget.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-contact-widget/business-contact-widget-admin.php:45
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=business-contact-widget
- > Javascript (severe) in unknown
/wp-content/plugins/business-contact-widget/js/business-contact-widget-admin.min.js?ver=1.0 0:0 Uncaught ReferenceError: save is not defined
- > GET request to /wp-admin/options-general.php?page=business-contact-widget
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=business-contact-widget
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget front end - company contact details.), #2 (Widget front end - company email addresses which open a new email when pressed.), #3 (Widget front end - Google map of location.), #4 (Widget front end - contact from.), #5 (Widget backend - details of widget.), #6 (Widget backend - customise the widget.), #7 (Settings backend - easily add the contact details of the company.), #8 (Settings backend - customise the styling options.)
business-contact-widget/business-contact-widget.php 92% from 13 tests
The entry point to "Business Contact Widget" version 2.7.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,869 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 95 | 69 | 909 |
PO File | 3 | 206 | 215 | 566 |
CSS | 13 | 84 | 99 | 310 |
JavaScript | 4 | 26 | 37 | 84 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 80.00 |
▷ Minimum class complexity | 80.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 20.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
117 PNG files occupy 0.93MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_50_3baae3_1x400.png | 0.33KB | 0.16KB | ▼ 50.89% |
screenshot-4.png | 23.18KB | 6.27KB | ▼ 72.94% |
css/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png | 0.30KB | 0.15KB | ▼ 50.32% |
images/modern_map_grey.png | 0.80KB | 0.67KB | ▼ 16.28% |
css/images/ui-bg_highlight-hard_95_cccccc_1x100.png | 0.25KB | 0.15KB | ▼ 38.49% |