Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/buddypress-compliments/bp-compliments.php+165
Trying to get property 'table_prefix' of non-object
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.93ms] Passed 4 tests
Analyzing server-side resources used by BuddyPress Compliments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.82 ▼0.39 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.81 ▼14.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.31 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.88 ▼2.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.07 ▲1.51 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_bp_compliments |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
bp_compliments_version |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyPress Compliments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.38 ▼0.21 | 1.60 ▼0.07 | 37.64 ▼4.09 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.06 | 91.89 ▼0.70 | 44.25 ▲2.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 39.25 ▲0.57 | 36.04 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.86 ▼0.47 | 625.10 ▼56.66 | 53.24 ▼3.76 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.24 ▼0.03 | 98.55 ▼8.54 | 45.67 ▼4.15 |
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
- Zombie tables detected upon uninstall: 1 table
- wp_bp_compliments
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- bp_compliments_version
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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 fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-compliments/includes/templates/buddypress/members/single/compliments.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-compliments/includes/bp-compliments-taxonomies.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-compliments/includes/bp-compliments-functions.php:168
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-compliments/includes/bp-compliments-forms.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-compliments/includes/bp-compliments-templatetags.php:151
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-compliments/includes/bp-compliments-settings.php:2
- > 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 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
buddypress-compliments/bp-compliments.php 85% from 13 tests
Analyzing the main PHP file in "BuddyPress Compliments" version 1.1.1
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-compliments.php" instead of "bp-compliments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,140 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 358 | 1,151 | 1,691 |
PO File | 1 | 68 | 98 | 202 |
CSS | 1 | 31 | 0 | 179 |
JavaScript | 1 | 8 | 4 | 51 |
YAML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 4 | 33.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.47MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-256x256.png | 4.94KB | 2.78KB | ▼ 43.73% |
images/smiley-icon.png | 0.71KB | 0.67KB | ▼ 6.02% |
.wordpress-org/screenshot-2.png | 96.01KB | 29.83KB | ▼ 68.93% |
.wordpress-org/screenshot-4.png | 127.63KB | 42.34KB | ▼ 66.83% |
.wordpress-org/screenshot-1.png | 62.46KB | 22.26KB | ▼ 64.37% |