Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.28ms] Passed 4 tests
Server-side resources used by BP Attachments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.36 ▼3.98 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.57 ▼6.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.34 ▼4.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.06 ▼1.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.81 ▲0.11 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BP Attachments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.72 ▲0.37 | 1.91 ▼0.04 | 42.32 ▼2.86 |
Dashboard /wp-admin | 2,209 ▲35 | 5.52 ▼0.11 | 86.36 ▼15.51 | 39.15 ▼3.62 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.04 ▲0.08 | 38.02 ▼1.63 | 36.77 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,549 ▲22 | 18.20 ▼5.00 | 606.46 ▼117.53 | 82.46 ▲20.61 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.19 ▼0.02 | 104.46 ▼6.76 | 43.01 ▼3.53 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: media, attachments, add-on, buddypress
bp-attachments/class-bp-attachments.php 92% from 13 tests
"BP Attachments" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-attachments.php" instead of "class-bp-attachments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin7,261 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 1,257 | 3,401 | 5,974 |
CSS | 13 | 225 | 15 | 1,197 |
SVG | 10 | 0 | 0 | 74 |
JavaScript | 12 | 2 | 41 | 15 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 76 | |
▷ Static methods | 6 | 7.89% |
▷ Public methods | 66 | 86.84% |
▷ Protected methods | 9 | 11.84% |
▷ Private methods | 1 | 1.32% |
Functions | 203 | |
▷ Named functions | 203 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bp-attachments/assets/images/image.png | 2.29KB | 0.60KB | ▼ 73.86% |
bp-attachments/assets/images/media-icons.png | 1.52KB | 2.04KB | 0.00% |