89% learnpress-buddypress

Code Review | LearnPress - BuddyPress Integration

WordPress plugin LearnPress - BuddyPress Integration scored89%from 54 tests.

About plugin

  • Plugin page: learnpress-buddyp...
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jun 16, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 31
  • Update frequency: every 96.1 days
  • Top authors: ThimPress (29.03%)tunnhn (29.03%)thongta (19.35%)leehld (16.13%)phamtungpth (9.68%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /97,568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by LearnPress - BuddyPress Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.14 ▼5.09
Dashboard /wp-admin3.31 ▲0.0044.93 ▼3.92
Posts /wp-admin/edit.php3.36 ▲0.0051.33 ▲10.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.64 ▼11.58
Media Library /wp-admin/upload.php3.23 ▲0.0033.86 ▲2.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for LearnPress - BuddyPress Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.55 ▼0.2541.27 ▼1.05
Dashboard /wp-admin2,195 ▲155.63 ▲0.0689.58 ▲2.6640.94 ▲5.12
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0139.25 ▼3.8335.77 ▼1.76
Add New Post /wp-admin/post-new.php1,535 ▲718.13 ▼4.99605.23 ▼44.8363.01 ▲7.20
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.0396.22 ▼0.4640.62 ▼1.55

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #1 (LearnPress bbPress screenshot) image required
The official readme.txt might help

learnpress-buddypress/learnpress-buddypress.php Passed 13 tests

The principal PHP file in "LearnPress - BuddyPress Integration" v. 4.0.1 is loaded by WordPress automatically on each request
48 characters long description:
Using the profile system provided by BuddyPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin520 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP476184467
CSS115053

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity14.00
▷ Minimum class complexity4.00
▷ Maximum class complexity24.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2083.33%
▷ Protected methods416.67%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin