84% bp-profile-cover

Code Review | BP Profile Cover

WordPress plugin BP Profile Cover scored 84% from 54 tests.

About plugin

  • Plugin page: bp-profile-cover
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.8, BuddyPress 2.3-5.0.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2015
  • Latest release: Dec 28, 2018
  • Number of updates: 19
  • Update frequency: every 65.8 days
  • Top authors: wpthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 9,238 total downloads

Benchmarks

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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.63ms] Passed 4 tests

An overview of server-side resources used by BP Profile Cover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.45 ▼0.01
Dashboard /wp-admin3.32 ▲0.0145.73 ▼4.25
Posts /wp-admin/edit.php3.37 ▲0.0143.76 ▲0.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.67 ▼5.87
Media Library /wp-admin/upload.php3.24 ▲0.0135.44 ▼0.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BP Profile Cover
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.81 ▲0.431.77 ▼0.1943.84 ▼7.76
Dashboard /wp-admin2,206 ▲185.06 ▲0.19112.27 ▼2.1843.69 ▼2.96
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0134.29 ▼7.6933.70 ▼1.61
Add New Post /wp-admin/post-new.php1,514 ▼2817.59 ▼0.73656.10 ▲2.9755.00 ▲4.09
Media Library /wp-admin/upload.php1,385 ▼64.26 ▼0.0496.90 ▼1.6244.27 ▲1.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-profile-cover/loader.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: profile image, buddypress, cover image, profile cover

bp-profile-cover/loader.php 85% from 13 tests

Analyzing the main PHP file in "BP Profile Cover" version 1.3
The following require your attention:
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 3.8, BuddyPress 2.3")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-profile-cover.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin639 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49353550
PO File1347387
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.60
▷ Minimum class complexity3.00
▷ Maximum class complexity41.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions5
▷ Named functions5100.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 files were detected