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.00MB] [CPU: ▼10.18ms] Passed 4 tests
Server-side resources used by Buddypress Profile Rating
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.84 ▲1.10 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.60 ▼4.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.67 ▼2.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▼0.01 | 89.94 ▼34.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.34 ▲8.05 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Buddypress Profile Rating
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.33 ▲0.12 | 1.93 ▲0.07 | 45.43 ▲0.25 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.02 | 85.44 ▼14.04 | 38.73 ▼7.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.02 | 36.50 ▼5.32 | 30.59 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.99 ▼0.10 | 666.03 ▼11.10 | 71.94 ▲14.10 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.11 ▼0.14 | 113.45 ▼1.56 | 47.50 ▲1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-profile-rating/bp-profile-rating.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== buddypress-profile-rating ===
) - Screenshots: Screenshot #1 (Rate a profile or re-rate your old rating.) image missing
buddypress-profile-rating/bp-profile-rating.php 77% from 13 tests
Analyzing the main PHP file in "Buddypress Profile Rating" version 1.0
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddypress-profile-rating.php" instead of "bp-profile-rating.php")
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
Success! There were no dangerous files found in this plugin147 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 27 | 93 |
CSS | 1 | 1 | 0 | 39 |
JavaScript | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.31KB | 11.22KB | ▼ 64.15% |
img/star_orange.png | 3.34KB | 0.89KB | ▼ 73.24% |
img/star_ylow.png | 3.81KB | 0.99KB | ▼ 73.94% |
img/star_wit.png | 3.62KB | 0.72KB | ▼ 79.99% |
img/half_star.png | 3.74KB | 0.86KB | ▼ 77.04% |