Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.20ms] Passed 4 tests
A check of server-side resources used by BuddyPress Automatic Friends
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.81 ▲1.26 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.79 ▼3.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.01 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.95 ▼1.60 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.93 ▲2.92 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress Automatic Friends
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.58 ▼0.80 | 1.71 ▼0.38 | 42.70 ▲0.09 |
Dashboard /wp-admin | 2,206 ▲24 | 5.83 ▲0.95 | 103.82 ▼14.93 | 39.60 ▼5.91 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.03 | 34.56 ▼2.51 | 32.91 ▲1.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.12 ▲5.68 | 627.45 ▲11.65 | 53.89 ▲6.02 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.17 ▼0.02 | 98.64 ▲0.62 | 41.83 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/bp-automatic-friends/inc/admin.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-automatic-friends/inc/update.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/bp-automatic-friends/bp-automatic-friends.php:77
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please describe screenshot #3 in bp-automatic-friends/assets to your readme.txt
bp-automatic-friends/bp-automatic-friends.php Passed 13 tests
The main PHP file in "BuddyPress Automatic Friends" ver. 2.0.8 adds more information about the plugin and also serves as the entry point for this plugin
113 characters long description:
Automatically create and accept friendships for specified users upon new user registration. * Requires BuddyPress
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 plugin1,425 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 107 | 282 | 405 |
HTML | 1 | 56 | 5 | 401 |
CSS | 2 | 25 | 24 | 178 |
PO File | 2 | 47 | 50 | 142 |
SVG | 1 | 0 | 0 | 133 |
JavaScript | 1 | 13 | 10 | 95 |
Markdown | 1 | 52 | 0 | 71 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.30MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 92.32KB | 33.44KB | ▼ 63.78% |
screenshot-2.png | 101.80KB | 37.14KB | ▼ 63.51% |
screenshot-3.png | 110.07KB | 39.78KB | ▼ 63.86% |