Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/buddypress-friends-on-line/bpfol-custom-widget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; FOL_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼48.13ms] Passed 4 tests
A check of server-side resources used by BuddyPress Friends On-Line
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 7.90 ▼33.97 |
Dashboard /wp-admin | 2.30 ▼1.01 | 8.93 ▼38.62 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 13.48 ▼36.95 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 9.59 ▼82.96 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 8.63 ▼21.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_fol-widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress Friends On-Line
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.47 ▲0.10 | 1.77 ▼0.19 | 37.22 ▼9.35 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.04 | 110.33 ▲8.04 | 42.20 ▼3.58 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.03 ▲0.01 | 35.16 ▼6.06 | 31.15 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.27 ▲0.67 | 611.66 ▼78.63 | 50.17 ▼10.58 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.01 | 99.80 ▼1.28 | 42.03 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in FOL_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_fol-widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: instance in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 24
- > PHP Notice
Undefined variable: instance in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/buddypress-friends-on-line/bpfol-custom-widget.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-friends-on-line/bp-friends-on-line.php:11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 to be fixed:
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
buddypress-friends-on-line/bp-friends-on-line.php 85% from 13 tests
"BuddyPress Friends On-Line" version 0.4.3.1'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 ("buddypress-friends-on-line.php" instead of "bp-friends-on-line.php")
- Description: The description should be shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin294 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 15 | 35 | 157 |
PO File | 3 | 41 | 54 | 137 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin