Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Compile error in wp-content/plugins/bp-extend-widgets/bp-extend-widgets.php+65
Cannot use $this as parameter
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.86ms] Passed 4 tests
This is a short check of server-side resources used by BuddyPress Extend Widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.03 ▼5.41 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.92 ▼15.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.02 ▲2.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.11 ▼21.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.56 ▲7.34 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Extend Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.73 ▼0.66 | 2.29 ▲0.51 | 45.89 ▲1.40 |
Dashboard /wp-admin | 2,206 ▲18 | 5.84 ▼0.01 | 105.11 ▼11.67 | 41.65 ▼0.76 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.07 | 35.95 ▼3.20 | 33.00 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.22 ▲0.31 | 686.68 ▲75.94 | 53.05 ▲6.44 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.00 | 100.86 ▲0.32 | 44.99 ▼0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Cannot use $this as parameter in wp-content/plugins/bp-extend-widgets/bp-extend-widgets.php on line 65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
bp-extend-widgets/bp-extend-widgets.php 92% from 13 tests
The principal PHP file in "BuddyPress Extend Widgets" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 3.2, BuddyPress 1.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin121 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 20 | 18 | 64 |
PHP | 1 | 20 | 22 | 57 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
There are no PNG files in this plugin