Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲2.00ms] Passed 4 tests
This is a short check of server-side resources used by Cloudbridge Mattermost
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 46.88 ▲3.42 |
Dashboard /wp-admin | 3.42 ▲0.07 | 59.00 ▼7.54 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 59.24 ▲9.37 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 106.65 ▲12.00 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 41.56 ▲2.76 |
Cloudbridge Mattermost /wp-admin/options-general.php?page=cloudbridge-mattermost | 3.30 | 45.93 |
Server storage [IO: ▲3.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 221 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
cbmm-cloudflare-ipv4 |
cbmm-cloudflare-ipv6 |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cloudbridge Mattermost
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.21 ▼1.17 | 1.61 ▼0.41 | 39.87 ▼3.95 |
Dashboard /wp-admin | 2,212 ▲27 | 4.88 ▼0.96 | 108.79 ▼3.27 | 41.48 ▼1.32 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.03 | 40.35 ▲1.66 | 33.86 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 17.39 ▼0.11 | 623.99 ▼23.39 | 45.97 ▼4.85 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.20 ▼0.11 | 100.12 ▼1.82 | 44.57 ▼1.29 |
Cloudbridge Mattermost /wp-admin/options-general.php?page=cloudbridge-mattermost | 862 | 2.19 | 23.63 | 28.69 |
Uninstaller [IO: ▲3.72MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attentionZombie WordPress options detected upon uninstall: 8 options
- The plugin did not uninstall correctly, leaving 221 files (3.72MB) in the plugin directory
- (new file) composer.lock
- (new file) externals/index.php
- (new file) README.txt
- (new file) css/cloudbridge-mattermost.css
- (new file) cloudbridge-mattermost.php
- (new file) bin/composer
- (new file) LICENSE.txt
- (new file) externals/php-cidr-match-0.2/CIDRmatch/CIDRmatch.php
- (new file) composer.json
- (new file) externals/php-cidr-match-0.2/CIDRmatch/index.php
- ...
- widget_theysaidso_widget
- cbmm-cloudflare-ipv6
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- cbmm-cloudflare-ipv4
- widget_recent-comments
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cloudbridge-mattermost/uninstall.php
- 64× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/cloudbridge-mattermost/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/cloudbridge-mattermost/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cloudbridge-mattermost/vendor/guzzlehttp/psr7/src/FnStream.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cloudbridge-mattermost/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/cloudbridge-mattermost/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\MessageFormatterInterface' not found in wp-content/plugins/cloudbridge-mattermost/vendor/guzzlehttp/guzzle/src/MessageFormatter.php:38
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/cloudbridge-mattermost/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Grant\\AbstractGrant' not found in wp-content/plugins/cloudbridge-mattermost/vendor/league/oauth2-client/src/Grant/ClientCredentials.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/cloudbridge-mattermost/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/cloudbridge-mattermost/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: cloud, security, mattermost, notifications, integration
cloudbridge-mattermost/cloudbridge-mattermost.php Passed 13 tests
The principal PHP file in "Cloudbridge Mattermost" v. 2.2.0 is loaded by WordPress automatically on each request
36 characters long description:
Mattermost integration for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin68,132 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 156 | 47,956 | 40,812 | 62,829 |
Markdown | 17 | 1,288 | 0 | 3,684 |
JSON | 12 | 1 | 0 | 1,246 |
PO File | 1 | 117 | 180 | 296 |
CSS | 1 | 1 | 3 | 39 |
XML | 1 | 0 | 0 | 19 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 30 | |
Traits | 10 | |
Classes | 96 | |
▷ Abstract classes | 2 | 2.08% |
▷ Concrete classes | 94 | 97.92% |
▷ Final classes | 35 | 37.23% |
Methods | 977 | |
▷ Static methods | 147 | 15.05% |
▷ Public methods | 785 | 80.35% |
▷ Protected methods | 69 | 7.06% |
▷ Private methods | 123 | 12.59% |
Functions | 126 | |
▷ Named functions | 36 | 28.57% |
▷ Anonymous functions | 90 | 71.43% |
Constants | 95 | |
▷ Global constants | 29 | 30.53% |
▷ Class constants | 66 | 69.47% |
▷ Public constants | 55 | 83.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/webbplatsen_logo.png | 9.32KB | 5.62KB | ▼ 39.71% |