73% bp-cover

Code Review | BuddyPress Cover

WordPress plugin BuddyPress Cover scored73%from 54 tests.

About plugin

  • Plugin page: bp-cover
  • Plugin version: 2.1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 6.3.1
  • First release: Jan 17, 2015
  • Latest release: Mar 8, 2016
  • Number of updates: 39
  • Update frequency: every 10.7 days
  • Top authors: aghajoon (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

70+ active /19,474 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.22MB] [CPU: ▲1.73ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Cover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2242.66 ▲1.90
Dashboard /wp-admin3.52 ▲0.2247.83 ▲0.36
Posts /wp-admin/edit.php3.64 ▲0.2853.05 ▲5.06
Add New Post /wp-admin/post-new.php6.12 ▲0.2394.83 ▲0.97
Media Library /wp-admin/upload.php3.45 ▲0.2139.04 ▲3.68
Bp cover /wp-admin/options-general.php?page=bp-cover3.4034.04

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Cover
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.30 ▼1.111.70 ▲0.1444.73 ▲2.26
Dashboard /wp-admin2,214 ▲235.87 ▼0.0295.17 ▼4.7537.83 ▼10.58
Posts /wp-admin/edit.php2,111 ▲252.28 ▲0.2340.27 ▲0.4134.01 ▼3.13
Add New Post /wp-admin/post-new.php1,523 ▼1023.26 ▲0.15651.36 ▲4.0752.55 ▲1.86
Media Library /wp-admin/upload.php1,409 ▲244.27 ▲0.0697.09 ▼8.4141.42 ▼3.56
Bp cover /wp-admin/options-general.php?page=bp-cover1,0492.2729.9929.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=bp-cover
    • > Notice in wp-content/plugins/bp-cover/bp-cover-admin.php+183
    Undefined variable: class

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
Please fix the following items
  • 4× 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/bp-cover/bp-cover-group.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-cover/templates/default/theme.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bp-cover/bp-cover-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-cover/templates/mani/theme.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=bp-cover
    • > Network (severe)
    https://www.okpay.com/img/buttons/en/donate/d14b186x54en.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (profile cover), #2 (profile cover), #3 (profile cover), #4 (profile cover), #5 (profile cover)
You can look at the official readme.txt

bp-cover/bp-cover.php Passed 13 tests

The main PHP script in "BuddyPress Cover" version 2.1.4.2 is automatically included on every request by WordPress
55 characters long description:
Adds cover image in profile page and groups buddypress.

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
No dangerous file extensions were detected3,835 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS6203261,635
PHP5153301,249
JavaScript615484698
PO File496152253

PHP code Passed 2 tests

This is a very shot 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.23
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/default/screenshot.png192.63KB69.10KB▼ 64.13%
templates/mani/screenshot.png185.58KB66.57KB▼ 64.13%