Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.37ms] Passed 4 tests
This is a short check of server-side resources used by BuddyPress Message Attachment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.91 ▲0.39 |
Dashboard /wp-admin | 3.40 ▲0.05 | 52.46 ▼11.85 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.06 ▼1.20 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.88 ▼8.80 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 38.07 ▲0.78 |
Message Attachments /wp-admin/options-general.php?page=bp-msgat | 3.27 | 33.55 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyPress Message Attachment
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.69 ▲0.34 | 1.98 ▲0.15 | 44.53 ▲2.16 |
Dashboard /wp-admin | 2,202 ▲28 | 5.64 ▲0.10 | 91.77 ▼12.22 | 37.63 ▼6.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.02 | 40.70 ▲1.23 | 36.17 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.16 ▼0.31 | 616.69 ▼37.68 | 53.84 ▲4.39 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.03 | 98.21 ▼3.37 | 48.45 ▲4.79 |
Message Attachments /wp-admin/options-general.php?page=bp-msgat | 982 | 2.00 | 27.32 | 32.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bp-msgat
- > Notice in wp-content/plugins/buddypress-message-attachment/includes/admin.php+178
A non well formed numeric value encountered
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddypress-message-attachment/templates/form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function msgat_file_cssclass() in wp-content/plugins/buddypress-message-attachment/templates/file.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
2 plugin tags: message attachment, buddypress
buddypress-message-attachment/loader.php 85% from 13 tests
The main file in "BuddyPress Message Attachment" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-message-attachment.php" instead of "loader.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected861 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 187 | 130 | 672 |
JavaScript | 2 | 31 | 16 | 163 |
CSS | 1 | 1 | 0 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 3 | 6.98% |
▷ Public methods | 35 | 81.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.60% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin