Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.76ms] Passed 4 tests
An overview of server-side resources used by bbPress Messages
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.18 ▼2.67 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.29 ▼4.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.12 ▲0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.77 ▼0.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.21 ▲4.10 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 55 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_bbp_messages_2p0 |
wp_bbp_messages_2p0_meta |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by bbPress Messages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.48 ▼0.19 | 1.89 ▲0.13 | 42.71 ▼2.36 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▼0.00 | 105.77 ▼7.52 | 43.21 ▲2.30 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.01 | 39.25 ▼1.94 | 36.70 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.59 ▲1.19 | 601.06 ▼94.48 | 52.89 ▼5.01 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.27 ▲0.09 | 95.45 ▼5.63 | 41.21 ▼4.70 |
Uninstaller [IO: ▲0.30MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attentionThe uninstall procedure failed, leaving 2 tables in the database This plugin did not uninstall successfully, leaving 6 options in the database
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/bbp-messages/uninstall.php+19
Undefined index: action
- This plugin has failed uninstalling correctly, leaving 55 files (0.30MB) in the plugin directory
- (new file) Inc/Core/Init.php
- (new file) Inc/Core/Messages.php
- (new file) Inc/Core/Redirect.php
- (new file) CheckReady.php
- (new file) Inc/Admin/Screen.php
- (new file) Inc/Admin/index.html
- (new file) BbpMessages.php
- (new file) Inc/Admin/Settings.php
- (new file) Inc/Admin/Admin.php
- (new file) Inc/Admin/Importers/bbPMessages.php
- ...
- wp_bbp_messages_2p0_meta
- wp_bbp_messages_2p0
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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
Please take a closer look at the following
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-messages/Inc/Core/integrate.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bbpm_messages_url() in wp-content/plugins/bbp-messages/templates/widgets/search.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function bbpm_messages_url() in wp-content/plugins/bbp-messages/templates/widgets/new-message.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bbp-messages/templates/widgets/my-chats.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bbp-messages/templates/widgets/my-messages.php on line 1
- > PHP Notice
Undefined variable: title in wp-content/plugins/bbp-messages/templates/widgets/new-message.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bbp-messages/templates/messages/single-settings.php:4
- > PHP Notice
Undefined variable: title in wp-content/plugins/bbp-messages/templates/widgets/my-messages.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbp-messages/Inc/Core/Widgets/MyMessages.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bbp-messages/templates/widgets/new-message.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
bbp-messages/index.php 92% from 13 tests
The main PHP script in "bbPress Messages" version 2.0.9.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbp-messages.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,685 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,674 | 544 | 6,283 |
CSS | 2 | 24 | 8 | 282 |
JavaScript | 1 | 3 | 0 | 54 |
Markdown | 1 | 15 | 0 | 40 |
HTML | 1 | 12 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 54.74 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 444.00 |
Average method complexity | 4.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 251 | |
▷ Static methods | 16 | 6.37% |
▷ Public methods | 251 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 61 | |
▷ Named functions | 53 | 86.89% |
▷ Anonymous functions | 8 | 13.11% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin