Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼142.72ms] Passed 4 tests
This is a short check of server-side resources used by Barc Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 38.52 ▲16.20 |
Dashboard /wp-admin | 3.11 ▲0.06 | 49.61 ▲9.00 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 44.42 ▼4.18 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 93.69 ▼570.37 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.68 ▼5.34 |
Barc Chat /wp-admin/options-general.php?page=Barc | 3.08 | 28.96 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 5 new options
New WordPress options |
---|
Barc_plan |
Barc_activated |
Barc_code |
Barc_page |
Barc_position |
Browser metrics Passed 4 tests
Barc Chat: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,716 ▲120 | 15.91 ▲0.32 | 10.76 ▲1.09 | 45.56 ▼7.04 |
Dashboard /wp-admin | 2,972 ▲38 | 5.95 ▼0.17 | 136.98 ▼33.02 | 116.98 ▲4.02 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 67.90 ▼2.61 | 90.79 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.81 ▲0.38 | 406.70 ▲22.17 | 108.67 ▼1.37 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▲0.02 | 159.71 ▼11.63 | 126.91 ▲2.11 |
Barc Chat /wp-admin/options-general.php?page=Barc | 1,466 | 2.38 | 59.14 | 134.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/barc-chat/options.php:4
- > PHP Fatal error
Uncaught Error: Class 'Barc' not found in wp-content/plugins/barc-chat/comment_template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/barc-chat/barc.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: comments, admin, support, plugin, post...
barc-chat/barc.php 77% from 13 tests
This is the main PHP file of "Barc Chat" version 0.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("barc-chat.php" instead of "barc.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 237 characters long)
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 detected865 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 55 | 38 | 320 |
CSS | 1 | 25 | 0 | 303 |
JavaScript | 1 | 20 | 3 | 151 |
PO File | 1 | 35 | 35 | 91 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ico-lock.png | 1.15KB | 0.42KB | ▼ 63.81% |
images/title-verification.png | 2.17KB | 0.84KB | ▼ 61.23% |
images/ico-phone.png | 1.20KB | 0.46KB | ▼ 61.66% |
images/title-settings.png | 2.14KB | 0.76KB | ▼ 64.40% |
images/title-premium.png | 1.63KB | 0.56KB | ▼ 65.45% |