83% buddypress-profile-progression

Code Review | BuddyPress Profile Progression

WordPress plugin BuddyPress Profile Progression scored83%from 54 tests.

About plugin

  • Plugin page: buddypress-profil...
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 12, 2010
  • Latest release: Mar 27, 2013
  • Number of updates: 26
  • Update frequency: every 33.3 days
  • Top authors: grosbouff (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /19,067 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.29ms] Passed 4 tests

A check of server-side resources used by BuddyPress Profile Progression
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.62 ▼5.29
Dashboard /wp-admin3.31 ▲0.0051.68 ▲3.53
Posts /wp-admin/edit.php3.36 ▲0.0050.25 ▼12.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.72 ▼9.30
Media Library /wp-admin/upload.php3.23 ▲0.0035.59 ▼2.01

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Profile Progression
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.291.65 ▼0.0646.57 ▼1.81
Dashboard /wp-admin2,195 ▲185.58 ▼0.0986.66 ▼15.3040.83 ▼5.20
Posts /wp-admin/edit.php2,097 ▼81.99 ▼0.0334.51 ▼5.0133.19 ▼6.82
Add New Post /wp-admin/post-new.php1,526 ▼223.05 ▼0.07673.35 ▼24.6652.65 ▼3.16
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.00105.41 ▲2.6245.98 ▼4.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bppp_title() in wp-content/plugins/buddypress-profile-progression/theme/bppp-member.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-profile-progression/buddypress-profile-progression.php:234
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-profile-progression/bppp-profile-fields-points.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Tested up to: Version not formatted correctly
  • Requires at least: Version not formatted correctly
The official readme.txt might help

buddypress-profile-progression/buddypress-profile-progression.php 92% from 13 tests

The primary PHP file in "BuddyPress Profile Progression" version 0.3.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected607 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6203194359
PO File45759213
CSS18235

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.50
▷ Minimum class complexity5.00
▷ Maximum class complexity10.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods1881.82%
▷ Protected methods00.00%
▷ Private methods418.18%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin