Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲2.31MB] [CPU: ▼287.03ms] Passed 4 tests
Analyzing server-side resources used by Friends
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.83 ▲2.31 | 67.90 ▲4.74 |
Dashboard /wp-admin | 5.71 ▲2.30 | 71.43 ▲34.83 |
Posts /wp-admin/edit.php | 5.94 ▲2.29 | 136.11 ▲66.74 |
Add New Post /wp-admin/post-new.php | 9.59 ▲2.62 | 112.38 ▼1,206.21 |
Media Library /wp-admin/upload.php | 5.66 ▲2.36 | 44.81 ▲18.52 |
Add New Friend /wp-admin/admin.php?page=add-friend | 5.58 | 64.54 |
Widgets /wp-admin/widgets.php | 7.71 | 139.40 |
Settings /wp-admin/admin.php?page=friends-settings | 5.76 | 39.80 |
Plugins /wp-admin/admin.php?page=friends-plugins | 5.67 | 401.07 |
Menus /wp-admin/nav-menus.php | 5.74 | 48.97 |
Notification Manager /wp-admin/admin.php?page=friends-notification-manager | 5.59 | 47.99 |
Automatic Status /wp-admin/admin.php?page=friends-auto-status | 5.73 | 42.36 |
Server storage [IO: ▲3.11MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 140 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_friends-widget-friend-request |
friends_default_friend_role |
widget_friends-widget-header |
friends_private_rss_key |
widget_friends-widget-new-private-post |
widget_friends-widget-friend-list |
widget_friends-widget-refresh |
friends_plugin_version |
widget_friends-widget-post-formats |
friends_main_user_id |
Browser metrics Passed 4 tests
A check of browser resources used by Friends
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,007 ▲253 | 16.01 ▲0.75 | 5.90 ▼0.51 | 2.61 ▼0.44 |
Dashboard /wp-admin | 3,075 ▲225 | 6.36 ▲0.17 | 124.82 ▼43.72 | 170.22 ▲9.35 |
Posts /wp-admin/edit.php | 2,809 ▲118 | 3.28 ▲0.05 | 65.14 ▲1.50 | 136.21 ▼14.09 |
Add New Post /wp-admin/post-new.php | 1,756 ▼4 | 21.20 ▼1.36 | 440.88 ▼4.22 | 173.82 ▲14.98 |
Media Library /wp-admin/upload.php | 1,820 ▲122 | 5.62 ▲0.11 | 131.23 ▼14.81 | 191.54 ▼9.82 |
Add New Friend /wp-admin/admin.php?page=add-friend | 1,168 | 2.46 | 58.04 | 142.72 |
Widgets /wp-admin/widgets.php | 4,786 | 34.96 | 693.17 | 183.33 |
Settings /wp-admin/admin.php?page=friends-settings | 3,184 | 2.92 | 102.50 | 155.62 |
Plugins /wp-admin/admin.php?page=friends-plugins | 1,452 | 2.50 | 56.98 | 121.77 |
Menus /wp-admin/nav-menus.php | 2,501 | 3.47 | 71.58 | 148.76 |
Notification Manager /wp-admin/admin.php?page=friends-notification-manager | 1,111 | 2.60 | 54.77 | 101.07 |
Automatic Status /wp-admin/admin.php?page=friends-auto-status | 1,249 | 3.16 | 58.43 | 107.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/friends/includes/class-friends.php+932
Trying to get property 'ID' of non-object
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_friends-widget-friend-list
- widget_friends-widget-refresh
- friends_private_rss_key
- widget_friends-widget-new-private-post
- widget_friends-widget-header
- widget_friends-widget-friend-request
- friends_default_friend_role
- friends_plugin_version
- widget_friends-widget-post-formats
Smoke tests 25% 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
- > GET request to /wp-admin/widgets.php
- > User notice in wp-includes/functions.php+5768
wp_enqueue_script() was called incorrectly. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.)
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/friends/templates/admin/plugin-installer-footer.php
- 113× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Friends' not found in wp-content/plugins/friends/templates/frontend/parts/title.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/friends/templates/admin/settings.php:18
- > PHP Fatal error
Uncaught Error: Class 'Friends' not found in wp-content/plugins/friends/templates/admin/reactions-picker.php:8
- > PHP Fatal error
Uncaught Error: Class 'Friends_Reactions' not found in wp-content/plugins/friends/templates/frontend/parts/reactions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/friends/templates/admin/edit-rules.php:10
- > PHP Notice
Undefined variable: args in wp-content/plugins/friends/templates/email/friend-message-received.text.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/friends/templates/email/footer.text.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_User' not found in wp-content/plugins/friends/includes/class-friend-user.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_author() in wp-content/plugins/friends/templates/frontend/no-posts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/friends/templates/admin/edit-friend.php:11
- > 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 96% from 29 tests
readme.txt Passed 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
5 plugin tags: friends, rss, own-your-data, social-network, decentralized
friends/friends.php 92% from 13 tests
The entry point to "Friends" version 1.9.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin90,477 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 15 | 0 | 0 | 77,391 |
PHP | 101 | 2,003 | 4,817 | 12,160 |
JavaScript | 14 | 90 | 50 | 784 |
CSS | 4 | 25 | 1 | 140 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 45.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 329.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 2 | 5.26% |
▷ Concrete classes | 36 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 474 | |
▷ Static methods | 82 | 17.30% |
▷ Public methods | 429 | 90.51% |
▷ Protected methods | 10 | 2.11% |
▷ Private methods | 35 | 7.38% |
Functions | 46 | |
▷ Named functions | 23 | 50.00% |
▷ Anonymous functions | 23 | 50.00% |
Constants | 17 | |
▷ Global constants | 2 | 11.76% |
▷ Class constants | 15 | 88.24% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin