83% buddypress-profile-rating

Code Review | Buddypress Profile Rating

WordPress plugin Buddypress Profile Rating scored83%from 54 tests.

About plugin

  • Plugin page: buddypress-profil...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2015
  • Latest release: Mar 21, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: souravsapp (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /5,224 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.84 ▲1.10
Dashboard /wp-admin3.31 ▲0.0048.60 ▼4.33
Posts /wp-admin/edit.php3.36 ▲0.0048.67 ▼2.81
Add New Post /wp-admin/post-new.php5.89 ▼0.0189.94 ▼34.69
Media Library /wp-admin/upload.php3.23 ▲0.0041.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.33 ▲0.121.93 ▲0.0745.43 ▲0.25
Dashboard /wp-admin2,192 ▲155.54 ▼0.0285.44 ▼14.0438.73 ▼7.60
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0236.50 ▼5.3230.59 ▼7.01
Add New Post /wp-admin/post-new.php1,526 ▼022.99 ▼0.10666.03 ▼11.1071.94 ▲14.10
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.14113.45 ▼1.5647.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

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


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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png31.31KB11.22KB▼ 64.15%
img/star_orange.png3.34KB0.89KB▼ 73.24%
img/star_ylow.png3.81KB0.99KB▼ 73.94%
img/star_wit.png3.62KB0.72KB▼ 79.99%
img/half_star.png3.74KB0.86KB▼ 77.04%