Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.52ms] Passed 4 tests
Analyzing server-side resources used by BP Member Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.20 ▲6.69 |
Dashboard /wp-admin | 3.43 ▲0.12 | 46.45 ▼4.18 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 45.34 ▼3.44 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 82.08 ▼6.71 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.09 ▲4.24 |
Server storage [IO: ▲0.99MB] [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: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for BP Member Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.08 | 1.61 ▼0.27 | 42.69 ▼0.02 |
Dashboard /wp-admin | 2,200 ▲12 | 5.81 ▲0.90 | 102.99 ▼11.96 | 38.29 ▼0.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.03 | 37.18 ▼4.24 | 31.99 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.18 ▼0.11 | 660.20 ▼14.18 | 52.55 ▼1.64 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▲0.02 | 99.92 ▼1.78 | 43.78 ▼2.56 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- 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)
The smoke test was a success, however most plugin functionality was not tested
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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/bp-user-reviews/templates/edit.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/bp-user-reviews/templates/rating.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bp-user-reviews/templates/rating.php on line 4
- > PHP Notice
Undefined variable: rating in wp-content/plugins/bp-user-reviews/templates/rating.php on line 4
- > PHP Notice
Undefined variable: rating in wp-content/plugins/bp-user-reviews/templates/rating.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bp-user-reviews/templates/rating.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== bp-user-reviews ===
) - Tags: You are using too many tags: 11 tag instead of maximum 10
bp-user-reviews/bp-user-reviews.php Passed 13 tests
The entry point to "BP Member Reviews" version 1.2.6 is a PHP file that has certain tags in its header comment area
59 characters long description:
BuddyPress plugin to enable reviews and ratings of members.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,423 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 156 | 103 | 1,012 |
SVG | 1 | 0 | 0 | 685 |
PO File | 4 | 181 | 180 | 430 |
CSS | 3 | 22 | 5 | 226 |
JavaScript | 2 | 13 | 1 | 70 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 109.00 |
▷ Minimum class complexity | 109.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 43 | |
▷ Static methods | 6 | 13.95% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin