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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼1.90ms] Passed 4 tests
Server-side resources used by Instant Support Buttons - Call, Contact, Chat, Email
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 41.63 ▲0.92 |
Dashboard /wp-admin | 3.65 ▲0.35 | 51.32 ▲1.83 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 57.58 ▲7.23 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 87.08 ▼9.77 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 40.78 ▼0.58 |
Instant Support Buttons /wp-admin/options-general.php?page=instant_support_buttons | 3.49 | 36.39 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
fcb-type |
fcb-alreadyRated |
fcb-v |
can_compress_scripts |
fcb_style_settings |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Instant Support Buttons - Call, Contact, Chat, Email
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,203 ▲468 | 15.54 ▲1.32 | 9.72 ▲7.63 | 46.53 ▼4.07 |
Dashboard /wp-admin | 2,371 ▲183 | 6.66 ▲1.76 | 135.33 ▲22.78 | 41.94 ▲1.38 |
Posts /wp-admin/edit.php | 2,271 ▲182 | 3.52 ▲1.49 | 53.55 ▲12.42 | 34.24 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.18 ▼0.02 | 611.07 ▼76.61 | 36.45 ▼37.22 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.32 ▲0.19 | 82.86 ▼26.78 | 41.97 ▼5.57 |
Instant Support Buttons /wp-admin/options-general.php?page=instant_support_buttons | 1,574 | 3.75 | 72.52 | 28.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 12 options in the database
- db_upgraded
- fcb-alreadyRated
- can_compress_scripts
- widget_recent-posts
- fcb-v
- fcb-installDate
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- fcb_style_settings
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant FCB_VERSION - assumed 'FCB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/floating-contact-buttons/feedback/admin-feedback-form.php on line 171
- > PHP Warning
Use of undefined constant FCB_URL - assumed 'FCB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/floating-contact-buttons/feedback/admin-feedback-form.php on line 171
- > PHP Fatal error
Uncaught Error: Call to undefined function FCB\\feedback\\add_action() in wp-content/plugins/floating-contact-buttons/feedback/admin-feedback-form.php:18
- > PHP Warning
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 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #3 in floating-contact-buttons/assets to your readme.txt
floating-contact-buttons/floating-contact-buttons.php 77% from 13 tests
This is the main PHP file of "Instant Support Buttons - Call, Contact, Chat, Email" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,507 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 228 | 270 | 1,124 |
JavaScript | 6 | 103 | 60 | 615 |
CSS | 6 | 44 | 57 | 393 |
PO File | 7 | 105 | 105 | 344 |
SVG | 1 | 19 | 0 | 31 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 58 | |
▷ Static methods | 3 | 5.17% |
▷ Public methods | 57 | 98.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.72% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fcb_phone.png | 0.73KB | 0.86KB | 0.00% |
assets/images/fcb_email.png | 0.82KB | 0.92KB | 0.00% |
assets/images/fcb-logo.png | 4.46KB | 4.67KB | 0.00% |
assets/images/fcb_facebook.png | 0.45KB | 0.45KB | 0.00% |
assets/images/fcb_close.png | 0.43KB | 0.41KB | ▼ 3.66% |